Juanma Barranquero [Mon, 24 Jun 2013 16:06:47 +0000 (18:06 +0200)]
lisp/faces.el (face-spec-recalc): Revert part of 2013-06-23T20:29:18Z!lekktu@gmail.com.
Fixes: debbugs:14705
Lars Magne Ingebrigtsen [Mon, 24 Jun 2013 14:03:26 +0000 (16:03 +0200)]
* net/shr.el (shr-browse-url): Use an external browser if given a prefix.
Lars Magne Ingebrigtsen [Mon, 24 Jun 2013 13:57:35 +0000 (15:57 +0200)]
* net/eww.el (eww-external-browser): Moved to shr.
Ivan Kanis [Mon, 24 Jun 2013 13:42:07 +0000 (15:42 +0200)]
eww improvements
* net/eww.el (eww): Work more correctly for file: URLs.
(eww-detect-charset): Allow quoted charsets.
(eww-yank-page-url): New command and keystroke.
Glenn Morris [Mon, 24 Jun 2013 10:17:44 +0000 (06:17 -0400)]
Auto-commit of generated files.
Daiki Ueno [Mon, 24 Jun 2013 07:07:08 +0000 (16:07 +0900)]
epg.el: Add context option `home-directory' and `program'.
* epg.el (epg-make-context): Check if PROTOCOL is valid; embed the
file name of gpg executable.
(epg-context-program): New function.
(epg-context-home-directory): New function.
(epg-context-set-program): New function.
(epg-context-set-home-directory): New function.
(epg--start): Use `epg-context-program' instead of
'epg-gpg-program'.
(epg--list-keys-1): Likewise.
Glenn Morris [Mon, 24 Jun 2013 06:58:52 +0000 (23:58 -0700)]
Merge from emacs-24; up to 2012-12-29T06:14:00Z!cyd@gnu.org
Glenn Morris [Mon, 24 Jun 2013 06:52:33 +0000 (23:52 -0700)]
* doc/emacs/rmail.texi: Comment
Leo Liu [Mon, 24 Jun 2013 04:08:10 +0000 (12:08 +0800)]
Simplify last change to ido.el
Glenn Morris [Mon, 24 Jun 2013 02:38:45 +0000 (19:38 -0700)]
Revert previous change
Glenn Morris [Mon, 24 Jun 2013 02:26:57 +0000 (19:26 -0700)]
* doc/misc/eudc.texi (Overview, Creating BBDB Records): Restrict bbdb cross-ref
to info output. It's not very important, and gives broken links in
the html version.
Glenn Morris [Mon, 24 Jun 2013 02:24:40 +0000 (19:24 -0700)]
* doc/emacs/files.texi: Comment.
Leo Liu [Mon, 24 Jun 2013 02:15:56 +0000 (10:15 +0800)]
* ido.el (ido-read-internal): Fix bug#14620.
Glenn Morris [Mon, 24 Jun 2013 00:42:12 +0000 (17:42 -0700)]
* doc/misc/eshell.texi: Fix cross-references to other manuals.
Paul Eggert [Mon, 24 Jun 2013 00:31:31 +0000 (17:31 -0700)]
A more-conservative workaround for Cygwin SIGCHLD issues.
* callproc.c (Fcall_process):
* process.c (create_process):
Make sure SIGCHLD is caught before we fork,
since Emacs startup no arranges to catch SIGCHLD.
* process.c (lib_child_handler): Initialize to null, not to
dummy_handler.
(catch_child_signal): Allow self to be called lazily.
Do nothing if it's already been called.
Assume caller has blocked SIGCHLD (all callers do now).
* emacs.c (main): Do not catch SIGCHLD here; defer it until
just before it's really needed.
* nsterm.m (ns_term_init): No need to re-catch SIGCHLD here,
since it hasn't been caught yet.
Fixes: debbugs:14569
Juanma Barranquero [Sun, 23 Jun 2013 20:29:18 +0000 (22:29 +0200)]
lisp/faces.el: Minor changes.
(face-documentation): Simplify.
(read-face-attribute, tty-find-type, x-resolve-font-name):
Use `string-match-p'.
(list-faces-display): Use `string-match-p'. Simplify.
(face-spec-recalc): Check face to avoid face alias loops.
(read-color): Use `string-match-p' and non-capturing parenthesis.
Lars Magne Ingebrigtsen [Sun, 23 Jun 2013 19:24:27 +0000 (21:24 +0200)]
Implement :max-width/:max-height for (ImageMagic) images
* doc/lispref/display.texi (ImageMagick Images): Mention :max-width and
:max-height.
* lisp/net/shr.el (shr-rescale-image): Use the new
:max-width/:max-height functionality.
* src/image.c (compute_image_size): New function to implement
:max-width and :max-height.
(imagemagick_load_image): Use it.
Ivan Kanis [Sun, 23 Jun 2013 18:29:30 +0000 (20:29 +0200)]
* net/eww.el: Bind `C-c C-c' to "submit" in all form keymaps.
Ivan Kanis [Sun, 23 Jun 2013 18:27:58 +0000 (20:27 +0200)]
eww.el: Add a command to browse using and external browser
(eww-external-browser): New variable.
(eww-mode-map): New keystroke.
(eww-browse-with-external-browser): New command.
Ivan Kanis [Sun, 23 Jun 2013 18:22:28 +0000 (20:22 +0200)]
eww.el: If given a non-domain text, search for the term
* net/eww.el (eww-search-prefix): New variable.
(eww): Use it.
Paul Eggert [Sun, 23 Jun 2013 18:18:47 +0000 (11:18 -0700)]
Try to avoid malloc SEGVs on Cygwin.
* callproc.c, process.h (block_child_signal, unblock_child_signal):
Now extern.
* emacs.c (main): Catch SIGCHLD just before initializing gfilenotify.
* process.c (catch_child_signal): Block SIGCHLD while futzing with
the SIGCHLD handler, since the code is not atomic and (due to glib)
signals may be arriving now.
* sysdep.c (init_signals): Do not catch child signals here;
'main' now does that later, at a safer time.
Fixes: debbugs:14569
Juanma Barranquero [Sun, 23 Jun 2013 13:23:49 +0000 (15:23 +0200)]
lisp/emacs-lisp/tabulated-list.el: Fix alignment problem with :pad-right = 0.
(tabulated-list-init-header): Don't skip aligning the next header field when
padding is 0; otherwise, field width is not respected unless the title is as
wide as the field.
Glenn Morris [Sun, 23 Jun 2013 01:48:23 +0000 (18:48 -0700)]
Remove some doc/misc/Makefile.in stuff that is not needed any more
* doc/misc/Makefile.in (HTML_TARGETS, html, emacs-faq.html, emacs-faq):
Remove; not needed now we use a standard html layout for the faq.
(clean): Remove HTML_TARGETS, emacs-faq.text.
Stefan Monnier [Sat, 22 Jun 2013 20:09:19 +0000 (16:09 -0400)]
* lisp/emacs-lisp/package.el (package-el-version): Remove.
(package-process-define-package): Fix inf-loop.
(package-install): Allow symbols as arguments again.
Paul Eggert [Sat, 22 Jun 2013 19:01:47 +0000 (12:01 -0700)]
Clean up SIGCHLD handling a bit.
* process.c, process.h (catch_child_signal):
Now always extern, even if !NS_IMPL_GNUSTEP.
* process.c (catch_child_signal): Move glib tickler here from
init_process_emacs, so that it's done earlier in Emacs
initialization. Also move the noninteractive && !initialized
check here from init_process_emacs. This is all a bit cleaner for
GNUish platforms, and I hope it works around the Cygwin bug.
* sysdep.c (init_signals): Invoke catch_child_signal here, so
that glib signal handling is tickled before glib creates threads.
Fixes: debbugs:14569
Paul Eggert [Sat, 22 Jun 2013 16:43:39 +0000 (09:43 -0700)]
* process.c (wait_reading_process_output): Avoid int overflow
when reading more than 2 GiB total from a process.
Dmitry Gutov [Sat, 22 Jun 2013 13:25:43 +0000 (17:25 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Move `catch',
add some more keyword-like methods.
http://lists.gnu.org/archive/html/emacs-devel/2013-06/msg00911.html
Glenn Morris [Sat, 22 Jun 2013 11:17:30 +0000 (07:17 -0400)]
Auto-commit of generated files.
Juanma Barranquero [Sat, 22 Jun 2013 02:41:14 +0000 (04:41 +0200)]
.bzrignore: Add GNU idutils ID database file.
Juanma Barranquero [Sat, 22 Jun 2013 02:33:33 +0000 (04:33 +0200)]
lisp/bs.el, emacs-lock.el: Use defvar-local, setq-local.
* lisp/bs.el (bs-buffer-show-mark): Make defvar-local.
(bs-mode): Use setq-local.
* lisp/emacs-lock.el (emacs-lock-mode, emacs-lock--old-mode)
(emacs-lock--try-unlocking): Make defvar-local.
Glenn Morris [Sat, 22 Jun 2013 00:37:18 +0000 (20:37 -0400)]
* lisp/play/cookie1.el (cookie-apropos): Minor simplification.
Glenn Morris [Sat, 22 Jun 2013 00:35:51 +0000 (20:35 -0400)]
* lisp/progmodes/gdb-mi.el (gdb-mapcar*): Remove, replace with cl-mapcar.
Glenn Morris [Sat, 22 Jun 2013 00:28:07 +0000 (20:28 -0400)]
* configure.ac: Include X11/X.h when testing for Xft.h.
Fixes: debbugs:14684
Dmitry Gutov [Sat, 22 Jun 2013 00:11:24 +0000 (04:11 +0400)]
* lisp/progmodes/ruby-mode.el (auto-mode-alist): Do not use
`regexp-opt', it breaks the build during dumping.
Dmitry Gutov [Fri, 21 Jun 2013 23:20:54 +0000 (03:20 +0400)]
* progmodes/ruby-mode.el (auto-mode-alist): Forgot "Guardfile".
Dmitry Gutov [Fri, 21 Jun 2013 23:14:38 +0000 (03:14 +0400)]
* lisp/progmodes/ruby-mode.el (auto-mode-alist): Consolidate different
entries into one regexp and add more *file-s.
Dmitry Gutov [Fri, 21 Jun 2013 23:07:49 +0000 (03:07 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight
keyword-like methods on Kernel and Module with
font-lock-builtin-face.
Paul Eggert [Fri, 21 Jun 2013 22:16:37 +0000 (15:16 -0700)]
* process.c (create_process): Handle a couple more cases,
i.e., work even if new_argv and wait_child_setup[i] are cached.
Use Fcall_process's style for volatile vars.
Stephen Berman [Fri, 21 Jun 2013 21:55:44 +0000 (23:55 +0200)]
* lisp/ChangeLog: Add changes for new version of todo-mode.el.
Stephen Berman [Fri, 21 Jun 2013 21:40:50 +0000 (23:40 +0200)]
Merge from trunk.
Andreas Schwab [Fri, 21 Jun 2013 21:27:17 +0000 (23:27 +0200)]
* process.c (create_process): Mark PROCESS volatile.
Stephen Berman [Fri, 21 Jun 2013 21:04:32 +0000 (23:04 +0200)]
* calendar/ChangeLog: Remove prior to merging new version of
todo-mode.el to trunk.
Paul Eggert [Fri, 21 Jun 2013 20:27:13 +0000 (13:27 -0700)]
* lib-src/ebrowse.c: Include <stddef.h>, needed on some platforms.
Paul Eggert [Fri, 21 Jun 2013 20:11:44 +0000 (13:11 -0700)]
Use C99-style flexible array members if available.
This avoids some subtle aliasing issues, which typically
aren't a problem with GCC but may be a problem elsewhere.
* lib-src/ebrowse.c (struct member, struct alias, struct sym):
Use FLEXIBLE_ARRAY_MEMBER.
(add_sym, add_member, make_namespace, register_namespace_alias):
Use offsetof (struct, flex_array_member), not sizeof (struct), as
that ports better to pre-C99 non-GCC.
* src/alloc.c (sdata): New typedef, replacing the old struct sdata.
It is a struct if GC_CHECK_STRING_BYTES, a union otherwise.
In either case, it uses a flexible array member rather than
the old struct hack. All uses changed.
(SDATA_NBYTES, sweep_strings) [!GC_CHECK_STRING_BYTES]:
Adjust to sdata reorganization.
* src/alloc.c (VBLOCK_BYTES_MIN, allocate_vectorlike, Fgarbage_collect):
Use offsetof (struct, flex_array_member), not sizeof (struct), as
that ports better to pre-C99 non-GCC.
* src/chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
Use CHAR_TABLE_STANDARD_SLOTS rather than its definition,
as the latter has changed.
* src/conf_post.h (FLEXIBLE_ARRAY_MEMBER): Move here from w32.c,
and port better to pre-C99 GCC.
* src/image.c (struct xpm_cached_color):
* src/lisp.h (struct Lisp_Vector, struct Lisp_Bool_Vector)
(struct Lisp_Char_Table, struct Lisp_Sub_Char_Table):
Use FLEXIBLE_ARRAY_MEMBER.
* src/lisp.h (string_bytes) [GC_CHECK_STRING_BYTES]:
Move decl to top level so it gets checked against implementation.
(CHAR_TABLE_STANDARD_SLOTS): Adjust to struct Lisp_Char_Table change.
* src/w32.c (FLEXIBLE_ARRAY_MEMBER): Move to conf_post.h.
Stephen Berman [Fri, 21 Jun 2013 18:37:42 +0000 (20:37 +0200)]
Merge from trunk.
Glenn Morris [Fri, 21 Jun 2013 16:00:00 +0000 (09:00 -0700)]
Use cookie functions in yow
* play/cookie1.el (cookie-apropos): Add optional display argument.
* obsolete/yow.el (apropos-zippy): Use cookie-apropos.
(psychoanalyze-pinhead): Use cookie-doctor.
Juanma Barranquero [Fri, 21 Jun 2013 15:30:53 +0000 (17:30 +0200)]
lisp/emacs-lisp/package.el (tar-get-file-descriptor, tar--extract): Declare.
Eduard Wiebe [Fri, 21 Jun 2013 14:36:13 +0000 (10:36 -0400)]
Extend flymake's warning predicate to be a function. Test suite for flymake.
* lisp/progmodes/flymake.el (flymake-warning-predicate): New.
(flymake-parse-line): Use it.
(flymake-warning-re): Make obsolete alias to
`flymake-warning-predicate'.
* doc/misc/flymake.texi (Parsing the output, Customizable variables):
Add reference to `flymake-warning-predicate'.
* test/automated/flymake-tests.el:
* test/automated/flymake/warnpred/Makefile
* test/automated/flymake/warnpred/test.c
* test/automated/flymake/warnpred/test.pl: New files.
Fixes: debbugs:14217
Stefan Monnier [Fri, 21 Jun 2013 14:12:56 +0000 (10:12 -0400)]
* lisp/emacs-lisp/package.el (package-alist): Include obsolete packages.
(package-obsolete-list): Remove.
(package-activate): Remove min-version argument. Add `force' argument.
Adjust to new package-alist format.
(package-mark-obsolete): Remove.
(package-unpack): Force reload of the package's autoloads.
(package-installed-p): Check builtins if the installed package is not
recent enough.
(package-initialize): Don't reset package-obsolete-list.
Don't specify which package version to activate.
(package-process-define-package, describe-package-1)
(package-menu--generate): Adjust to new package-alist format.
Stephen Berman [Fri, 21 Jun 2013 14:07:46 +0000 (16:07 +0200)]
* todo-mode.el: Change two occurrences of "document string" to
"documentation string".
Stephen Berman [Fri, 21 Jun 2013 14:02:39 +0000 (16:02 +0200)]
* todo-mode.el: Clean up doc strings, comments and prompt strings,
mainly by changing "Todo" to "todo" when it is not part of a mode
name or does not begin a sentence.
Juanma Barranquero [Fri, 21 Jun 2013 13:37:15 +0000 (15:37 +0200)]
leim/quail/*.el: Fix typos.
* leim/quail/croatian.el ("croatian-prefix"):
* leim/quail/czech.el ("czech", "czech-qwerty"):
* leim/quail/ipa-praat.el ("ipa-praat"):
* leim/quail/ipa.el ("ipa-x-sampa"):
* leim/quail/tibetan.el ("tibetan-wylie", "tibetan-tibkey"):
* leim/quail/uni-input.el (ucs-input-activate): Fix typos in docstrings.
Stephen Berman [Fri, 21 Jun 2013 13:23:51 +0000 (15:23 +0200)]
* todo-mode.el: Offer to convert legacy file. Update commentary.
(todo-show): If a legacy file is found and no new todo file
exists, offer to convert it and show it. Restore autoload cookie.
(todo-convert-legacy-files): Delete unused local variable.
If todo-directory doesn't exist, create it before writing to file.
Check format of converted files. Prompt to show converted todo file.
Juanma Barranquero [Fri, 21 Jun 2013 12:24:37 +0000 (14:24 +0200)]
lisp/*.el: Fix typos; use string-match-p, looking-at-p, setq-local, defvar-local.
* lisp/allout-widgets.el (allout-widgets-mode-off)
(allout-widgets-mode-on, allout-widgets-pre-command-business)
(allout-widgets-post-command-business)
(allout-widgets-after-copy-or-kill-function)
(allout-widgets-after-undo-function, allout-test-range-overlaps)
(allout-decorate-item-and-context)
(allout-graphics-modification-handler): Fix typos in docstrings.
(allout-get-or-create-parent-widget): Use `looking-at-p'.
* lisp/cmuscheme.el (scheme-start-file): Doc fix.
(inferior-scheme-mode, switch-to-scheme): Fix typos in docstrings.
(scheme-input-filter): Use `string-match-p'.
* lisp/composite.el (compose-gstring-for-terminal): Fix typo in docstring.
* lisp/dired-x.el: Use Dired consistently in docstrings.
* lisp/dired.el: Use Dired consistently in docstrings.
(dired-readin, dired-mode): Use `setq-local'.
(dired-switches-alist): Make defvar-local.
(dired-buffers-for-dir): Use `zerop'.
(dired-safe-switches-p, dired-switches-escape-p)
(dired-insert-old-subdirs, dired-move-to-end-of-filename)
(dired-glob-regexp, dired-in-this-tree, dired-goto-file-1)
(dired-sort-set-mode-line, dired-sort-toggle, dired-sort-R-check):
(dired-goto-next-nontrivial-file): Use `string-match-p'.
(dired-align-file, dired-insert-directory, dired-mark-files-in-region)
(dired-toggle-marks, dired-mark-files-containing-regexp)
(dired-mark-symlinks, dired-mark-directories, dired-mark-executables)
(dired-flag-auto-save-files, dired-flag-backup-files):
Use `looking-at-p'.
(dired-mark-files-regexp, dired-build-subdir-alist):
Use `string-match-p', `looking-at-p'.
* lisp/dos-w32.el (untranslated-canonical-name, untranslated-file-p)
(direct-print-region-helper): Use `string-match-p'.
Glenn Morris [Fri, 21 Jun 2013 10:17:38 +0000 (06:17 -0400)]
Auto-commit of generated files.
Leo Liu [Fri, 21 Jun 2013 09:37:04 +0000 (17:37 +0800)]
* comint.el (comint-redirect-results-list-from-process): Fix
infinite loop.
Lars Magne Ingebrigtsen [Fri, 21 Jun 2013 07:52:47 +0000 (07:52 +0000)]
lisp/net/eww.el (eww-update-header-line-format): Quote % characters
Glenn Morris [Fri, 21 Jun 2013 07:38:46 +0000 (00:38 -0700)]
ChangeLog fix for previous change
Glenn Morris [Fri, 21 Jun 2013 07:35:33 +0000 (00:35 -0700)]
cookie1.el small cleanup
Make some funcs interactive, copy some functionality from yow.el.
* lisp/play/cookie1.el (cookie): New custom group.
(cookie-file): New option.
(cookie-check-file): New function.
(cookie): Make it interactive. Make start and end messages optional.
Interactively, display the result. Default to cookie-file.
(cookie-insert): Default to cookie-file.
(cookie-snarf): Make start and end messages optional.
Default to cookie-file. Use with-temp-buffer.
(cookie-read): Rename from read-cookie.
Make start and end messages optional. Default to cookie-file.
(cookie-shuffle-vector): Rename from shuffle-vector. Use dotimes.
(cookie-apropos, cookie-doctor): New functions, copied from yow.el
* lisp/obsolete/yow.el (read-zippyism): Use new name for read-cookie.
Leo Liu [Fri, 21 Jun 2013 06:45:37 +0000 (14:45 +0800)]
* progmodes/octave.el (octave-mode): Backward compatibility fix.
Glenn Morris [Fri, 21 Jun 2013 06:37:44 +0000 (23:37 -0700)]
* lisp/font-lock.el (lisp-font-lock-keywords-2): Add with-eval-after-load.
Glenn Morris [Fri, 21 Jun 2013 06:32:50 +0000 (23:32 -0700)]
* lisp/url/url-future.el (url-future-call): Remove useless value call.
An earlier version of this function returned the value, ref
http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00708.html
but now it returns the function (see commentary).
Stefan Monnier [Fri, 21 Jun 2013 03:08:47 +0000 (23:08 -0400)]
* lisp/emacs-lisp/package.el: Use tar-mode rather than tar executable.
Consolidate the single-file vs tarball code.
(package-desc-suffix): New function.
(package-desc-full-name): Don't bother inlining it.
(package-load-descriptor): Return the new package-desc.
(package-mark-obsolete): Remove unused arg `package'.
(package-unpack): Make it work for single files as well.
Make it update package-alist.
(package--make-autoloads-and-stuff): Rename from
package--make-autoloads-and-compile. Don't compile any more.
(package--compile): New function.
(package-generate-description-file): New function, extracted from
package-unpack-single.
(package-unpack-single): Remove.
(package--with-work-buffer): Add indentation and debugging info.
(package-download-single): Remove.
(package-install-from-archive): Rename from package-download-tar, make
it take a pkg-desc, and make it work for single files as well.
(package-download-transaction): Simplify.
(package-tar-file-info): Remove `file' arg. Rewrite not to use an
external tar program.
(package-install-from-buffer): Remove `pkg-desc' argument.
Use package-tar-file-info for tar-mode buffers.
(package-install-file): Simplify accordingly.
(package-archive-base): Change to take a pkg-desc.
* lisp/tar-mode.el (tar--check-descriptor): New function, extracted from
tar-get-descriptor.
(tar-get-descriptor): Use it.
(tar-get-file-descriptor): New function.
(tar--extract): New function, extracted from tar-extract.
(tar--extract): Use it.
* lisp/emacs-lisp/package-x.el (package-upload-file): Decode the file, in
case the summary uses non-ascii. Adjust to new calling convention of
package-tar-file-info.
Glenn Morris [Fri, 21 Jun 2013 02:17:37 +0000 (19:17 -0700)]
Remove obsolete comments re postscript image printing
Leo Liu [Fri, 21 Jun 2013 01:21:15 +0000 (09:21 +0800)]
* comint.el (comint-redirect-results-list-from-process): Fix
random delay.
Fixes: debbugs:14681
YAMAMOTO Mitsuharu [Fri, 21 Jun 2013 01:03:23 +0000 (10:03 +0900)]
configure.ac (HAVE_LIBXML2): Try built-in libxml2 on OS X 10.8 as a fallback.
Juanma Barranquero [Fri, 21 Jun 2013 00:53:33 +0000 (02:53 +0200)]
lisp/profiler.el (profiler-format-number): Use log, not log10.
Juanma Barranquero [Thu, 20 Jun 2013 21:58:29 +0000 (23:58 +0200)]
lisp/term/x-win.el (emacs-session-filename): Use `locate-user-emacs-file'.
Stefan Monnier [Thu, 20 Jun 2013 20:01:51 +0000 (16:01 -0400)]
* lisp/emacs-lisp/cl-loaddefs.el: Don't version-control any more.
* lisp/emacs-lisp/cl-lib.el: Load cl-macs when cl-loaddefs is not
yet available.
* lisp/Makefile.in (AUTOGEN_VCS): Move cl-loaddefs.el...
(AUTOGENEL): ... here.
* lisp/emacs-lisp/cl-macs.el (cl--sublis): New function.
(cl--defsubst-expand): Use it.
* .bzrignore: Don't unignore cl-loaddefs.el.
Paul Eggert [Thu, 20 Jun 2013 18:59:08 +0000 (11:59 -0700)]
* syntax.c: Integer cleanups.
(SYNTAX_FLAGS_COMMENT_STYLEC): Return a boolean, not 0-or-2.
All uses that need 0-or-2 changed to:
(SYNTAX_FLAGS_COMMENT_STYLEC2): New macro, with the same semantics
as the old SYNTAX_FLAGS_COMMENT_STYLEC.
(struct lisp_parse_state, syntax_prefix_flag_p, update_syntax_table)
(char_quoted, prev_char_comend_first, back_comment)
(Finternal_describe_syntax_value, skip_chars, skip_syntaxes)
(in_classes, forw_comment, scan_lists, scan_sexps_forward):
Use bool for boolean.
(update_syntax_table, skip_chars, skip_syntaxes):
Prefer int to unsigned when either will do.
(back_comment): Return boolean success flag, like forw_comment,
instead of positive-or-minus-1 (which might have overflowed int anyway).
Don't stuff ptrdiff_t into int.
(syntax_spec_code, syntax_code_spec): Now const.
(Fmatching_paren, scan_lists, scan_sexps_forward):
Use enum syntaxcode for syntax code.
(Fmatching_paren): Check that arg is a character, not just an integer.
(Fstring_to_syntax): Don't assume 0377 fits in enum syntaxcode.
(Finternal_describe_syntax_value): Omit no-longer-needed
comparison to 0.
(skip_chars): Use char, not unsigned char, when the distinction
doesn't matter.
(forw_comment, scan_lists): Prefer A |= B to A = A || B when B's cheap.
* bytecode.c (exec_byte_code):
* syntax.c (syntax_spec_code, Fchar_syntax)
(Finternal_describe_syntax_value, skip_chars, skip_syntaxes)
(init_syntax_once):
* syntax.h (SYNTAX_WITH_FLAGS):
Omit unnecessary casts.
Eli Zaretskii [Thu, 20 Jun 2013 17:36:24 +0000 (20:36 +0300)]
Yet another attempt at fixing bugs #14602, 14630, 14669.
src/w32fns.c (w32_wnd_proc): Don't compute the header line and mode
line dimensions here, to avoid race conditions with the main
thread.
src/w32term.c (w32_draw_window_cursor): Compute the header line and
mode line dimensions here.
<w32_system_caret_window, w32_system_caret_hdr_height>:
<w32_system_caret_mode_height>: New variables.
src/w32term.h: Declare them.
Paul Eggert [Thu, 20 Jun 2013 14:47:46 +0000 (07:47 -0700)]
* alloc.c (die): Move "assertion failed" string here ...
* lisp.h (eassert): ... from here. Also, suppress evaluation of
COND when SUPPRESS_CHECKING. This shrinks the executable text
size by 0.8% to 2.2% when configured with --enable-checking,
depending on optimization flags (GCC 4.8.1 x86-64).
Paul Eggert [Thu, 20 Jun 2013 14:15:42 +0000 (07:15 -0700)]
Add log2 support and make log10 obsolete for consistency.
* configure.ac (log2): Check for this function.
* doc/lispref/numbers.texi (Math Functions): Remove obsolete function log10.
* lisp/subr.el (log10): Move here from C code, and declare as obsolete.
All uses of (log10 X) replaced with (log X 10).
* src/floatfns.c (Flog) [HAVE_LOG2]: Use log2 if available and if the
base is 2; this is more accurate.
(Flog10): Move to Lisp (marked obsolete there).
Juanma Barranquero [Thu, 20 Jun 2013 11:57:33 +0000 (13:57 +0200)]
lisp/emacs-lisp/tabulated-list.el: Use defvar-local, setq-local.
(tabulated-list-format): Fix typo. Declare with `defvar-local'.
(tabulated-list-use-header-line, tabulated-list-entries)
(tabulated-list-padding, tabulated-list-printer)
(tabulated-list-sort-key): Declare with `defvar-local'.
(tabulated-list-init-header, tabulated-list-print-fake-header):
Use `setq-local'.
Michael Albinus [Thu, 20 Jun 2013 11:46:59 +0000 (13:46 +0200)]
Fix ChangeLog entry.
Michael Albinus [Thu, 20 Jun 2013 11:45:45 +0000 (13:45 +0200)]
* arc-mode.el (archive-mode): Add `archive-write-file' also for
remote files. (Bug#14652)
Juanma Barranquero [Thu, 20 Jun 2013 11:29:30 +0000 (13:29 +0200)]
lisp/(cus-edit,custom).el: Fix typos; use setq-local, string-match-p, looking-at-p.
* lisp/cus-edit.el:
(custom-commands): Fix typos.
(custom-display): Fix tooltip text.
(custom-magic-alist, custom-filter-face-spec, custom-group-members):
Fix typos in docstrings.
(custom--initialize-widget-variables, Custom-mode): Use `setq-local'.
(custom-unlispify-menu-entry, custom-magic-value-create)
(custom-add-see-also, custom-group-value-create): Use ?\s.
(custom-guess-type, customize-apropos, editable-field)
(custom-face-value-create): Use `string-match-p'.
(custom-save-variables, custom-save-faces): Use `looking-at-p'.
* lisp/custom.el (custom-load-symbol): Use `string-match-p'.
Juanma Barranquero [Thu, 20 Jun 2013 10:28:23 +0000 (12:28 +0200)]
Revert 2013-06-20T00:39:59Z!lekktu@gmail.com.
Paul Eggert [Thu, 20 Jun 2013 01:19:43 +0000 (18:19 -0700)]
* floatfns.c: Add commentary re C99 and C11.
Juanma Barranquero [Thu, 20 Jun 2013 01:03:57 +0000 (03:03 +0200)]
lisp/ansi-color.el: Convert to lexical binding.
(ansi-colors): Fix URL.
(ansi-color-context, ansi-color-context-region): Use defvar-local.
(ansi-color-apply-sequence, ansi-color-map): Fix typos in docstrings.
(ansi-color-make-color-map): Rename local var ansi-color-map to map.
Juanma Barranquero [Thu, 20 Jun 2013 00:39:59 +0000 (02:39 +0200)]
lisp/progmodes/prog-mode.el: Remove autoload cookies.
Gnus developers [Wed, 19 Jun 2013 22:28:04 +0000 (22:28 +0000)]
Merge changes made in Gnus master
2013-06-19 Lars Magne Ingebrigtsen <larsi@gnus.org>
* net/eww.el (eww-process-text-input): Display passwords as asterisks.
* net/shr.el (shr-make-table-1): Protect against invalid column-spans.
2013-06-19 Tom Tromey <tromey@redhat.com>
* net/eww.el (eww-top-url): Remove.
(eww-home-url, eww-start-url, eww-contents-url): New defvars.
(eww-render): Set new variables. Don't set eww-top-url.
(eww-handle-link): Handle "prev", "home", and "contents".
Downcase the rel text.
(eww-top-url): Choose best top URL.
2013-06-19 Lars Magne Ingebrigtsen <larsi@gnus.org>
* net/eww.el: Rewrite to implement form elements "by hand" instead of
relying in widget.el. Using widget.el leads to too many
user interface inconsistencies.
(eww-self-insert): Implement entering commands in text fields.
(eww-process-text-input): New function to make text input field editing
work.
(eww-submit): Rewrite to use the new-style form methods.
(eww-select-display): Display the correct selected item.
(eww-change-select): Implement changing the select value.
(eww-toggle-checkbox): Implement radio/checkboxes.
(eww-update-field): Fix compilation error.
(eww-tag-textarea): Implement <textarea>.
* net/shr.el (shr-urlify): Use `keymap' instead of `local-map' so that we
don't shadow mode-specific bindings.
* net/eww.el (eww-browse-url): Don't push stuff onto history if there's
nothing to push.
* net/shr.el (shr-map): Bind [down-mouse-1] to browse URLs.
Glenn Morris [Wed, 19 Jun 2013 20:29:09 +0000 (16:29 -0400)]
* lisp/cedet/semantic/idle.el (define-semantic-idle-service):
No need to use eval-and-compile, progn will do.
(eval-and-compile ends up causing spurious warnings.)
Glenn Morris [Wed, 19 Jun 2013 20:27:49 +0000 (16:27 -0400)]
* lisp/emacs-lisp/eieio.el (defclass): Make it eval-and-compile once more.
Stephen Berman [Wed, 19 Jun 2013 20:11:03 +0000 (22:11 +0200)]
* todo-mode.el (todo-convert-legacy-files): Eliminate last change,
since it couldn't avoid namespace clashes, and instead let local
variables hold the legacy values used for conversion. This also
does not interfere with live todo buffers.
Juanma Barranquero [Wed, 19 Jun 2013 20:10:57 +0000 (22:10 +0200)]
Fix typos in ChangeLogs.
Stephen Berman [Wed, 19 Jun 2013 19:59:26 +0000 (21:59 +0200)]
* todo-mode.el: Rename from todos.el, change all occurrences of
"todos-" prefix to "todo-" and references to "Todos" to "Todo" or
"Todo mode".
Stephen Berman [Wed, 19 Jun 2013 19:50:32 +0000 (21:50 +0200)]
* calendar/todo-mode.el: Rename to otodo-mode.el and move to obsolete/.
Glenn Morris [Wed, 19 Jun 2013 16:59:23 +0000 (12:59 -0400)]
ChangeLog bug ref fix
Juanma Barranquero [Wed, 19 Jun 2013 14:27:21 +0000 (16:27 +0200)]
.bzrignore: Add GNU GLOBAL files.
Juanma Barranquero [Wed, 19 Jun 2013 14:20:26 +0000 (16:20 +0200)]
src/sound.c: Silence some warnings.
(string_default): Move to !WINDOWSNT section.
(Fplay_sound_internal) [WINDOWSNT]: Remove i_result to avoid warning.
Stefan Monnier [Wed, 19 Jun 2013 13:51:47 +0000 (09:51 -0400)]
* doc/lispref/keymaps.texi (Active Keymaps): Fix documentation of
set-temporary-overlay-map and overriding-terminal-local-map.
* doc/lispref/modes.texi (Mode Line Data, Properties in Mode): Advertise
`keymap' rather than `local-map'.
Michael Albinus [Wed, 19 Jun 2013 13:21:15 +0000 (15:21 +0200)]
* tramp.texi (Top, Configuration): Insert section `Predefined
connection information' in menu.
(Predefined connection information): New section.
(Android shell setup): Make a reference to `Predefined connection
information'.
Michael Albinus [Wed, 19 Jun 2013 13:14:24 +0000 (15:14 +0200)]
* net/tramp-adb.el (tramp-adb-get-toolbox): Remove function, it is
not needed.
* net/tramp-sh.el (tramp-find-shell): Don't set "busybox" property.
Stephen Berman [Wed, 19 Jun 2013 12:22:46 +0000 (14:22 +0200)]
* todos.el (todos-convert-legacy-files): Add code to make it work
after the new version is renamed and has the same namespace as the
old version. This also requires there to be no live todo buffers
when this command is called.
Glenn Morris [Wed, 19 Jun 2013 10:17:40 +0000 (06:17 -0400)]
Auto-commit of generated files.
Lars Magne Ingebrigtsen [Wed, 19 Jun 2013 07:37:45 +0000 (09:37 +0200)]
Use `eww-browse-url' instead of `eww'
* net/browse-url.el (browse-url-browser-function):
`eww-browse-url' has the right calling signature, `eww' does not.
Paul Eggert [Wed, 19 Jun 2013 07:36:20 +0000 (00:36 -0700)]
* sound.c: Integer cleanups.
Remove unnecessary forward decls.
(struct sound_device): The 'file' member is now a Lisp_Object, not
a char *, so that we needn't invoke alloca on a huge size.
(Fplay_sound_internal): Adjust to this.
(string_default): New function.
(vox_open, vox_init, alsa_open, alsa_configure, alsa_init):
Use it to adjust to the struct sound_device change.
(parse_sound, wav_init, au_init, alsa_init): Use bool for booleans.
(be2hs) [0]: Remove.
Glenn Morris [Wed, 19 Jun 2013 07:35:00 +0000 (00:35 -0700)]
Check autoload's "type" argument correctly in bytecomp.el
* lisp/emacs-lisp/bytecomp.el (byte-compile-file-form-autoload):
Only eval autoloaded macros.
(byte-compile-autoload): Only give the macro warning for macros.
Glenn Morris [Wed, 19 Jun 2013 07:28:47 +0000 (00:28 -0700)]
cedet/semantic/decorate/mode.el autoload tweak
* cedet/semantic/decorate/mode.el (define-semantic-decoration-style): Doc fix.
(define-semantic-decoration-style): 'function is not an accepted
value for autoload's "type" argument. Might as well use the default.