2013-06-18 Juri Linkov * files-x.el (modify-file-local-variable-message): New function. (modify-file-local-variable) (modify-file-local-variable-prop-line): Add arg INTERACTIVE and call `modify-file-local-variable-message' when it's non-nil. (add-file-local-variable, delete-file-local-variable) (add-file-local-variable-prop-line) (delete-file-local-variable-prop-line): Add arg INTERACTIVE and use it. (Bug#9820) 2013-06-18 Juri Linkov * emulation/vi.el (vi-shell-op): * emulation/vip.el (vip-execute-com, ex-command): * emulation/viper-cmd.el (viper-exec-bang): * emulation/viper-ex.el (ex-command): Add non-nil arg REPLACE to the call of `shell-command-on-region'. (Bug#14637) * simple.el (shell-command-on-region): Doc fix. 2013-06-18 Stefan Monnier * emacs-lisp/eieio-custom.el: Remove misleading Version: header (bug#14633). 2013-06-18 Glenn Morris * net/eww.el, net/shr.el, net/shr-color.el: Move here from gnus/. * newcomment.el (comment-search-forward, comment-search-backward): Doc fix. (Bug#14376) 2013-06-18 Juanma Barranquero * face-remap.el (buffer-face-toggle): Fix typo in docstring. (buffer-face-mode-invoke): Doc fix. 2013-06-18 Matthias Meulien * tabify.el (untabify, tabify): With prefix, apply to entire buffer. 2013-06-18 Glenn Morris * generic-x.el (bat-generic-mode, rc-generic-mode, rul-generic-mode): Replace obsolete function generic-make-keywords with its expansion. * progmodes/python.el (ffap-alist): Declare. * textmodes/reftex.el (bibtex-mode-map): Declare. 2013-06-18 Stefan Monnier * emacs-lisp/package.el: Update package-alist after install (bug#14632). (package-unpack, package-unpack-single): Return the pkg-dir. (package-download-transaction): Use it to update package-alist. 2013-06-17 Lars Magne Ingebrigtsen * net/browse-url.el (browse-url-browser-function): Add `eww' as a possible choice. 2013-06-17 Juri Linkov * net/webjump.el (webjump-sample-sites): Add DuckDuckGo. 2013-06-17 Dmitry Gutov * emacs-lisp/package.el (package-load-descriptor): Remove `with-syntax-table' call, `read' doesn't need it. http://lists.gnu.org/archive/html/emacs-devel/2013-06/msg00539.html 2013-06-17 Juanma Barranquero * startup.el (command-line): Expand package name returned by `package--description-file' (bug#14639). 2013-06-17 Dmitry Gutov * emacs-lisp/package.el (package-load-descriptor): Do not call `emacs-lisp-mode', just use its syntax table. 2013-06-17 Juanma Barranquero * progmodes/prog-mode.el (prog-prettify-install): Add `composition' to `font-lock-extra-managed-props' if any prettifying keyword is added. (prog--prettify-font-lock-compose-symbol): Use ?\s instead of ?\ . (prog-mode): Use `setq-local'. 2013-06-17 Stefan Monnier * international/characters.el (standard-case-table): Set syntax of ?» and ?« to punctuation. 2013-06-16 Juanma Barranquero * progmodes/prog-mode.el (prog--prettify-font-lock-compose-symbol): Save relevant match data before calling `syntax-ppss' (bug#14595). 2013-06-15 Juri Linkov * files-x.el (modify-file-local-variable-prop-line): Add local variables to the end of the existing comment on the first line. Use `file-auto-mode-skip' to skip interpreter magic line, and also skip XML declaration. 2013-06-15 Stefan Monnier * startup.el (package--builtin-versions): New var. (package-subdirectory-regexp): Remove. (package--description-file): Hard code its value instead. * emacs-lisp/package.el: Don't activate packages older than builtin. (package-obsolete-list): Rename from package-obsolete-alist, and make it into a simple list of package-desc. (package-strip-version): Remove. (package-built-in-p): Use package--builtin-versions. (package-mark-obsolete): Simplify. (package-process-define-package): Mark it obsolete if older than the builtin version. (package-handle-response): Use line-end-position. (package-read-archive-contents, package--download-one-archive): Simplify. (package--add-to-archive-contents): Skip if older than the builtin or installed version. (package-menu-describe-package): Fix last change. (package-list-unversioned): New var. (package-menu--generate): Use it. * emacs-lisp/autoload.el: Manage package--builtin-versions. (autoload--insert-text, autoload--insert-cookie-text): New functions. (autoload-builtin-package-versions): New variable. (autoload-generate-file-autoloads): Use them. Remove the list of autoloaded functions/macros from the (autoload...) comments. * Makefile.in (autoloads): Set autoload-builtin-package-versions. 2013-06-15 Eli Zaretskii * simple.el (line-move-partial): Don't jump to the next screen line as soon as it becomes visible. Instead, continue enlarging the vscroll until the portion of a tall screen line that's left on display is about the height of the frame's default font. (Bug#14567) 2013-06-15 Glenn Morris * vc/vc-dispatcher.el (vc-compilation-mode): Avoid making compilation-error-regexp-alist void, or local while let-bound. * progmodes/make-mode.el (makefile-mode-syntax-table): Treat "=" as punctuation. (Bug#14614) 2013-06-15 Juanma Barranquero * help-fns.el (describe-variable): Add extra line for permanent-local variables. 2013-06-15 Simen Heggestøyl (tiny change) * progmodes/scheme.el (scheme-font-lock-keywords-2): Add export, import, library. (Bug#9164) (library): Set indent function. 2013-06-14 Glenn Morris * term/xterm.el (xterm--query): Stop after first matching handler. (Bug#14615) 2013-06-14 Ivan Kanis Add support for dired in saveplace. * dired.el (dired-initial-position-hook): New variable. (dired-initial-position): Call hook to place cursor position. * saveplace.el (save-place-to-alist): Add dired position. (save-place-dired-hook): New function. 2013-06-14 Stefan Monnier * subr.el (eval-after-load, set-temporary-overlay-map): Use indirection through a symbol rather than letrec. * emacs-lisp/package.el: Don't recompute dir. Use pkg-descs more. (package-desc): Add `dir' field. (package-desc-full-name): New function. (package-load-descriptor): Combine the two arguments. Don't use `load'. (package-maybe-load-descriptor): Remove. (package-load-all-descriptors): Just call package-load-descriptor. (package--disabled-p): New function. (package-desc-vers, package-desc-doc): Remove aliases. (package--dir): Remove function. (package-activate): Check if a package is disabled. (package-process-define-package): New function, extracted from define-package. (define-package): Turn into a place holder. (package-unpack-single, package-tar-file-info): Use package--description-file. (package-compute-transaction): Use package--disabled-p. (package-download-transaction): Don't call package-maybe-load-descriptor since they're all loaded anyway. (package-install): Change argument to be a pkg-desc. (package-delete): Use a single pkg-desc argument. (describe-package-1): Use package-desc-dir instead of package--dir. Use package-desc property instead of package-symbol. (package-install-button-action): Adjust accordingly. (package--push): Rewrite. (package-menu--print-info): Adjust accordingly. Change the ID format to be a pkg-desc. (package-menu-describe-package, package-menu-get-status) (package-menu--find-upgrades, package-menu-mark-upgrades) (package-menu-execute, package-menu--name-predicate): Adjust accordingly. * startup.el (package--description-file): New function. (command-line): Use it. * emacs-lisp/package-x.el (package-upload-buffer-internal): Use package-desc-version. * emacs-lisp/bytecomp.el (byte-compile-force-lexical-warnings): New var. (byte-compile-preprocess): Use it. (byte-compile-file-form-defalias): Try a bit harder to use macros we can't quite recognize. (byte-compile-add-to-list): Remove. * emacs-lisp/cconv.el (cconv-warnings-only): New function. (cconv-closure-convert): Add assertion. * emacs-lisp/map-ynp.el: Use lexical-binding. (map-y-or-n-p): Remove unused vars `tail' and `object'. Factor out some repeated code. 2013-06-13 Stefan Monnier * subr.el (with-eval-after-load): New macro. (eval-after-load): Allow form to be a function. take advantage of lexical-binding. (do-after-load-evaluation): Use dolist and adjust to new format. * simple.el (bad-packages-alist): Use dolist and with-eval-after-load. 2013-06-13 Juri Linkov * replace.el (perform-replace): Display "symbol " and other search modes from `isearch-message-prefix' in the *Help* buffer. * isearch.el (isearch-query-replace): Add " symbol" and other possible search modes from `isearch-message-prefix' to the prompt. (isearch-occur): Use `with-isearch-suspended' to not exit Isearch when reading a regexp to collect. 2013-06-13 Juri Linkov * isearch.el (word-search-regexp): Match whitespace if the search string begins or ends in whitespace. The LAX arg is applied to both ends of the search string. Use `regexp-quote' and explicit \< and \> instead of \b. Use \` and \' instead of ^ and $. (isearch-symbol-regexp): Sync with `word-search-regexp' where word boundaries are replaced with symbol boundaries, and characters between symbols match non-word non-symbol syntax. (Bug#14602) 2013-06-13 Juri Linkov * isearch.el (isearch-del-char): Don't exceed the length of `isearch-string' by the prefix arg. (Bug#14563) 2013-06-13 Juri Linkov * isearch.el (isearch-yank-word, isearch-yank-line) (isearch-char-by-name, isearch-quote-char) (isearch-printing-char, isearch-process-search-char): Add optional count prefix arg. (Bug#14563) * international/isearch-x.el (isearch-process-search-multibyte-characters): Add optional count prefix arg. 2013-06-13 Stefan Monnier * subr.el (internal-push-keymap, internal-pop-keymap): New functions. (set-temporary-overlay-map): Use them (bug#14095); and take advantage of lexical-binding. 2013-06-13 Vitalie Spinu * subr.el (set-temporary-overlay-map): Add on-exit argument. 2013-06-13 Glenn Morris * startup.el (tty-handle-args): Don't just discard "--" and anything after. (Bug#14608) * emacs-lisp/lisp.el (forward-sexp, backward-sexp): Doc fixes. 2013-06-13 Michael Albinus Implement changes in Secret Service API. Make it backward compatible. * net/secrets.el (secrets-struct-secret-content-type): New defonst. (secrets-create-item): Use it. Prefix properties with interface. 2013-06-13 Michael Hoffman <9qobl2n02@sneakemail.com> (tiny change) * term.el (term-suppress-hard-newline): New option. (Bug#12017) (term-emulate-terminal): Respect term-suppress-hard-newline. 2013-06-13 E Sabof (tiny change) * image-dired.el (image-dired-dired-toggle-marked-thumbs): Only remove a `thumb-file' overlay. (Bug#14548) 2013-06-12 Grégoire Jadi * mail/reporter.el (reporter-submit-bug-report): Handle missing package-name. (Bug#14600) 2013-06-12 Rüdiger Sonderfeld * textmodes/reftex-cite.el (reftex-cite-regexp-hist) (reftex-citation-prompt, reftex-default-bibliography) (reftex-bib-or-thebib, reftex-get-bibfile-list) (reftex-pop-to-bibtex-entry, reftex-extract-bib-entries) (reftex-bib-sort-author, reftex-bib-sort-year) (reftex-bib-sort-year-reverse, reftex-get-crossref-alist) (reftex-extract-bib-entries-from-thebibliography) (reftex-get-bibkey-default, reftex-get-bib-names) (reftex-parse-bibtex-entry, reftex-get-bib-field) (reftex-format-bib-entry, reftex-parse-bibitem) (reftex-format-bibitem, reftex-do-citation) (reftex-figure-out-cite-format, reftex-offer-bib-menu) (reftex-restrict-bib-matches, reftex-extract-bib-file) (reftex-insert-bib-matches, reftex-format-citation) (reftex-make-cite-echo-string, reftex-bibtex-selection-callback) (reftex-create-bibtex-file): Add docstrings, mostly by converting existing comments into docstrings. 2013-06-12 Xue Fuqiao * ibuf-ext.el (ibuffer-mark-help-buffers): Doc fix. 2013-06-12 Andreas Schwab * international/mule.el (auto-coding-alist): Use utf-8-emacs-unix for auto-save files. 2013-06-12 Glenn Morris * ido.el (ido-delete-ignored-files): Remove. (ido-wide-find-dirs-or-files, ido-make-file-list-1): Go back to calling ido-ignore-item-p directly. 2013-06-12 Eyal Lotem (tiny change) * ido.el (ido-wide-find-dirs-or-files): Respect ido-case-fold. * ido.el (ido-delete-ignored-files): New function, split from ido-make-file-list-1. (ido-wide-find-dirs-or-files): Maybe ignore files. (Bug#13003) (ido-make-file-list-1): Use ido-delete-ignored-files. 2013-06-12 Leo Liu * progmodes/octave.el (inferior-octave-startup) (inferior-octave-completion-table) (inferior-octave-track-window-width-change) (octave-eldoc-function-signatures, octave-help) (octave-find-definition): Use single quoted strings. (inferior-octave-startup-args): Change default value. (inferior-octave-startup): Do not hard code "-i" and "--no-line-editing". (inferior-octave-resync-dirs): Add optional arg NOERROR. (inferior-octave-directory-tracker): Use it. (octave-goto-function-definition): Robustify. (octave-help): Support highlighting operators in 'See also'. (octave-find-definition): Find subfunctions only in Octave mode. 2013-06-12 Stefan Monnier * help-fns.el (help-fns--compiler-macro): If the handler function is named, then put a link to it. * help-mode.el (help-function-cmacro): Adjust regexp for cl-lib names. * emacs-lisp/cl-macs.el (cl--compiler-macro-typep): New function. (cl-typep): Use it. (cl-eval-when): Simplify debug spec. (cl-define-compiler-macro): Use eval-and-compile. Give a name to the compiler-macro function instead of setting `compiler-macro-file'. 2013-06-12 Xue Fuqiao * vc/vc-cvs.el (vc-cvs-stay-local): Doc fix. * vc/vc-hooks.el (vc-stay-local): Doc fix. 2013-06-12 Stefan Monnier Daniel Hackney First part of Daniel Hackney's patch to package.el. * emacs-lisp/package.el: Use defstruct. (package-desc): New, main struct. (package--bi-desc, package--ac-desc): New structs, used to describe the format in external files. (package-desc-vers): Replace with package-desc-version accessor. (package-desc-doc): Replace with package-desc-summary accessor. (package-activate-1): Remove `package' arg since the pkg-vec now includes the name. (define-package): Use package-desc-from-define. (package-unpack-single): Change file-name arg to be a symbol. (package--add-to-archive-contents): Use package-desc-create and new accessor functions to package--ac-desc. (package-buffer-info, package-tar-file-info): Return a package-desc. (package-install-from-buffer): Remove `type' argument. Change pkg-info arg to be a package-desc. (package-install-file): Adjust accordingly. Use \' to match EOS. (package--from-builtin): New function. (describe-package-1, package-menu--generate): Use it. (package--make-autoloads-and-compile): Change name arg to be a symbol. (package-generate-autoloads): Idem and return the name of the file. * emacs-lisp/package-x.el (package-upload-buffer-internal): Change pkg-info arg to be a package-desc. Use package-make-ac-desc. (package-upload-file): Use \' to match EOS. * finder.el (finder-compile-keywords): Use package-make-builtin. 2013-06-11 Stefan Monnier * vc/vc.el (vc-deduce-fileset): Change error message. (vc-read-backend): New function. (vc-next-action): Use it. * subr.el (function-arity): Remove (mistakenly added) (bug#14590). * progmodes/prolog.el (prolog-make-keywords-regexp): Remove. (prolog-font-lock-keywords): Use regexp-opt instead. Don't manually highlight strings. (prolog-mode-variables): Simplify comment-start-skip. (prolog-consult-compile): Use display-buffer. Remove unused old-filter. * emacs-lisp/generic.el (generic--normalise-comments) (generic-set-comment-syntax, generic-set-comment-vars): New functions. (generic-mode-set-comments): Use them. (generic-bracket-support): Use setq-local. (generic-make-keywords-list): Declare obsolete. 2013-06-11 Glenn Morris * emacs-lisp/lisp-mode.el (lisp-mode-variables): Prettify after setting font-lock-defaults. (Bug#14574) 2013-06-11 Juanma Barranquero * replace.el (query-replace, occur-read-regexp-defaults-function) (replace-search): * subr.el (declare-function, number-sequence, local-set-key) (substitute-key-definition, locate-user-emacs-file) (with-silent-modifications, split-string, eval-after-load): Fix typos, remove unneeded backslashes and reflow some docstrings. 2013-06-11 Stefan Monnier * international/mule-conf.el (file-coding-system-alist): Use utf-8 as default for Elisp files. 2013-06-11 Glenn Morris * vc/log-view.el (log-view-mode-map): Inherit from special-mode-map, although define-derived-mode was doing this anyway. (Bug#14583) 2013-06-10 Juanma Barranquero * allout.el (allout-encryption-plaintext-sanitization-regexps): Fix make-variable-buffer-local call to refer to the correct variable. 2013-06-10 Aidan Gauland * eshell/em-term.el (eshell-visual-commands) (eshell-visual-subcommands, eshell-visual-options): Add summary line to docstrings. Add cross-references. 2013-06-10 Glenn Morris * epa.el (epa-read-file-name): New function. (Bug#14510) (epa-decrypt-file): Make plain-file optional. Use epa-read-file-name. 2013-06-09 Aidan Gauland * eshell/em-term.el (eshell-visual-command-p): Fix bug that caused output redirection to be ignored with visual commands. 2013-06-09 Aidan Gauland * eshell/em-term.el (eshell-visual-command-p): New function. (eshell-term-initialize): Move long lambda to separate function eshell-visual-command-p. * eshell/em-dirs.el (eshell-dirs-initialise): * eshell/em-script.el (eshell-script-initialize): Add missing #' to lambda. 2013-06-08 Leo Liu * progmodes/octave.el (octave-add-log-current-defun): New function. (octave-mode): Set add-log-current-defun-function. (octave-goto-function-definition): Do not move point if not found. (octave-find-definition): Enhance to try subfunctions first. 2013-06-08 Glenn Morris * emacs-lisp/bytecomp.el (byte-compile-char-before) (byte-compile-backward-char, byte-compile-backward-word): Improve previous change, to handle non-explicit nil. 2013-06-07 Stefan Monnier * emacs-lisp/smie.el: Improve show-paren-mode behavior. (smie--opener/closer-at-point): New function. (smie--matching-block-data): Use it. Don't match from right after an opener or right before a closer. Obey smie-blink-matching-inners. Don't signal a mismatch for repeated inners like "switch..case..case". 2013-06-07 Leo Liu * progmodes/octave.el (octave-mode): Set comment-use-global-state to t. (Bug#14303) (octave-function-header-regexp): Fix. (Bug#14570) (octave-help-mode-finish-hook, octave-help-mode-finish): Remove. Just use temp-buffer-show-hook. * newcomment.el (comment-search-backward): Revert last change. (Bug#14434) * emacs-lisp/smie.el (smie--matching-block-data): Minor simplification. 2013-06-07 Eli Zaretskii * Makefile.in (TAGS TAGS-LISP): Pass the (long) list of *.el files through xargs, to avoid failure due to MS-Windows limitations on command-line length. 2013-06-06 Glenn Morris * font-lock.el (lisp-font-lock-keywords-2): Treat user-error like error. * emacs-lisp/bytecomp.el (byte-compile-char-before) (byte-compile-backward-char, byte-compile-backward-word): Handle explicit nil arguments. (Bug#14565) 2013-06-05 Alan Mackenzie * isearch.el (isearch-allow-prefix): New user option. (isearch-other-meta-char): Don't exit isearch when a prefix argument is typed whilst `isearch-allow-prefix' is non-nil. (Bug#9706) 2013-06-05 Stefan Monnier * autorevert.el (auto-revert-notify-handler): Use memq. Hide assertion failure. * skeleton.el: Use cl-lib. (skeleton-further-elements): Use defvar-local. (skeleton-insert): Use cl-progv. 2013-06-05 Teodor Zlatanov * progmodes/prog-mode.el (prog-prettify-symbols) (prog-prettify-install): Update docstrings. 2013-06-05 Stefan Monnier * simple.el: Move all the prog-mode code to prog-mode.el. * progmodes/prog-mode.el: New file. * loadup.el: Add prog-mode.el. 2013-06-05 Teodor Zlatanov * simple.el (prog-prettify-symbols): Add version. (prog-prettify-install): Add convenience function to prettify symbols. * progmodes/perl-mode.el (perl--augmented-font-lock-keywords) (perl--augmented-font-lock-keywords-1) (perl--augmented-font-lock-keywords-2, perl-mode): Remove unneeded variables and use it. * progmodes/cfengine.el (cfengine3--augmented-font-lock-keywords) (cfengine3-mode): Remove unneeded variable and use it. * emacs-lisp/lisp-mode.el (lisp--augmented-font-lock-keywords) (lisp--augmented-font-lock-keywords-1) (lisp--augmented-font-lock-keywords-2, lisp-mode-variables): Remove unneeded variables and use it. 2013-06-05 João Távora * net/tls.el (open-tls-stream): Remove unneeded buffer contents up to point when opening the connection. (Bug#14380) 2013-06-05 Stefan Monnier * subr.el (load-history-regexp, load-history-filename-element) (eval-after-load, after-load-functions, do-after-load-evaluation) (eval-next-after-load, display-delayed-warnings) (collapse-delayed-warnings, delayed-warnings-hook): Move after the definition of save-match-data. (overriding-local-map): Remove accidental obsolescence declaration. * emacs-lisp/edebug.el (edebug-result): Move before first use. 2013-06-05 Teodor Zlatanov Generalize symbol prettify support to prog-mode and implement it for perl-mode, cfengine3-mode, and emacs-lisp-mode. * simple.el (prog-prettify-symbols-alist, prog-prettify-symbols) (prog--prettify-font-lock-compose-symbol) (prog-prettify-font-lock-symbols-keywords): New variables and functions to support symbol prettification. * emacs-lisp/lisp-mode.el (lisp--augmented-font-lock-keywords) (lisp--augmented-font-lock-keywords-1) (lisp--augmented-font-lock-keywords-2, lisp-mode-variables) (lisp--prettify-symbols-alist): Implement prettify of lambda. * progmodes/cfengine.el (cfengine3--augmented-font-lock-keywords) (cfengine3--prettify-symbols-alist, cfengine3-mode): Implement prettify of -> => :: strings. * progmodes/perl-mode.el (perl-prettify-symbols) (perl--font-lock-compose-symbol) (perl--font-lock-symbols-keywords): Move to prog-mode. (perl--prettify-symbols-alist): Prettify -> => :: strings. (perl-font-lock-keywords-1) (perl-font-lock-keywords-2): Remove explicit prettify support. (perl--augmented-font-lock-keywords) (perl--augmented-font-lock-keywords-1) (perl--augmented-font-lock-keywords-2, perl-mode): Implement prettify support. 2013-06-05 Leo Liu Re-implement smie matching block highlight using show-paren-data-function. (Bug#14395) * emacs-lisp/smie.el (smie-matching-block-highlight) (smie--highlight-matching-block-overlay) (smie--highlight-matching-block-lastpos) (smie-highlight-matching-block) (smie-highlight-matching-block-mode): Remove. (smie--matching-block-data-cache): New variable. (smie--matching-block-data): New function. (smie-setup): Use smie--matching-block-data for show-paren-data-function. * progmodes/octave.el (octave-mode-menu): Fix. (octave-find-definition): Skip garbage lines. 2013-06-05 Stefan Monnier Fix compilation error with simultaneous dynamic+lexical scoping. Add warning when a defvar appears after the first let-binding. * emacs-lisp/bytecomp.el (byte-compile-lexical-variables): New var. (byte-compile-close-variables): Initialize it. (byte-compile--declare-var): New function. (byte-compile-file-form-defvar) (byte-compile-file-form-define-abbrev-table) (byte-compile-file-form-custom-declare-variable): Use it. (byte-compile-make-lambda-lexenv): Change the argument. Simplify. (byte-compile-lambda): Share call to byte-compile-arglist-vars. (byte-compile-bind): Handle dynamic bindings that shadow lexical bindings. (byte-compile-unbind): Make arg non-optional. (byte-compile-let): Simplify. * emacs-lisp/cconv.el (byte-compile-lexical-variables): Declare var. (cconv--analyse-function, cconv-analyse-form): Populate it. Protect byte-compile-bound-variables to limit the scope of defvars. (cconv-analyse-form): Add missing rule for (defvar ). Remove unneeded rule for `declare'. * emacs-lisp/cl-macs.el (cl--compiler-macro-adjoin): Use macroexp-let2 so as to avoid depending on cl-adjoin at run-time. * emacs-lisp/cl-lib.el (cl-pushnew): Use backquotes. * emacs-lisp/macroexp.el (macroexp--compiling-p): New function. (macroexp--warn-and-return): Use it. 2013-06-05 Leo Liu * eshell/esh-mode.el (eshell-mode): Fix key bindings. 2013-06-04 Leo Liu * progmodes/compile.el (compile-goto-error): Add optional arg NOMSG. (compilation-auto-jump): Suppress the "Mark set" message to give way to exit message. 2013-06-04 Alan Mackenzie Remove faulty optimisation from indentation calculation. * progmodes/cc-engine.el (c-guess-basic-syntax): Don't calculate search limit based on 2000 characters back from indent-point. 2013-06-03 Tassilo Horn * eshell/em-term.el (cl-lib): Require `cl-lib'. 2013-06-03 Stefan Monnier * emacs-lisp/lisp.el: Use lexical-binding. (lisp--local-variables-1, lisp--local-variables): New functions. (lisp--local-variables-completion-table): New var. (lisp-completion-at-point): Use it complete let-bound vars. * emacs-lisp/lisp-mode.el (eval-sexp-add-defvars): Expand macros eagerly (bug#14422). 2013-06-03 Michael Albinus * autorevert.el (auto-revert-notify-enabled) (auto-revert-notify-rm-watch, auto-revert-notify-add-watch) (auto-revert-notify-event-p, auto-revert-notify-event-file-name) (auto-revert-notify-handler): Handle also gfilenotify. * subr.el (file-notify-handle-event): New defun. Replacing ... (inotify-event-p, inotify-handle-event, w32notify-handle-event): Remove. 2013-06-03 Juri Linkov * bindings.el (search-map): Bind `highlight-symbol-at-point' to `M-s h .'. (Bug#14427) * hi-lock.el (highlight-symbol-at-point): New alias for the new command `hi-lock-face-symbol-at-point'. (hi-lock-face-symbol-at-point): New command. (hi-lock-map): Bind `highlight-symbol-at-point' to `C-x w .'. (hi-lock-menu): Add `highlight-symbol-at-point'. (hi-lock-mode): Doc fix. * isearch.el (isearch-forward-symbol-at-point): New command. (search-map): Bind `isearch-forward-symbol-at-point' to `M-s .'. (isearch-highlight-regexp): Add a regexp which matches words/symbols for word/symbol mode. * subr.el (find-tag-default-bounds): New function with the body mostly moved from `find-tag-default'. (find-tag-default): Move most code to `find-tag-default-bounds', call it and apply `buffer-substring-no-properties' afterwards. 2013-06-03 Tassilo Horn * eshell/em-term.el (eshell-term-initialize): Use `cl-intersection' rather than `intersection'. 2013-06-02 Xue Fuqiao * vc/log-view.el: Doc fix. (log-view-mode-map): Copy keymap from `special-mode-map'. 2013-06-02 Eric Ludlam * emacs-lisp/eieio.el (eieio--defalias, eieio-hook) (eieio-error-unsupported-class-tags, eieio-skip-typecheck) (eieio-optimize-primary-methods-flag, eieio-initializing-object) (eieio-unbound, eieio-default-superclass) (eieio--define-field-accessors, method-static, method-before) (method-primary, method-after, method-num-lists) (method-generic-before, method-generic-primary) (method-generic-after, method-num-slots) (eieio-specialized-key-to-generic-key) (eieio--check-type, class-v, class-p) (eieio-class-name, define-obsolete-function-alias) (eieio-class-parents-fast, eieio-class-children-fast) (same-class-fast-p, class-constructor, generic-p) (generic-primary-only-p, generic-primary-only-one-p) (class-option-assoc, class-option, eieio-object-p) (class-abstract-p, class-method-invocation-order) (eieio-defclass-autoload-map, eieio-defclass-autoload) (eieio-class-un-autoload, eieio-defclass) (eieio-eval-default-p, eieio-perform-slot-validation-for-default) (eieio-add-new-slot, eieio-copy-parents-into-subclass) (eieio--defgeneric-init-form, eieio-defgeneric-form) (eieio-defgeneric-reset-generic-form) (eieio-defgeneric-form-primary-only) (eieio-defgeneric-reset-generic-form-primary-only) (eieio-defgeneric-form-primary-only-one) (eieio-defgeneric-reset-generic-form-primary-only-one) (eieio-unbind-method-implementations) (eieio--defmethod, eieio--typep) (eieio-perform-slot-validation, eieio-validate-slot-value) (eieio-validate-class-slot-value, eieio-barf-if-slot-unbound) (eieio-oref, eieio-oref-default, eieio-default-eval-maybe) (eieio-oset, eieio-oset-default, eieio-slot-originating-class-p) (eieio-slot-name-index, eieio-class-slot-name-index) (eieio-set-defaults, eieio-initarg-to-attribute) (eieio-attribute-to-initarg, eieio-c3-candidate) (eieio-c3-merge-lists, eieio-class-precedence-c3) (eieio-class-precedence-dfs, eieio-class-precedence-bfs) (eieio-class-precedence-list, eieio-generic-call-methodname) (eieio-generic-call-arglst, eieio-generic-call-key) (eieio-generic-call-next-method-list) (eieio-pre-method-execution-functions, eieio-generic-call) (eieio-generic-call-primary-only, eieiomt-method-list) (eieiomt-optimizing-obarray, eieiomt-install) (eieiomt-add, eieiomt-next, eieiomt-sym-optimize) (eieio-generic-form, eieio-defmethod, make-obsolete) (eieio-defgeneric, make-obsolete): Move to eieio-core.el (defclass): Remove `eval-and-compile' from macro. (call-next-method, shared-initialize): Instead of using `scoped-class' variable, use new eieio--scoped-class, and eieio--with-scoped-class. (initialize-instance): Rename local variable 'scoped-class' to 'this-class' to remove ambiguitity from old global. * emacs-lisp/eieio-core.el: New file. Derived from key parts of eieio.el. (eieio--scoped-class-stack): New variable (eieio--scoped-class): New fcn (eieio--with-scoped-class): New scoping macro. (eieio-defclass): Use pushnew instead of add-to-list. (eieio-defgeneric-form-primary-only-one, eieio-oset-default) (eieio-slot-name-index, eieio-set-defaults, eieio-generic-call) (eieio-generic-call-primary-only, eieiomt-add): Instead of using `scoped-class' variable, use new eieio--scoped-class, and eieio--with-scoped-class. * emacs-lisp/eieio-base.el (cl-lib): Require during compile. 2013-06-02 Tassilo Horn * eshell/esh-ext.el (eshell-external-command): Pass args to `eshell-find-interpreter'. (eshell-find-interpreter): Add new second parameter ARGS. * eshell/em-script.el (eshell-script-initialize): Add second arg to the function added as MATCH to `eshell-interpreter-alist'. * eshell/em-dirs.el (eshell-dirs-initialize): Add second arg to the function added as MATCH to `eshell-interpreter-alist'. * eshell/em-term.el (eshell-visual-subcommands): New defcustom. (eshell-visual-options): New defcustom. (eshell-escape-control-x): Adapt docstring. (eshell-term-initialize): Test `eshell-visual-subcommands' and `eshell-visual-options' in addition to `eshell-visual-commands'. (eshell-exec-visual): Pass args to `eshell-find-interpreter'. 2013-06-01 Fabián Ezequiel Gallina * progmodes/python.el (python-indent-block-enders): Add break, continue and raise keywords. 2013-06-01 Glenn Morris * pcmpl-gnu.el (pcomplete/tar): Check obsolete variable is bound. Plain (f)boundp silences compilation warnings since Emacs 22.1. * progmodes/cc-cmds.el (delete-forward-p): * progmodes/cc-defs.el (buffer-syntactic-context-depth): * progmodes/cc-engine.el (buffer-syntactic-context): * progmodes/cc-fonts.el (face-property-instance): * progmodes/cc-mode.el (set-keymap-parents): * progmodes/cc-vars.el (get-char-table): No need for cc-bytecomp-defun. * progmodes/cc-defs.el (c-set-region-active, c-beginning-of-defun-1) * progmodes/cc-mode.el (c-make-inherited-keymap): Use plain fboundp. * progmodes/cc-defs.el (zmacs-region-stays, zmacs-regions) (lookup-syntax-properties): Remove unecessary cc-bytecomp-defvar. * progmodes/cc-vars.el (other): Emacs has this widget since at least 21.1, so don't (re)define it. * eshell/em-cmpl.el (eshell-cmpl-initialize): Replace the obsolete alias pcomplete-arg-quote-list. 2013-06-01 Leo Liu * progmodes/octave.el (octave-mode-syntax-table): Give `.' punctuation syntax. (inferior-octave-minimal-columns) (inferior-octave-last-column-width): New variables. (inferior-octave-track-window-width-change): New function. (inferior-octave-mode): Adjust column width so that Octave output, for example from 'ls', can fit into the window nicely. 2013-05-31 Dmitry Gutov * progmodes/ruby-mode.el (ruby-syntax-expansion-allowed-p): Highlight expansions inside regexp literals. 2013-05-31 Glenn Morris * obsolete/sym-comp.el (symbol-complete): Replace obsolete completion-annotate-function. * progmodes/cc-vars.el (c-make-macro-with-semi-re): Silence compiler. 2013-05-31 Dmitry Gutov * progmodes/ruby-mode.el (ruby-syntax-expansion-allowed-p): New function, checks if point is inside a literal that allows expression expansion. (ruby-syntax-propertize-expansion): Use it. (ruby-syntax-propertize-function): Bind `case-fold-search' to nil around the body. 2013-05-30 Juri Linkov * isearch.el (isearch-mode-map): Bind `isearch-toggle-invisible' to "\M-si". (isearch-invisible): New variable. (isearch-forward): Doc fix. (isearch-mode): Set `isearch-invisible' to the value of `search-invisible'. (isearch-toggle-case-fold): Doc fix. (isearch-toggle-invisible): New command. (isearch-query-replace): Let-bind `search-invisible' to the value of `isearch-invisible'. (isearch-search): Use `isearch-invisible' instead of `search-invisible'. Let-bind `search-invisible' to the value of `isearch-invisible'. (Bug#11378) 2013-05-30 Juri Linkov * replace.el (perform-replace): Avoid `isearch-range-invisible' call when `query-flag' is nil and `search-invisible' is non-nil. (Bug#11746) 2013-05-30 Glenn Morris * progmodes/gdb-mi.el (gdb-wait-for-pending): Fix typo. * progmodes/cc-bytecomp.el (cc-bytecomp-noruntime-functions): New. (cc-require): Suppress spurious "noruntime" warnings. (cc-require-when-compile): Use fboundp, for sake of compiler. * progmodes/cc-mode.el: Move load of cc-vars before that of cc-langs (which in turn loads cc-vars), to quieten compiler. 2013-05-30 Stefan Monnier * paren.el: Simplify the code. (show-paren-mode): Always start the timer. (show-paren--idle-timer): Rename from show-paren-idle-timer. (show-paren--overlay, show-paren--overlay-1): Rename from show-paren-overlay and show-paren-overlay-1, and initialize to an overlay rather than to nil. (show-paren-function): Misc cleanup and simplifications. 2013-05-30 Stefan Monnier * paren.el (show-paren-data-function): New hook. (show-paren--default): New function, extracted from show-paren-function. (show-paren-function): Use show-paren-data-function. 2013-05-30 Glenn Morris * ielm.el (ielm-map, ielm-complete-symbol): Use completion-at-point rather than obsolete functions. (inferior-emacs-lisp-mode): Doc fix. Set completion-at-point-functions, rather than comint-dynamic-complete-functions. * eshell/em-cmpl.el (eshell-complete-lisp-symbol): New function. (eshell-cmpl-initialize, eshell-complete-parse-arguments): Replace obsolete lisp-complete-symbol with eshell-complete-lisp-symbol. * image.el (image-animated-p): Tweak definition. * net/rlogin.el (rlogin-program, rlogin-explicit-args): Default to ssh. (rlogin-process-connection-type): Tweak default. Add set-after. (rlogin-host): Doc fix. (rlogin): Tweak prompt. (rlogin-tab-or-complete): Use completion-at-point rather than alias. * net/net-utils.el (nslookup-mode-map, ftp-mode-map): * progmodes/tcl.el (inferior-tcl-mode-map): Use completion-at-point rather than obsolete alias. * emacs-lisp/eieio.el (eieio-eval-default-p): Move before use. * minibuffer.el (read-file-name-completion-ignore-case): Move before completion--in-region, for eager macro expansion. 2013-05-29 Juri Linkov * replace.el (occur-engine): Rename `globalcount' to `global-lines' for total count of matching lines. Add `global-matches' for total count of matches. Rename `matches' to `lines' for count of matching lines. Add `matches' for count of matches. Rename `lines' to `curr-line' for line count. Rename `prev-lines' to `prev-line' for line number of prev match endpt. Increment `matches' for every match. Print the number of matching lines in the header. (occur-context-lines): Rename `lines' to `curr-line'. Rename `prev-lines' to `prev-line'. (Bug#14017) 2013-05-29 Juri Linkov * replace.el (perform-replace): Add `skip-read-only-count', `skip-filtered-count', `skip-invisible-count' let-bound to 0. Increment them for corresponding conditions and report the number of skipped occurrences in the final message. (Bug#11746) (query-replace, query-replace-regexp, query-replace-regexp-eval) (replace-string, replace-regexp): Doc fix. 2013-05-29 Stefan Monnier * emacs-lisp/trace.el (trace--read-args): Provide a default. * emacs-lisp/lisp-mode.el (lisp-mode-shared-map): Inherit from prog-mode-map (bug#14504). 2013-05-29 Leo Liu * progmodes/octave.el (octave-indent-comment): Tweak regexps. (octave-help): Small simplification. * emacs-lisp/smie.el (smie-highlight-matching-block): Always turn off the highlight first. 2013-05-29 Glenn Morris * progmodes/idlwave.el (idlwave-concatenate-rinfo-lists): Handle idlwave-last-system-routine-info-cons-cell being nil. * progmodes/idlwave.el (idlwave-scan-user-lib-files) (idlwave-write-paths): Simplify via with-temp-buffer. * emulation/cua-gmrk.el: Also load cua-base, cua-rect at run time. * emulation/cua-rect.el: Also load cua-base at run time. * progmodes/cperl-mode.el (imenu-choose-buffer-index) (file-of-tag, etags-snarf-tag, etags-goto-tag-location): Declare. (cperl-imenu-on-info): Require imenu. 2013-05-28 Alan Mackenzie Handle "capitalised keywords" correctly. * progmodes/cc-mode.el (c-after-change): Bind case-fold-search to nil. 2013-05-28 Aidan Gauland * eshell/em-unix.el: Add -r option to cp. 2013-05-28 Glenn Morris * vc/vc-arch.el (vc-exec-after): Declare. (vc-switches): Autoload. * vc/vc-bzr.el: No need to require vc when compiling. (vc-exec-after, vc-set-async-update, vc-default-dir-printer) (vc-resynch-buffer, vc-dir-refresh): Declare. (vc-setup-buffer, vc-switches): Autoload. * vc/vc-cvs.el (vc-exec-after, vc-coding-system-for-diff) (vc-resynch-buffer): Declare. (vc-switches, vc-default-revert, vc-version-backup-file): Autoload. * vc/vc-dir.el (desktop-missing-file-warning): Declare. * vc/vc-git.el (vc-exec-after, vc-set-async-update) (grep-read-regexp, grep-read-files, grep-expand-template) (vc-dir-refresh): Declare. (vc-setup-buffer, vc-switches, vc-resynch-buffer): Autoload. * vc/vc-hg.el (vc-exec-after, vc-set-async-update): Declare. (vc-setup-buffer, vc-switches, vc-do-async-command): Autoload. * vc/vc-mtn.el (vc-exec-after): Declare. (vc-switches): Autoload. * vc/vc-rcs.el (vc-expand-dirs, vc-switches) (vc-tag-precondition, vc-buffer-sync, vc-rename-master): Autoload. (vc-file-tree-walk): Declare. * vc/vc-sccs.el (vc-file-tree-walk): Declare. (vc-expand-dirs, vc-switches, vc-setup-buffer, vc-delistify) (vc-tag-precondition, vc-rename-master): Autoload. * vc/vc-svn.el (vc-exec-after): Declare. (vc-switches, vc-setup-buffer): Autoload. * obsolete/vc-mcvs.el (vc-checkout, vc-switches, vc-default-revert): Autoload. (vc-resynch-buffer): Declare. * obsolete/fast-lock.el (byte-compile-warnings): Don't warn about obsolete features in this obsolete file. * progmodes/cc-vars.el (c-macro-names-with-semicolon): Move definition before use. * play/dunnet.el (byte-compile-warnings): Don't disable them all. (dun-unix-verbs): Remove dun-zippy. (dun-zippy): Remove function. * emacs-lisp/bytecomp.el (byte-compile-warnings): Doc fix. 2013-05-27 Juri Linkov * replace.el (replace-search): New function with code moved out from `perform-replace'. (replace-highlight, replace-dehighlight): Move function definitions up closer to `replace-search'. (Bug#11746) 2013-05-27 Juri Linkov * replace.el (perform-replace): Ignore invisible matches. In addition to checking `query-replace-skip-read-only', also filter out matches by calling `run-hook-with-args-until-failure' on `isearch-filter-predicates', and also check `search-invisible' for t or call `isearch-range-invisible'. (replace-dehighlight): Call `isearch-clean-overlays'. (Bug#11746) 2013-05-27 Juri Linkov * isearch.el (isearch-filter-predicates): Rename from `isearch-filter-predicate'. Doc fix. (Bug#11378) (isearch-message-prefix): Display text from the property `isearch-message-prefix' of the currently active filters. (isearch-search): Don't compare `isearch-filter-predicate' with `isearch-filter-visible'. Call `run-hook-with-args-until-failure' on `isearch-filter-predicates'. Also check `search-invisible' for t or call `isearch-range-invisible'. (isearch-filter-visible): Make obsolete. (isearch-lazy-highlight-search): Call `run-hook-with-args-until-failure' on `isearch-filter-predicates' and use `isearch-range-invisible'. * info.el (Info-search): Call `run-hook-with-args-until-failure' on `isearch-filter-predicates' instead of `funcall'ing `isearch-filter-predicate'. (Info-mode): Set `Info-isearch-filter' to `isearch-filter-predicates' instead of `isearch-filter-predicate'. * dired-aux.el (dired-isearch-filter-predicate-orig): Remove variable. (dired-isearch-filenames-toggle, dired-isearch-filenames-setup) (dired-isearch-filenames-end): Add and remove `dired-isearch-filter-filenames' in `isearch-filter-predicates' instead of changing the value of `isearch-filter-predicate'. Rebind `dired-isearch-filenames-toggle' from "\M-sf" to "\M-sff". (dired-isearch-filter-filenames): Don't use `isearch-filter-visible'. Put property `isearch-message-prefix' to "filename " on `dired-isearch-filter-filenames'. * wdired.el (wdired-change-to-wdired-mode): Add `isearch-filter-predicates' to `wdired-isearch-filter-read-only' locally instead of changing `isearch-filter-predicate'. (wdired-isearch-filter-read-only): Don't use `isearch-filter-visible'. 2013-05-27 Dmitry Gutov * vc/vc-git.el (vc-git-working-revision): When in detached mode, return the commit hash (Bug#14459). Also set the `vc-git-detached' property. (vc-git--rev-parse): Extract from `vc-git-previous-revision'. (vc-git-mode-line-string): Use the same help-echo format whether in detached mode or not, because we know the actual revision now. When in detached mode, shorten the revision to 7 chars. 2013-05-27 Stefan Monnier * emacs-lisp/easy-mmode.el (define-minor-mode): * emacs-lisp/derived.el (define-derived-mode): Always defvar the mode hook and provide a docstring. 2013-05-27 Alan Mackenzie Remove spurious syntax-table text properties inserted by C-y. * progmodes/cc-mode.el (c-after-change): Also clear hard syntax-table property with value nil. 2013-05-27 Michael Albinus * net/dbus.el (dbus-call-method): Let-bind `inhibit-redisplay' when reading the events; the buffer layout shall not be changed. 2013-05-27 Leo Liu * progmodes/octave.el (inferior-octave-directory-tracker-resync): New variable. (inferior-octave-directory-tracker): Automatically re-sync default-directory. (octave-help): Improve handling of 'See also'. 2013-05-27 Stefan Monnier * doc-view.el: Minor naming convention tweaks. (desktop-buffer-mode-handlers): Don't add to it repeatedly. * image-mode.el (image-mode-reapply-winprops): Call image-mode-winprops even if there's no `display' property yet (bug#14435). 2013-05-25 Eli Zaretskii * subr.el (unmsys--file-name): Rename from reveal-filename. * Makefile.in (custom-deps, finder-data, autoloads) ($(MH_E_DIR)/mh-loaddefs.el, $(TRAMP_DIR)/tramp-loaddefs.el) ($(CAL_DIR)/cal-loaddefs.el, $(CAL_DIR)/diary-loaddefs.el) ($(CAL_DIR)/hol-loaddefs.el): All users changed. 2013-05-25 Stefan Monnier * emacs-lisp/lisp.el (lisp-completion-at-point): Don't use error-completion on the first 2 args of condition-case (bug#14446). Don't burp at EOB. 2013-05-25 Leo Liu * comint.el (comint-previous-matching-input): Do not flood the *Messages* buffer with trivial messages. 2013-05-25 Stefan Monnier * progmodes/flymake.el (flymake-nop): Don't return a string. (flymake-set-at): Fix typo. * simple.el (read--expression): New function, extracted from eval-expression. Set completion-at-point-functions (bug#14465). (eval-expression, eval-minibuffer): Use it. 2013-05-25 Xue Fuqiao * progmodes/flymake.el (flymake-save-buffer-in-file) (flymake-makehash, flymake-posn-at-point-as-event, flymake-nop) (flymake-selected-frame, flymake-log, flymake-ins-after) (flymake-set-at, flymake-get-buildfile-from-cache) (flymake-add-buildfile-to-cache, flymake-clear-buildfile-cache) (flymake-find-possible-master-files, flymake-save-buffer-in-file): Refine the doc string. (flymake-get-file-name-mode-and-masks): Reformat. (flymake-get-real-file-name-function): Fix a minor bug. 2013-05-24 Juri Linkov * progmodes/grep.el (grep-mode-font-lock-keywords): Support =linenumber= format used by git-grep for lines with function names. (Bug#13549) 2013-05-24 Stefan Monnier * progmodes/octave.el (octave-smie-rules): Return nil rather than 0 after a semi-colon; it works better for smie-auto-fill. (octave--indent-new-comment-line): New function. (octave-indent-new-comment-line): Use it (indirectly). (octave-mode): Don't disable smie-auto-fill. Use add-function to modify comment-line-break-function. * emacs-lisp/smie.el (smie-auto-fill): Rework to be more robust. (smie-setup): Use add-function to set it. 2013-05-24 Sam Steingold * sort.el (delete-duplicate-lines): Accept an optional `keep-blanks' argument (before the `interactive' argument). 2013-05-24 Stefan Monnier * image-mode.el (image-mode-winprops): Add winprops to image-mode-winprops-alist before running image-mode-new-window-functions. * doc-view.el (doc-view-new-window-function): Don't delay doc-view-goto-page via timers (bug#14435). 2013-05-24 Tassilo Horn * doc-view.el: Integrate with desktop.el. (Bug#14435) (doc-view-desktop-save-buffer): New function. (doc-view-restore-desktop-buffer): New function. (desktop-buffer-mode-handlers): Add `doc-view-restore-desktop-buffer' as desktop.el buffer mode handler. (doc-view-mode): Set `doc-view-desktop-save-buffer' as custom `desktop-save-buffer' function. 2013-05-24 Michael Albinus * net/tramp-gvfs.el (tramp-gvfs-enabled): New defconst. (tramp-gvfs-file-name-handler): Raise a user error when `tramp-gvfs-enabled' is nil. (top): Register signals only when `tramp-gvfs-enabled' is non-nil. Do not raise a user error when loading package. (Bug#14447) * net/xesam.el: Move to obsolete/. 2013-05-24 Glenn Morris * font-lock.el (lisp-font-lock-keywords-2): Add with-coding-priority. * emacs-lisp/chart.el (chart-sort): Replace obsolete `object-name'. * progmodes/cperl-mode.el (cperl-mode): Use fboundp. (Info-find-node, Man-getpage-in-background): Declare. * mail/unrmail.el (unrmail): Replace obsolete detect-coding-with-priority. * net/socks.el (socks-split-string): Use this rather than split-string. (socks-nslookup-host): Update for above change. (dynamic-choice, s5-dynamic-choice-match) (s5-dynamic-choice-match-inline, s5-widget-value-create): Comment out unused code. * tooltip.el (tooltip-use-echo-area): Warn only on 'set. * progmodes/gud.el (gud-gdb-completion-function): Move before use. (gud-tooltip-echo-area): Make obsolete. (gud-tooltip-process-output, gud-tooltip-tips): Also check tooltip-mode. * progmodes/js.el (js--optimize-arglist): Declare. * progmodes/ruby-mode.el (ruby-syntax-propertize-expansion): Declare. * progmodes/which-func.el (ediff-window-A, ediff-window-B) (ediff-window-C): Declare. * obsolete/pgg-gpg.el, obsolete/pgg-pgp.el, obsolete/pgg-pgp5.el: Tweak requires to silence compiler. * obsolete/sym-comp.el: No need to load hipper-exp when compiling. (he-search-string, he-tried-table, he-expand-list) (he-init-string, he-string-member, he-substitute-string) (he-reset-string): Declare. * obsolete/options.el (list-options): Use custom-variable-p, rather than obsolete alias. 2013-05-23 Sam Steingold * simple.el (shell-command-on-region): Pass the `replace' argument down to `call-process-region' to comply with the doc as reported on 2013-05-23 Stefan Monnier * emacs-lisp/smie.el (smie-indent-forward-token) (smie-indent-backward-token): Handle string tokens (bug#14381). 2013-05-23 Rüdiger Sonderfeld * ielm.el (ielm-menu): New menu. (inferior-emacs-lisp-mode): Set comment-start. 2013-05-23 Rüdiger Sonderfeld * lisp/textmodes/reftex.el (reftex-ref-style-toggle): Fix deactivate action. * lisp/textmodes/reftex-vars.el (reftex-ref-style-alist): Add cleveref macros. * lisp/textmodes/reftex-parse.el (reftex-locate-bibliography-files): Accept options for bibliography commands. * lisp/textmodes/reftex-vars.el (reftex-bibliography-commands): Add addbibresource. Basic Biblatex support. 2013-05-23 Michael Albinus * net/tramp-gvfs.el (top): * net/xesam.el (xesam-dbus-unique-names): Suppress D-Bus errors when loading package. (Bug#14447) 2013-05-23 Glenn Morris * progmodes/js.el: No need to load comint when compiling. (ring-insert, comint-send-string, comint-send-input) (comint-last-input-end, ido-chop): Declare. * vc/ediff-diff.el, vc/ediff-merg.el: Require ediff-util at run-time. * vc/ediff-mult.el: Adjust requires. (ediff-directories-internal, ediff-directory-revisions-internal) (ediff-patch-file-internal): Declare. * vc/ediff-ptch.el: Adjust requires. (ediff-use-last-dir, ediff-buffers-internal): Declare. (ediff-find-file): Autoload. * vc/ediff-util.el: No need to load ediff when compiling. (ediff-regions-internal): Declare. * vc/ediff-wind.el: Adjust requires. (ediff-compute-toolbar-width): Define when compiling. (ediff-setup-control-buffer, ediff-make-bottom-toolbar): Declare. * vc/ediff.el: No need to load dired, ediff-ptch when compiling. (dired-get-filename, dired-get-marked-files) (ediff-last-dir-patch, ediff-patch-default-directory) (ediff-get-patch-buffer, ediff-dispatch-file-patching-job) (ediff-patch-buffer-internal): Declare. * emacs-lisp/checkdoc.el: No need to load ispell when compiling. (ispell-process, ispell-buffer-local-words, lm-summary) (lm-section-start, lm-section-end): Declare. (checkdoc-ispell-init): Simplify. * progmodes/vera-mode.el (he-init-string, he-dabbrev-beg) (he-string-member, he-reset-string, he-substitute-string): Declare. * eshell/em-ls.el: Adjust requires. (eshell-glob-regexp): Declare. * eshell/em-tramp.el: Adjust requires. (eshell-parse-command): Autoload. * eshell/em-xtra.el: Adjust requires. (eshell-parse-command): Autoload. * eshell/esh-ext.el: Adjust requires. (eshell-parse-command, eshell-close-handles): Autoload. * eshell/esh-io.el: Adjust requires. (eshell-output-filter): Autoload. * eshell/esh-util.el: No need to load tramp when compiling. (tramp-file-name-structure, ange-ftp-ls, ange-ftp-file-modtime): Declare. (eshell-parse-ange-ls): Require ange-ftp and tramp. * eshell/em-alias.el, eshell/em-banner.el, eshell/em-basic.el: * eshell/em-cmpl.el, eshell/em-glob.el, eshell/em-pred.el: * eshell/em-prompt.el, eshell/em-rebind.el, eshell/em-smart.el: * eshell/em-term.el, eshell/esh-arg.el, eshell/esh-mode.el: * eshell/esh-opt.el, eshell/esh-proc.el: * eshell/esh-var.el: Adjust requires. * eshell/eshell.el: Do not require esh-util twice. (eshell-add-input-to-history): Declare. (eshell-command): Check history module is active before using it. * eshell/em-ls.el (eshell-ls-dir): Fix -A handling. 2013-05-22 Leo Liu * progmodes/octave.el (inferior-octave-startup): Fix bug#14433. 2013-05-22 Michael Albinus * autorevert.el (auto-revert-notify-add-watch) (auto-revert-notify-handler): Add `attrib' for the inotify case, it indicates changes in file modification time. 2013-05-22 Glenn Morris * emacs-lisp/bytecomp.el (byte-compile-file-form-autoload): Always delete the autoloaded function from the noruntime and unresolved functions lists. * allout.el: No need to load epa, epg, overlay when compiling. (epg-context-set-passphrase-callback, epg-list-keys) (epg-decrypt-string, epg-encrypt-string, epg-user-id-string) (epg-key-user-id-list): Declare. * emulation/viper-cmd.el (viper-set-searchstyle-toggling-macros) (viper-set-parsing-style-toggling-macro) (viper-set-emacs-state-searchstyle-macros): Use called-interactively-p on Emacs. (viper-looking-back): Make it an obsolete alias. Update callers. * emulation/viper-ex.el: Load viper-keym, not viper-cmd. Use looking-back rather than viper-looking-back. (viper-tmp-insert-at-eob, viper-enlarge-region) (viper-read-string-with-history, viper-register-to-point) (viper-append-to-register, viper-change-state-to-vi) (viper-backward-char-carefully, viper-forward-char-carefully) (viper-Put-back, viper-put-back, viper-add-newline-at-eob-if-necessary) (viper-change-state-to-emacs): Declare. * emulation/viper-macs.el: Load viper-mous, viper-ex, not viper-cmd. (viper-change-state-to-insert, viper-change-state-to-vi): Declare. * emulation/viper-mous.el: Do not load viper-cmd. (viper-backward-char-carefully, viper-forward-char-carefully) (viper-forward-word, viper-adjust-window): Declare. * vc/ediff.el (ediff-version): Use called-interactively-p on Emacs. * progmodes/idlw-help.el (idlwave-help-fontify): Use called-interactively-p. * term/w32console.el (w32-get-console-codepage) (w32-get-console-output-codepage): Declare. * dframe.el (x-sensitive-text-pointer-shape, x-pointer-shape): Remove unnecessary declarations. (dframe-message): Doc fix. * info.el (dframe-select-attached-frame, dframe-current-frame): Declare. * speedbar.el (speedbar-message): Make it an obsolete alias. Update all callers. (speedbar-with-attached-buffer) (speedbar-maybee-jump-to-attached-frame): Make these aliases obsolete. (speedbar-with-writable): Use backquote. * emacs-lisp/eieio-opt.el (eieio-describe-class-sb): * emacs-lisp/eieio-speedbar.el (eieio-speedbar-handle-click): Use dframe-with-attached-buffer, dframe-maybee-jump-to-attached-frame rather than speedbar- aliases. * mail/rmail.el: Load dframe rather than speedbar when compiling. (speedbar-make-specialized-keymap, speedbar-insert-button) (dframe-select-attached-frame, dframe-maybee-jump-to-attached-frame) (speedbar-do-function-pointer): Declare. (rmail-speedbar-button, rmail-speedbar-find-file) (rmail-speedbar-move-message): Use dframe-with-attached-buffer rather than speedbar- alias. * progmodes/gud.el: Load dframe rather than speedbar when compiling. (dframe-message, speedbar-make-specialized-keymap) (speedbar-add-expansion-list, speedbar-mode-functions-list) (speedbar-make-tag-line, speedbar-remove-localized-speedbar-support) (speedbar-insert-button, dframe-select-attached-frame) (dframe-maybee-jump-to-attached-frame) (speedbar-change-initial-expansion-list) (speedbar-previously-used-expansion-list-name): Declare. (gud-speedbar-item-info, gud-gdb-goto-stackframe): Use dframe-message, dframe-with-attached-buffer rather than speedbar- aliases. (gud-sentinel): Silence compiler. * progmodes/vhdl-mode.el (speedbar-refresh) (speedbar-do-function-pointer, speedbar-add-supported-extension) (speedbar-add-mode-functions-list, speedbar-make-specialized-keymap) (speedbar-change-initial-expansion-list, speedbar-add-expansion-list) (speedbar-extension-list-to-regex, speedbar-directory-buttons) (speedbar-file-lists, speedbar-make-tag-line) (speedbar-line-directory, speedbar-goto-this-file) (speedbar-center-buffer-smartly, speedbar-change-expand-button-char) (speedbar-delete-subblock, speedbar-position-cursor-on-line) (speedbar-make-button, speedbar-reset-scanners) (speedbar-files-item-info, speedbar-line-text) (speedbar-find-file-in-frame, speedbar-set-timer) (dframe-maybee-jump-to-attached-frame, speedbar-line-file): Declare. (speedbar-with-writable): Do not (re)define it. (vhdl-speedbar-find-file): Use dframe-maybee-jump-to-attached-frame rather than speedbar- alias. 2013-05-21 Leo Liu * progmodes/octave.el (octave-mode-menu): Update and re-organize menu items. (octave-mode): Tweak fill-nobreak-predicate. (inferior-octave-startup): Check process to avoid infinite loop. (inferior-octave): Pop to buffer first to show abornmal process exit information. 2013-05-21 Glenn Morris * printing.el (pr-menu-bar): Define when compiling. 2013-05-21 Leo Liu * progmodes/octave.el (octave-auto-fill): Remove. (octave-indent-new-comment-line): Improve. (octave-mode): Use auto fill mode through comment-line-break-function and fill-nobreak-predicate (octave-goto-function-definition): Support DEFUN_DLD. (octave-beginning-of-defun): Small Tweak (octave-help): Show parent directory. 2013-05-21 Glenn Morris * files.el (dired-unmark): * progmodes/gud.el (gdb-input): Update declarations. * calculator.el (electric, ehelp): No need to load when compiling. (Electric-command-loop, electric-describe-mode): Declare. * doc-view.el (doc-view-current-converter-processes): Move before use. * emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Move MODE-set-explicitly definition before use. * international/mule-diag.el (mule-diag): Don't use obsolete window-system-version. * mail/feedmail.el (smtpmail): No need to load when compiling. (smtpmail-via-smtp, smtpmail-smtp-server): Declare. * mail/mail-utils.el (rfc822): No need to load when compiling. (rfc822-addresses): Autoload it. (mail-strip-quoted-names): Trivial simplification. * mail/rmail.el (rmail-mime-message-p, rmail-mime-toggle-raw): Declare. (rmail-retry-failure): Don't assume that rmail-mime-feature == rmailmm. * net/snmp-mode.el (tempo): Don't duplicate requires. * progmodes/prolog.el (info): No need to load when compiling. (comint): Require before shell requires it. (Info-goto-node): Autoload it. (Info-follow-nearest-node): Declare. (prolog-help-info, prolog-goto-predicate-info): No need to require info. * textmodes/artist.el (picture-mode-exit): Declare. * textmodes/reftex-parse.el (reftex-parse-from-file): Trivial rewrite so the compiler can parse it better. 2013-05-20 Leo Liu * progmodes/octave.el (octave-help-mode-map) (octave-help-mode-finish-hook): New variables. (octave-help-mode, octave-help-mode-finish): New functions. (octave-help): Use octave-help-mode. 2013-05-20 Glenn Morris * format-spec.el (format-spec): Allow spec chars with nil. (Bug#14420) 2013-05-19 Dmitry Gutov * progmodes/ruby-mode.el (ruby-expression-expansion-re): Allow to start at point, so that expansion starting right after opening slash in a regexp is recognized. (ruby-syntax-before-regexp-re): New defvar, extracted from ruby-syntax-propertize-function. Since the value of this regexp is looked up at runtime now, we should be able to turn `ruby-syntax-methods-before-regexp' into a defcustom later. (ruby-syntax-propertize-function): Split regexp matching into two parts, for opening and closing slashes. That allows us to skip over string interpolations and support multiline regexps. Don't call `ruby-syntax-propertize-expansions', instead use another rule for them, which calls `ruby-syntax-propertize-expansion'. (ruby-syntax-propertize-expansions): Move `remove-text-properties' call to `ruby-syntax-propertize-function'. (ruby-syntax-propertize-expansion): Extracted from `ruby-syntax-propertize-expansions'. Handles one expansion. (ruby-syntax-propertize-percent-literal): Leave point right after the percent symbol, so that the expression expansion rule can propertize the contents. (ruby-syntax-propertize-heredoc): Leave point at bol following the heredoc openers. (ruby-syntax-propertize-expansions): Remove. 2013-05-18 Juri Linkov * man.el (Man-default-man-entry): Remove `-' from the end of the default value. (Bug#14400) 2013-05-18 Glenn Morris * comint.el (comint-password-prompt-regexp): Allow "password for XXX" where XXX contains colons (eg https://...). 2013-05-18 Leo Liu * progmodes/octave.el (inferior-octave-startup): Use OCTAVE_SRCDIR instead. Include "--no-gui" to prevent hangs for Octave > 3.7. (octave-source-directories): Don't check process. (octave-source-directories, octave-find-definition): Doc fix. 2013-05-18 Glenn Morris * progmodes/vhdl-mode.el (vhdl-mode-map-init): Remove backspace/delete bindings. (Bug#14392) * cus-dep.el (custom-make-dependencies): Sort the output. (custom-versions-load-alist): Convert comment to doc. 2013-05-17 Leo Liu * newcomment.el (comment-search-backward): Stricter in finding comment start. (Bug#14303) * progmodes/octave.el (octave-comment-start): Remove the SPC char. (octave-comment-start-skip): Properly anchored. 2013-05-17 Leo Liu * emacs-lisp/smie.el (smie-highlight-matching-block-mode): Clean up when turned off. (Bug#14395) (smie--highlight-matching-block-overlay): No longer buffer-local. (smie-highlight-matching-block): Adjust. 2013-05-17 Paul Eggert Doc string fix for "nanoseconds" (Bug#14406). * emacs-lisp/timer.el (timer-relative-time, timer-inc-time): Fix doc string typo that had "nanoseconds" instead of "microseconds". 2013-05-17 Jay Belanger * calc/calc-units.el (math-extract-units): Preserve powers of units. 2013-05-17 Leo Liu * subr.el (delete-consecutive-dups): New function. * ido.el (ido-set-matches-1): Use it. * progmodes/octave.el (inferior-octave-completion-table): Use it. * ido.el (ido-remove-consecutive-dups): Remove. 2013-05-17 Stefan Monnier * progmodes/f90.el (f90-keywords-re, f90-keywords-level-3-re) (f90-hpf-keywords-re, f90-constants-re): Use \\_< rather than regexp-opt's `words'. 2013-05-16 Leo Liu * emacs-lisp/smie.el (smie-matching-block-highlight): New face. (smie--highlight-matching-block-overlay) (smie--highlight-matching-block-lastpos) (smie--highlight-matching-block-timer): New variables. (smie-highlight-matching-block): New function. (smie-highlight-matching-block-mode): New minor mode. (Bug#14395) (smie-setup): Conditionally enable smie-blink-matching-open. 2013-05-16 Wilson Snyder Sync with upstream verilog-mode r840. * progmodes/verilog-mode.el (verilog-mode-version) (verilog-mode-release-date): Update. (verilog-auto-lineup, verilog-auto-reset): Doc fixes. (verilog-sig-tieoff): Fix string error on AUTORESET with colon define, bug594. Reported by Andrew Hou. (verilog-read-decls): Fix parameters confusing AUTOINST interfaces, bug565. Reported by Leith Johnson. 2013-05-16 Eli Zaretskii * subr.el (reveal-filename): New function. * loadup.el: Compute Emacs executable versions on MS-Windows, where executables have the .exe extension. Add a hard link emacs-XX.YY.ZZ.exe on MS-Windows. * Makefile.in (XARGS_LIMIT): New variable. (custom-deps, finder-data, autoloads) ($(MH_E_DIR)/mh-loaddefs.el, $(TRAMP_DIR)/tramp-loaddefs.el) ($(CAL_DIR)/cal-loaddefs.el, $(CAL_DIR)/diary-loaddefs.el) ($(CAL_DIR)/hol-loaddefs.el): Use reveal-filename. (compile-main): Limit xargs according to $(XARGS_LIMIT). 2013-05-16 Leo Liu * progmodes/octave.el (octave-indent-defun): Mark obsolete. (octave-mode-menu, octave-mode-map): Remove its uses. 2013-05-16 Reto Zimmermann Sync with upstream vhdl mode v3.34.2. * progmodes/vhdl-mode.el: Use `push' throughout. (vhdl-version, vhdl-time-stamp, vhdl-doc-release-notes): Update. (vhdl-compiler-alist): Replace "\t\n" by "\\t\\n". Add IBM & Quartus compiler. Enhance entry for ADVance MS compiler. (vhdl-actual-generic-name): New option to derive actual generic name. (vhdl-port-paste-signals): Replace formal by actual generics. (vhdl-beautify): New name for old group vhdl-align. Update users. (vhdl-beautify-options): New option. (vhdl-last-input-event): New compat alias. Use throughout. (vhdl-goto-line): Replace user level function `goto-line'. (vhdl-mode-map): Add bindings for vhdl-fix-statement-region, vhdl-fix-statement-buffer. (vhdl-create-mode-menu): Add some entries. (vhdl-align-region-groups): Respect vhdl-beautify-options. (vhdl-align-inline-comment-region-1): Handle "--" inside string. (vhdl-fixup-whitespace-region): Handle symbols at EOL. (vhdl-fix-statement-region, vhdl-fix-statement-buffer): New commands, to force statements on one line. (vhdl-remove-trailing-spaces-region): New, split from vhdl-remove-trailing-spaces. (vhdl-beautify-region): Fix statements, trailing spaces, ^M character. Respect vhdl-beautify-options. (vhdl-update-sensitivity-list-buffer): If non-interactive save buffer. (vhdl-update-sensitivity-list): Not add with index if exists without. Not include array index with signal. Ignore keywords in comments. (vhdl-get-visible-signals): Regexp tweaks. (vhdl-template-component-inst): Handle empty library. (vhdl-template-type): Add template for 'enum' type. (vhdl-port-paste-generic-map, vhdl-port-paste-constants): Use vhdl-replace-string. (vhdl-port-paste-signals): Use vhdl-prepare-search-1. (vhdl-speedbar-mode-map): Rename from vhdl-speedbar-key-map. (vhdl-speedbar-initialize): Update for above name change. (vhdl-compose-wire-components): Fix in handling of constants. (vhdl-error-regexp-emacs-alist): New variable. (vhdl-error-regexp-add-emacs): New function; adds support for new compile.el (Emacs 22+) (vhdl-generate-makefile-1): Change target order for single lib. units. Allow use of absolute file names. 2013-05-16 Leo Liu * simple.el (prog-indent-sexp): Indent enclosing defun. 2013-05-15 Glenn Morris * cus-start.el (show-trailing-whitespace): Move to editing basics. * faces.el (trailing-whitespace): Don't use whitespace-faces group. * obsolete/old-whitespace.el (whitespace-faces): Remove group. (whitespace-highlight): Move to whitespace group. * comint.el (comint-source): * pcmpl-linux.el (pcmpl-linux): * shell.el (shell-faces): * eshell/esh-opt.el (eshell-opt): * international/ccl.el (ccl): Remove empty custom groups. * completion.el (dynamic-completion-mode): * jit-lock.el (jit-lock-debug-mode): * minibuffer.el (completion-in-region-mode): * type-break.el (type-break-mode-line-message-mode) (type-break-query-mode): * emulation/tpu-edt.el (tpu-edt-mode): * progmodes/subword.el (global-subword-mode, global-superword-mode): * progmodes/vhdl-mode.el (vhdl-electric-mode, vhdl-stutter-mode): * term/vt100.el (vt100-wide-mode): Specify explicit :group. * term/xterm.el (xterm): Change parent group to terminals. * master.el (master): Remove empty custom group. (master-mode): Remove unused :group argument. * textmodes/refill.el (refill): Remove empty custom group. (refill-mode): Remove unused :group argument. * textmodes/rst.el (rst-compile-toolsets): Use rst-compile group. * cus-dep.el: Provide a feature. (custom-make-dependencies): Ignore dotfiles (dir-locals). Don't mistakenly ignore files whose basenames match a basename from preloaded-file-list (eg cedet/ede/simple.el). Add a fallback method for getting :group. 2013-05-15 Juri Linkov * isearch.el (isearch-char-by-name): Rename from `isearch-insert-char-by-name'. Doc fix. (isearch-forward): Mention `isearch-char-by-name' in the docstring. (Bug#13348) * isearch.el (minibuffer-local-isearch-map): Bind "\r" to `exit-minibuffer' instead of `isearch-nonincremental-exit-minibuffer'. (isearch-edit-string): Remove mention of `isearch-nonincremental-exit-minibuffer' from docstring. (isearch-nonincremental-exit-minibuffer): Mark as obsolete. (isearch-forward-exit-minibuffer) (isearch-reverse-exit-minibuffer): Add docstring. (Bug#13348) 2013-05-15 Stefan Monnier * loadup.el: Just use unversioned DOC. * nxml/nxml-mode.el: Treat unclosed <[[, * progmodes/octave.el (octave-goto-function-definition): Improve and fix callers. 2013-05-15 Stefan Monnier * emacs-lisp/cl-extra.el (cl-getf): Return the proper value in the setter (bug#14387). * progmodes/f90.el (f90-blocks-re): Include the terminating \> in the surrounding group (bug#14402). 2013-05-14 Juri Linkov * subr.el (find-tag-default-as-regexp): Return nil if `tag' is nil. (Bug#14390) 2013-05-14 Glenn Morris * progmodes/f90.el (f90-imenu-generic-expression): Fix typo in 2013-05-08 change. (Bug#14402) 2013-05-14 Jean-Philippe Gravel * progmodes/gdb-mi.el (gdb-running, gdb-starting): Remove signals for which replies are never received. 2013-05-14 Jean-Philippe Gravel * progmodes/gdb-mi.el: Fix non-responsive gud commands (bug#13845) (gdb-handler-alist, gdb-handler-number): Remove variables. (gdb-handler-list): New variable. (gdb-add-handler, gdb-delete-handler, gdb-get-handler-function) (gdb-pending-handler-p, gdb-handle-reply) (gdb-remove-all-pending-triggers): New functions. (gdb-discard-unordered-replies): New defcustom. (gdb-handler): New defstruct. (gdb-wait-for-pending): Fix invalid backquote. Use gdb-handler-list. instead of gdb-pending-triggers. Update docstring. (gdb-init-1): Remove dead variables. Initialize gdb-handler-list. (gdb-speedbar-update, gdb-speedbar-timer-fn, gdb-var-update) (gdb-var-update-handler, def-gdb-auto-update-trigger) (def-gdb-auto-update-handler, gdb-get-changed-registers) (gdb-changed-registers-handler, gdb-get-main-selected-frame) (gdb-frame-handler): Pending triggers are now automatically managed. (def-gdb-trigger-and-handler, def-gdb-auto-update-handler): Remove argument. (gdb-input): Automatically handles pending triggers. Update docstring. (gdb-resync): Replace gdb-pending-triggers by gdb-handler-list. (gdb-thread-exited, gdb-thread-selected, gdb-register-names-handler): Update comments. (gdb-done-or-error): Now use gdb-handle-reply. 2013-05-14 Jean-Philippe Gravel * progmodes/gdb-mi.el (gdb-input): Include token numbers in gdb-debug-log. 2013-05-14 Glenn Morris * subr.el (user-emacs-directory-warning): New option. (locate-user-emacs-file): Handle non-accessible .emacs.d. (Bug#13930) 2013-05-14 Leo Liu * progmodes/octave.el (octave-font-lock-keywords): Fix error during redisplay. (octave-goto-function-definition, octave-find-definition): Minor tweaks. (octave-font-lock-texinfo-comment): Fix invalid search bound error: wrong side of point. 2013-05-14 Glenn Morris * progmodes/flymake.el (flymake-xml-program): New option. (flymake-xml-init): Use it. * term/xterm.el: Provide a feature. * term/sup-mouse.el: Move to obsolete/. Provide a feature. 2013-05-13 Glenn Morris * cus-dep.el (defcustom-mh, defgroup-mh, defface-mh): Add compat aliases as a hack workaround. (Bug#14384) 2013-05-13 Leo Liu * progmodes/octave.el (octave-indent-comment): Fix indentation for ###, and %!. (octave-mode-map): Bind octave-indent-defun to C-c C-q instead of C-M-q. (octave-comment-start-skip): Include %!. (octave-mode): Set comment-start-skip to octave-comment-start-skip. 2013-05-12 Leo Liu * progmodes/octave.el (inferior-octave-startup): Store the value of __octave_srcdir__ for octave-source-directories. (inferior-octave-check-process): New function refactored out of inferior-octave-send-list-and-digest. (octave-source-directories) (octave-find-definition-filename-function): New variables. (octave-source-directories) (octave-find-definition-default-filename): New functions. (octave-find-definition): Improve to find functions implemented in C++. 2013-05-12 Glenn Morris * calendar/diary-lib.el (diary-outlook-format-1): Don't include dayname in the output. (Bug#14349) 2013-05-11 Glenn Morris * emacs-lisp/autoload.el (generated-autoload-load-name): Doc fix. * cus-dep.el (custom-make-dependencies): Only use safe local variables. Treat cc-provide like provide. 2013-05-11 Kevin Ryde * cus-dep.el (custom-make-dependencies): Use generated-autoload-load-name for the sake of files such such cedet/semantic/bovine/c.el, where the base file name is not in load-path. (Bug#5277) 2013-05-11 Glenn Morris * dos-vars.el, emacs-lisp/cl-indent.el, emulation/tpu-extras.el: Provide features. 2013-05-11 Leo Liu * progmodes/octave.el (octave-indent-comment): Improve. (octave-eldoc-message-style, octave-eldoc-cache): New variables. (octave-eldoc-function-signatures, octave-eldoc-function): New functions. (octave-mode, inferior-octave-mode): Add eldoc support. 2013-05-11 Richard Stallman * epa.el (epa-decrypt-file): Take output file name as argument and read it using `interactive'. 2013-05-11 Leo Liu * progmodes/octave.el (octave-beginning-of-line) (octave-end-of-line): Check before using up-list because it jumps out of more syntactic contructs since moving to smie. (octave-indent-comment): New function. (octave-mode): Use it in smie-indent-functions. (Bug#14350) (octave-begin-keywords, octave-end-keywords) (octave-reserved-words, octave-smie-bnf-table) (octave-smie-rules): Add new keywords from Octave 3.6.4. 2013-05-11 Glenn Morris * faces.el (internal-face-x-get-resource): * frame.el (ns-display-monitor-attributes-list): * calc/calc-aent.el (math-to-radians-2): Fix declarations. * emacs-lisp/package.el (tar-header-name, tar-header-link-type): * calc/calc-menu.el: Make it loadable in isolation. * net/eudcb-bbdb.el: Make it loadable without bbdb. (eudc-bbdb-filter-non-matching-record, eudc-bbdb-extract-phones) (eudc-bbdb-extract-addresses, eudc-bbdb-format-record-as-result) (eudc-bbdb-query-internal): Require 'bbdb. * lpr.el (lpr-headers-switches): * emacs-lisp/testcover.el (testcover-compose-functions): Fix :type. * progmodes/sql.el (sql-login-params): Fix and improve :type. * emulation/edt-mapper.el: In batch mode, error rather than hang. * term.el (term-set-escape-char): Make it idempotent. 2013-05-10 Leo Liu * progmodes/octave.el (inferior-octave-completion-table): No longer a function and all uses changed. Use cache to speed up completion due to bug#11906. (octave-beginning-of-defun): Re-write to be more general. 2013-05-10 Glenn Morris * emacs-lisp/cl-macs.el (cl-loop): Doc fix. 2013-05-09 Stefan Monnier * comint.el (comint-redirect-send-command-to-process): Use :around rather than :override for comint-redirect-filter. (comint-redirect-filter): Add the corresponding `orig-filter' argument. Call it instead of comint-redirect-original-filter-function (which is gone). Reported by Juanma Barranquero . 2013-05-09 Jan Djärv * frame.el (display-monitor-attributes-list): Add NS case. (ns-display-monitor-attributes-list): Declare. 2013-05-09 Ulrich Mueller * descr-text.el (describe-char): Fix %d/%x typo. (Bug#14360) 2013-05-09 Glenn Morris * international/fontset.el (vertical-centering-font-regexp): Set standard-value. * tar-mode.el (tar-superior-buffer, tar-superior-descriptor): Add doc. * bookmark.el (bookmark-search-delay): * cus-start.el (vertical-centering-font-regexp): * ps-mule.el (ps-mule-font-info-database-default): * ps-print.el (ps-default-fg, ps-default-bg): * type-break.el (type-break-good-break-interval): * whitespace.el (whitespace-indentation-regexp) (whitespace-space-after-tab-regexp): * emacs-lisp/testcover.el (testcover-1value-functions) (testcover-noreturn-functions, testcover-progn-functions) (testcover-prog1-functions): * emulation/viper-init.el (viper-emacs-state-cursor-color): * eshell/em-glob.el (eshell-glob-translate-alist): * play/tetris.el (tetris-tty-colors): * progmodes/cpp.el (cpp-face-default-list): * progmodes/flymake.el (flymake-allowed-file-name-masks): * progmodes/idlw-help.el (idlwave-help-browser-generic-program) (idlwave-help-browser-generic-args): * progmodes/make-mode.el (makefile-special-targets-list): * progmodes/python.el (python-shell-virtualenv-path): * progmodes/verilog-mode.el (verilog-active-low-regexp) (verilog-auto-input-ignore-regexp, verilog-auto-inout-ignore-regexp) (verilog-auto-output-ignore-regexp, verilog-auto-tieoff-ignore-regexp) (verilog-auto-unused-ignore-regexp, verilog-typedef-regexp): * textmodes/reftex-vars.el (reftex-format-label-function): * textmodes/remember.el (remember-diary-file): Fix custom types. * jka-cmpr-hook.el (jka-compr-mode-alist-additions): Fix typo. Add :version. 2013-05-09 Leo Liu * progmodes/octave.el (inferior-octave-completion-at-point): Restore file completion. (Bug#14300) (inferior-octave-startup): Fix incorrect highlighting for the first prompt. 2013-05-08 Stefan Monnier * progmodes/ruby-mode.el: First cut at SMIE support. (ruby-use-smie): New var. (ruby-smie-grammar): New constant. (ruby-smie--bosp, ruby-smie--implicit-semi-p) (ruby-smie--forward-token, ruby-smie--backward-token) (ruby-smie-rules): New functions. (ruby-mode-variables): Setup SMIE if applicable. 2013-05-08 Eli Zaretskii * simple.el (line-move-visual): Signal beginning/end of buffer only if vertical-motion moved less than it was requested. Avoids silly incorrect error messages when there are display strings with multiple newlines at EOL. 2013-05-08 Stefan Monnier * progmodes/vera-mode.el (vera-underscore-is-part-of-word): * progmodes/prolog.el (prolog-underscore-wordchar-flag) (prolog-char-quote-workaround): * progmodes/cperl-mode.el (cperl-under-as-char): * progmodes/vhdl-mode.el (vhdl-underscore-is-part-of-word): Mark as obsolete. (vhdl-mode-syntax-table, vhdl-mode-ext-syntax-table): Initialize in their declaration. (vhdl-mode-syntax-table-init): Remove. * progmodes/m4-mode.el (m4-mode-syntax-table): Add comment on last change. * progmodes/ld-script.el (ld-script-mode-syntax-table): Use symbol syntax for "_". (ld-script-font-lock-keywords): Change regexps to use things like \_< and \_>. * progmodes/f90.el (f90-mode-syntax-table): Use symbol syntax for "_". Change all regexps to use things like \_< and \_>. * progmodes/autoconf.el (autoconf-definition-regexp) (autoconf-font-lock-keywords, autoconf-current-defun-function): Handle a _ with symbol syntax. (autoconf-mode): Don't change the syntax-table for imenu and font-lock. * progmodes/ada-mode.el (ada-mode-abbrev-table): Consolidate declaration. (ada-mode-syntax-table, ada-mode-symbol-syntax-table): Initialize in the declaration. (ada-create-syntax-table): Remove. (ada-capitalize-word): Don't mess with the syntax of "_" since it already has the right syntax nowadays. (ada-goto-next-word): Don't change the syntax of "_". * font-lock.el (lisp-font-lock-keywords-2): Don't highlight obsolete with-wrapper-hook. 2013-05-08 Sam Steingold * thingatpt.el (thing-at-point): Accept optional second argument NO-PROPERTIES to strip the text properties from the return value. * net/browse-url.el (browse-url-url-at-point): Pass NO-PROPERTIES to `thing-at-point' instead of stripping the properties ourselves. Also, when `thing-at-point' fails to find a url, prepend "http://" to the filename at point on the assumption that the user is pointing at something like gnu.org/gnu. 2013-05-08 Juanma Barranquero * emacs-lisp/bytecomp.el (byte-compile-insert-header): * faces.el (crm-separator): Silence byte-compiler. * progmodes/gud.el (gdb-speedbar-auto-raise, gud-tooltip-mode) (tool-bar-map): Remove unneeded defvars. 2013-05-08 Leo Liu Re-work a fix for bug#10994 based on Le Wang's patch. * ido.el (ido-remove-consecutive-dups): New helper. (ido-completing-read): Use it. (ido-chop): Revert fix for bug#10994. 2013-05-08 Adam Spiers * cus-edit.el (custom-save-variables): Pretty-print long values. (Bug#14187) 2013-05-08 Glenn Morris * progmodes/m4-mode.el (m4-program): Assume it is in PATH. (m4-mode-syntax-table): Init in the defvar. (m4-mode-abbrev-table): Let define-derived-mode define it. 2013-05-08 Tom Tromey * progmodes/m4-mode.el (m4-mode-syntax-table): Do not treat "_" as word constituent. (Bug#14167) 2013-05-07 Glenn Morris * eshell/em-hist.el (eshell-isearch-map): Initialize in the defvar. Remove explicit eshell-isearch-cancel-map. * progmodes/f90.el (f90-smart-end-names): New option. (f90-smart-end): Doc fix. (f90-end-block-optional-name): New constant. (f90-block-match): Respect f90-smart-end-names. 2013-05-07 Stefan Monnier * progmodes/octave.el (octave-smie-forward-token): Be more careful about implicit semi-colons (bug#14218). 2013-05-07 YAMAMOTO Mitsuharu * frame.el (display-monitor-attributes-list) (frame-monitor-attributes): New functions. 2013-05-06 Leo Liu * progmodes/octave.el (octave-syntax-propertize-function): Change \'s syntax to escape when inside double-quoted strings. (Bug#14332) (octave-font-lock-keywords): Use octave-operator-regexp. (octave-completion-at-point): Rename from octave-completion-at-point-function. (inferior-octave-directory-tracker): Robustify. (octave-text-functions): Remove and fix its uses. No such things any more. 2013-05-06 Stefan Monnier * emacs-lisp/trace.el (trace--display-buffer): New function. (trace-make-advice): Use it. 2013-05-06 Juri Linkov * emacs-lisp/lisp-mode.el (eval-defun-2): Doc fix. (Bug#14344) (eval-defun-2, eval-defun, eval-last-sexp, eval-last-sexp-1): Doc fix. (emacs-lisp-mode-map): Replace "minibuffer" with "echo area" in the help string. (Bug#12985) 2013-05-06 Kelly Dean (tiny change) * simple.el (shell-command-on-region): Doc fix. (Bug#14279) 2013-05-06 Stefan Monnier * progmodes/perl-mode.el: Add support for here documents. (perl-syntax-propertize-function): Match here-doc markers. (perl-syntax-propertize-special-constructs): Find their end. (perl-imenu-generic-expression): Use [:alnum:]. * emacs-lisp/nadvice.el (advice--member-p): Return the advice if found. (advice--add-function): Refresh the advice if already present (bug#14317). 2013-05-06 Ivan Andrus * find-file.el (cc-other-file-alist): Add ".m" for ObjC. (Bug#14339) 2013-05-06 Glenn Morris * w32-fns.el (w32-charset-info-alist): Declare. * eshell/em-cmpl.el: Simply require pcomplete; eg we use a bunch of its defcustom properties. (eshell-cmpl-initialize): No need to load pcomplete. * generic-x.el: No need to require comint when compiling. * net/eudc-export.el: Make it loadable without bbdb. (top-level): Use require rather than load-library. (eudc-create-bbdb-record, eudc-bbdbify-phone) (eudc-batch-export-records-to-bbdb) (eudc-insert-record-at-point-into-bbdb, eudc-try-bbdb-insert): Require bbdb. 2013-05-06 Stefan Monnier * progmodes/octave.el (octave-texinfo-font-lock-keywords): Remove. (octave-font-lock-texinfo-comment): Use texinfo-font-lock-keywords with some tweaks, instead. 2013-05-05 Leo Liu * progmodes/octave.el (octave-font-lock-keywords) (octave-font-lock-texinfo-comment): Adjust for the byte-compiler. (inferior-octave-send-list-and-digest): Improve error message. (octave-mode, inferior-octave-mode): Use setq-local. (octave-help): Set info-lookup-mode. 2013-05-05 Richard Stallman * vc/compare-w.el (compare-windows-whitespace): Treat no-break space as whitespace. * mail/rmailsum.el (rmail-summary-rmail-update): Detect empty summary and don't change selected message. (rmail-summary-goto-msg): Likewise. * mail/rmailsum.el (rmail-new-summary, rmail-new-summary-1): Doc fixes, rename args. 2013-05-05 Alan Mackenzie * progmodes/cc-defs.el (c-version): Increment to 5.32.5. 2013-05-05 Juri Linkov * info.el (Info-read-subfile): Use (point-min) instead of (point) to not add the length of the summary segment to the return value. (Bug#14125) 2013-05-05 Leo Liu * progmodes/octave.el (inferior-octave-strip-ctrl-g) (inferior-octave-output-filter): Remove. (octave-send-region, inferior-octave-startup): Fix callers. (inferior-octave-mode-map): Don't use comint-dynamic-complete. (octave-binary-file-extensions): New user variable. (octave-find-definition): Confirm if opening binary files. (octave-help-file): Use octave-find-definition to get the binary confirmation. (octave-help): Adjust for octave-help-file change. 2013-05-05 Stefan Monnier * progmodes/pascal.el (pascal-font-lock-keywords): Use backquotes. Merge the two entries that handle function definitions. (pascal--syntax-propertize): New const. (pascal-mode): Use it. Use setq-local. 2013-05-04 Glenn Morris * calendar/diary-lib.el (diary-from-outlook-function): New variable. (diary-from-outlook): Respect diary-from-outlook-function. 2013-05-04 Stefan Monnier * simple.el (read-expression-map): Use completion-at-point (bug#14255). Move the declaration from C. (read-minibuffer, eval-minibuffer): Move from C. (completion-setup-function): Avoid minibuffer-completion-contents. 2013-05-03 Leo Liu * progmodes/octave.el (octave-font-lock-keywords): Do not dehighlight 'end' in comments or strings. (octave-completing-read, octave-goto-function-definition): New helpers. (octave-help-buffer): New user variable. (octave-help-file, octave-help-function): New button types. (octave-help): New command and bind it to C-h ;. (octave-find-definition): New command and bind it to M-. (user-error): Alias to error if not defined. 2013-05-02 Leo Liu * progmodes/octave.el (octave-mode-syntax-table): Correct syntax for \. (bug#14332) (octave-font-lock-keywords): Include [ and {. 2013-05-02 Leo Liu * progmodes/octave.el (inferior-octave-startup-file): Change default. (inferior-octave): Remove calling comint-mode and return the buffer. (inferior-octave-startup): Cosmetic changes. 2013-05-02 Leo Liu * progmodes/octave.el (octave-syntax-propertize-function): Include the case when ' is at line beginning. (Bug#14336) 2013-05-02 Glenn Morris * vc/vc-dir.el (vc-dir-mode): Don't autoload it for everyone. * desktop.el (vc-dir-mode): Just autoload it here. 2013-05-02 Alan Mackenzie Eliminate variable c-standard-font-lock-fontify-region-function. * progmodes/cc-mode.el (c-standard-font-lock-fontify-region-function): Remove. (c-font-lock-fontify-region, c-after-font-lock-init): Adapt. 2013-05-01 Leo Liu * progmodes/octave.el: Compatible with older emacs-24 releases. (inferior-octave-has-built-in-variables): Remove. Built-in variables were removed from Octave in 2007. (inferior-octave-startup): Fix uses. (comint-line-beginning-position): Remove compatibility code for emacs 21. 2013-05-01 Juri Linkov * isearch.el (isearch-forward, isearch-mode): Doc fix. (Bug#13923) 2013-05-01 Juri Linkov * comint.el (comint-previous-matching-input): Don't print message "History item: %d" when `isearch-mode' is active. (comint-history-isearch-message): Print message "History item: %d" when `comint-input-ring-index' is not empty and this function is called from `isearch-update' with a nil `ellipsis'. (Bug#13223) 2013-05-01 Leo Liu * progmodes/octave.el (octave-abbrev-table): Remove abbrev definitions. Use completion-at-point to insert keywords. (octave-abbrev-start): Remove. (inferior-octave-mode, octave-mode): Use :abbrev-table instead. 2013-04-30 Leo Liu * progmodes/octave.el (inferior-octave-prompt-read-only): Fix last change. 2013-04-30 Alan Mackenzie Handle arbitrarily long C++ member initialisation lists. * progmodes/cc-engine.el (c-back-over-member-initializers): new function. (c-guess-basic-syntax): New CASE 5R (extracted from 5B) to handle (most) member init lists. 2013-04-30 Rüdiger Sonderfeld * progmodes/octave.el (inferior-octave-prompt-read-only): New user variable. 2013-04-30 Leo Liu * progmodes/octave.el (octave-variables): Remove. No builtin variables any more. All converted to functions. (octave-font-lock-keywords, octave-completion-at-point-function): Fix uses. (octave-font-lock-texinfo-comment): New user variable. (octave-texinfo-font-lock-keywords): New variable for texinfo comment block. (octave-function-comment-block): New face. (octave-font-lock-texinfo-comment): New function. (octave-mode): Font lock texinfo comment block. 2013-04-29 Leo Liu * progmodes/octave.el (octave-font-lock-keywords): Handle 'end' in indexing expression. (octave-continuation-string): Do not use \. (inferior-octave-complete-impossible): Remove. (inferior-octave-completion-table) (inferior-octave-completion-at-point): Remove its uses. (inferior-octave-startup): completion_matches was introduced to Octave in 1996 so safe to assume it. (octave-function-file-comment): Improve to follow how Octave does it. (octave-update-function-file-comment): Tweak. 2013-04-29 Leo Liu * progmodes/octave.el (inferior-octave-startup-hook): Obsolete. (inferior-octave-startup): Remove inferior-octave-startup-hook. (octave-function-file-comment): Fix typo. (octave-sync-function-file-names): Use read-char-choice. 2013-04-28 Jay Belanger * calc/calc.el (math-normalize): Don't set `math-normalize-error' to t for the less important warnings. 2013-04-27 Darren Hoo (tiny change) * isearch.el (isearch-fail-pos): Check for empty `cmds'. (Bug#14268) 2013-04-27 Glenn Morris * vc/log-view.el (log-view-current-entry): Treat "---" separator lines as part of the following rev. (Bug#14169) 2013-04-27 Juri Linkov * subr.el (read-number): Doc fix about using it by interactive code letter `n'. (Bug#14254) 2013-04-27 Juri Linkov * desktop.el (desktop-auto-save-timeout): New option. (desktop-file-checksum): New variable. (desktop-save): Add optional arg `auto-save' and don't auto-save if nothing changed. (desktop-auto-save-timer): New variable. (desktop-auto-save, desktop-auto-save-set-timer): New functions. (after-init-hook): Call `desktop-auto-save-set-timer'. Suggested by Reuben Thomas in . 2013-04-27 Leo Liu * progmodes/octave.el (octave-function-file-p) (octave-skip-comment-forward, octave-function-file-comment) (octave-update-function-file-comment): New functions. (octave-mode-map): Bind C-c ; to octave-update-function-file-comment. (octave-mode-menu): Add octave-update-function-file-comment. (octave-mode, inferior-octave-mode): Fix doc-string. (octave-insert-defun): Conform to Octave's coding convention. (Bug#14285) * files.el (basic-save-buffer): Don't let errors in before-save-hook prevent saving buffer. 2013-04-20 Roland Winkler * faces.el (read-face-name): Use completing-read if arg multiple is nil. 2013-04-27 Ingo Lohmar (tiny change) * ls-lisp.el (ls-lisp-insert-directory): If no files are displayed, move point to after the totals line. See http://lists.gnu.org/archive/html/emacs-devel/2013-04/msg00677.html for the details. 2013-04-27 Stefan Monnier * emacs-lisp/package.el (package-autoload-ensure-default-file): Add current dir to the load-path. (package-generate-autoloads): Don't rely on autoload-ensure-default-file. 2013-04-26 Reuben Thomas * textmodes/remember.el (remember-store-in-files): Document that the file name format is passed to `format-time-string'. 2013-04-26 Leo Liu * progmodes/octave.el (octave-sync-function-file-names): New function. (octave-mode): Use it in before-save-hook. 2013-04-26 Stefan Monnier * emacs-lisp/tabulated-list.el (tabulated-list-mode): Disable undo (bug#14274). * progmodes/octave.el (octave-smie-forward-token): Properly skip \n and comment, even if it's not an implicit ; (bug#14218). 2013-04-26 Glenn Morris * subr.el (read-number): Once more use `read' rather than `string-to-number', to trap non-numeric input. (Bug#14254) 2013-04-26 Erik Charlebois * emacs-lisp/syntax.el (syntax-propertize-multiline): Use `syntax-multiline' text property consistently instead of `font-lock-multiline'. (Bug#14237) 2013-04-26 Glenn Morris * emacs-lisp/shadow.el (list-load-path-shadows): No longer necessary to check for duplicate simple.el, since 2012-07-07 change to init_lread to not include installation lisp directories in load-path when running uninstalled. (Bug#14270) 2013-04-26 Leo Liu * progmodes/octave.el (octave-submit-bug-report): Obsolete. (octave-mode, inferior-octave-mode): Use setq-local. (octave-not-in-string-or-comment-p): Rename to octave-in-string-or-comment-p. (octave-in-comment-p, octave-in-string-p) (octave-in-string-or-comment-p): Replace defsubst with defun. 2013-04-25 Paul Eggert * Makefile.in (distclean): Remove $(lisp)/loaddefs.el~. 2013-04-25 Bastien Guerry * textmodes/remember.el (remember-data-directory) (remember-directory-file-name-format): Fix custom types. 2013-04-25 Leo Liu * progmodes/octave.el (octave-completion-at-point-function): Make use of inferior octave process. (octave-initialize-completions): Remove. (inferior-octave-completion-table): New function. (inferior-octave-completion-at-point): Use it. (octave-completion-alist): Remove. 2013-04-25 Stefan Monnier * progmodes/opascal.el: Use font-lock and syntax-propertize. (opascal-mode-syntax-table): New var. (opascal-literal-kind, opascal-is-literal-end) (opascal-literal-token-at): Rewrite. (opascal--literal-start-re, opascal-font-lock-keywords) (opascal--syntax-propertize): New constants. (opascal-font-lock-defaults): Adjust. (opascal-mode): Use them. Set comment- variables as well. (delphi-comment-face, opascal-comment-face, delphi-string-face) (opascal-string-face, delphi-keyword-face, opascal-keyword-face) (delphi-other-face, opascal-other-face): Remove face variables. (opascal-save-state): Remove macro. (opascal-fontifying-progress-step): Remove constant. (opascal--ignore-changes): Remove var. (opascal-set-token-property, opascal-parse-next-literal) (opascal-is-stable-literal, opascal-complete-literal) (opascal-is-literal-start, opascal-face-of) (opascal-parse-region, opascal-parse-region-until-stable) (opascal-fontify-region, opascal-after-change) (opascal-debug-show-is-stable, opascal-debug-unparse-buffer) (opascal-debug-parse-region, opascal-debug-parse-window) (opascal-debug-parse-buffer, opascal-debug-fontify-window) (opascal-debug-fontify-buffer): Remove. (opascal-debug-mode-map): Adjust accordingly. 2013-04-25 Leo Liu Merge octave-mod.el and octave-inf.el into octave.el with some cleanups. * progmodes/octave.el: New file renamed from octave-mod.el. * progmodes/octave-inf.el: Merged into octave.el. * progmodes/octave-mod.el: Renamed to octave.el. 2013-04-25 Tassilo Horn * textmodes/reftex-vars.el (reftex-label-ignored-macros-and-environments): New defcustom. * textmodes/reftex-parse.el (reftex-parse-from-file): Use it. 2013-04-25 Stefan Monnier * emacs-lisp/smie.el (smie-indent--hanging-p): Don't burp at EOB. (smie-indent-keyword): Improve the check to ensure that the next comment is really on the same line. (smie-indent-comment): Don't align with a subsequent closer (or eob). * progmodes/octave-mod.el (octave-smie-forward-token): Only emit semi-colons if the line is not otherwise empty (bug#14218). 2013-04-25 Glenn Morris * vc/vc-bzr.el (vc-bzr-print-log): Tweak LIMIT = 1 case. 2013-04-24 Stefan Monnier * progmodes/opascal.el (opascal-set-token-property): Rename from opascal-set-text-properties and only set `token' (bug#14134). Suggested by Erik Knowles . (opascal-literal-text-properties): Remove. (opascal-parse-next-literal, opascal-debug-unparse-buffer): Adjust callers. 2013-04-24 Reuben Thomas * textmodes/remember.el (remember-handler-functions): Add an option for a new handler `remember-store-in-files'. (remember-data-directory, remember-directory-file-name-format): New options. (remember-store-in-files): New function to store remember notes as separate files within a directory. 2013-04-24 Magnus Henoch * progmodes/compile.el (compilation-next-error-function): Pass "formats" to compilation-find-file (bug#11777). 2013-04-24 Glenn Morris * vc/vc-bzr.el (vc-bzr-print-log): * vc/vc-hg.el (vc-hg-print-log): * vc/vc-svn.el (vc-svn-print-log): Fix START-REVISION with LIMIT != 1. (Bug#14168) * vc/vc-bzr.el (vc-bzr-print-log): * vc/vc-cvs.el (vc-cvs-print-log): * vc/vc-git.el (vc-git-print-log): * vc/vc-hg.el (vc-hg-print-log): * vc/vc-mtn.el (vc-mtn-print-log): * vc/vc-rcs.el (vc-rcs-print-log): * vc/vc-sccs.el (vc-sccs-print-log): * vc/vc-svn.el (vc-svn-print-log): * vc/vc.el (vc-print-log-internal): Doc fixes. 2013-04-23 Glenn Morris * startup.el (normal-no-mouse-startup-screen, normal-about-screen): Remove venerable code attempting to avoid substitute-command-keys. 2013-04-23 Tassilo Horn * textmodes/reftex-vars.el (reftex-label-regexps): Call `reftex-compile-variables' after changes to this variable. 2013-04-23 Stefan Monnier * jit-lock.el: Fix signals in jit-lock-force-redisplay (bug#13542). Use lexical-binding. (jit-lock-force-redisplay): Use markers, check buffer's continued existence and beware narrowed buffers. (jit-lock-fontify-now): Adjust call accordingly. 2013-04-22 Stefan Monnier * minibuffer.el (minibuffer-completion-contents): Fix obsolescence info to avoid misleading the user. 2013-04-22 Leo Liu * info-look.el: Prefer latex2e.info. (Bug#14240) 2013-04-22 Michael Albinus Fix pack/unpack coding. Reported by David Smith . * net/tramp-compat.el (tramp-compat-call-process): Move function ... * net/tramp.el (tramp-call-process): ... here (tramp-set-completion-function, tramp-parse-putty): * net/tramp-adb.el (tramp-adb-execute-adb-command): * net/tramp-gvfs.el (tramp-gvfs-send-command): * net/tramp-sh.el (tramp-sh-handle-set-file-times) (tramp-set-file-uid-gid, tramp-sh-handle-write-region) (tramp-call-local-coding-command): Use `tramp-call-process' instead of `tramp-compat-call-process'. * net/tramp-sh.el (tramp-perl-pack, tramp-perl-unpack): New defconst. (tramp-local-coding-commands, tramp-remote-coding-commands): Use them. (tramp-sh-handle-file-local-copy, tramp-sh-handle-write-region): (tramp-find-inline-compress): Improve traces. (tramp-maybe-send-script): Check for Perl binary. (tramp-get-inline-coding): Do not redirect STDOUT for local decoding. 2013-04-22 Daiki Ueno * epg.el (epg-context-pinentry-mode): New function. (epg-context-set-pinentry-mode): New function. (epg--start): Pass --pinentry-mode option to gpg command. 2013-04-21 Xue Fuqiao * comint.el (comint-dynamic-complete-functions, comint-mode-map): `comint-dynamic-complete' is obsolete since 24.1, replaced by `completion-at-point'. (Bug#13774) * startup.el (normal-no-mouse-startup-screen): Bug fix, the default key binding for `describe-distribution' has been moved to `C-h C-o'. (Bug#13970) 2013-04-21 Glenn Morris * vc/vc.el (vc-print-log-setup-buttons, vc-print-log-internal): Add doc strings. (vc-print-log): Clarify interactive prompt. 2013-04-20 Glenn Morris * emacs-lisp/bytecomp.el (byte-compile-insert-header): No longer include timestamp etc information. 2013-04-20 Roland Winkler * faces.el (read-face-name): Bug fix, return just one face if arg multiple is nil. (Bug#14209) 2013-04-20 Stefan Monnier * emacs-lisp/nadvice.el (advice--where-alist): Add :override. (remove-function): Autoload. * comint.el (comint-redirect-original-filter-function): Remove. (comint-redirect-cleanup, comint-redirect-send-command-to-process): * vc/vc-cvs.el (vc-cvs-annotate-process-filter) (vc-cvs-annotate-command): * progmodes/octave-inf.el (inferior-octave-send-list-and-digest): * progmodes/prolog.el (prolog-consult-compile): * progmodes/gdb-mi.el (gdb, gdb--check-interpreter): Use add/remove-function instead. * progmodes/gud.el (gud-tooltip-original-filter): Remove. (gud-tooltip-process-output, gud-tooltip-tips): Use add/remove-function instead. * progmodes/xscheme.el (xscheme-previous-process-state): Remove. (scheme-interaction-mode, exit-scheme-interaction-mode): Use add/remove-function instead. * vc/vc-dispatcher.el: Use lexical-binding. (vc--process-sentinel): Rename from vc-process-sentinel. Change last arg to be the code to run. Don't use vc-previous-sentinel and vc-sentinel-commands any more. (vc-exec-after): Allow code to be a function. Use add/remove-function. (compilation-error-regexp-alist, view-old-buffer-read-only): Declare. 2013-04-19 Masatake YAMATO * progmodes/sh-script.el (sh-imenu-generic-expression): Handle function names with a single character. (Bug#14111) 2013-04-19 Dima Kogan (tiny change) * progmodes/gud.el (gud-perldb-marker-filter): Understand position info for subroutines defined in an eval (bug#14182). 2013-04-19 Thierry Volpiatto * bookmark.el (bookmark-completing-read): Improve handling of empty string (bug#14176). 2013-04-19 Stefan Monnier * vc/vc-dispatcher.el (vc-do-command): Get rid of default sentinel msg. 2013-04-19 Fabián Ezequiel Gallina New faster Imenu implementation (bug#14058). * progmodes/python.el: (python-imenu-prev-index-position): (python-imenu-format-item-label-function) (python-imenu-format-parent-item-label-function) (python-imenu-format-parent-item-jump-label-function): New vars. (python-imenu-format-item-label) (python-imenu-format-parent-item-label) (python-imenu-format-parent-item-jump-label) (python-imenu--put-parent, python-imenu--build-tree) (python-imenu-create-index, python-imenu-create-flat-index) (python-util-popn): New functions. (python-mode): Set imenu-create-index-function to python-imenu-create-index. 2013-04-18 Stefan Monnier * winner.el (winner-active-region): Use region-active-p, activate-mark and deactivate-mark (bug#14225). * simple.el (deactivate-mark): Don't inline it. 2013-04-18 Michael Albinus * net/tramp-sh.el (tramp-remote-process-environment): Add "TMOUT=0". 2013-04-18 Tassilo Horn * files.el (auto-mode-alist): Delete OpenDocument and StarOffice file extensions from the archive-mode entry in order to prefer doc-view-mode-maybe with archive-mode as fallback (bug#14188). 2013-04-18 Leo Liu * bindings.el (help-event-list): Add ?\?. 2013-04-18 Stefan Monnier * subr.el (with-wrapper-hook): Declare obsolete. * simple.el (filter-buffer-substring-function): New hook. (filter-buffer-substring): Use it. (filter-buffer-substring-functions): Mark obsolete. * minibuffer.el (completion-in-region-function): New hook. (completion-in-region): Use it. (completion-in-region-functions): Mark obsolete. * mail/mailabbrev.el (mail-abbrevs-setup): Use abbrev-expand-function. * abbrev.el (abbrev-expand-function): New hook. (expand-abbrev): Use it. (abbrev-expand-functions): Mark obsolete. * emacs-lisp/nadvice.el (advice--where-alist): Add :filter-args and :filter-return. 2013-04-17 Fabián Ezequiel Gallina * progmodes/python.el (python-nav--syntactically): Fix cornercases and do not care about match data. 2013-04-17 Stefan Monnier * emacs-lisp/lisp.el (lisp-completion-at-point): Provide specialized completion tables when completing error conditions and `declare' arguments. (lisp-complete-symbol, field-complete): Mark as obsolete. (check-parens): Unmatched parens are user errors. * minibuffer.el (minibuffer-completion-contents): Mark as obsolete. 2013-04-17 Michal Nazarewicz * textmodes/flyspell.el (flyspell-check-pre-word-p): Return nil if command changed buffer (ie. `flyspell-pre-buffer' is not current buffer), which prevents making decisions based on invalid value of `flyspell-pre-point' in the wrong buffer. Most notably, this used to cause an error when `flyspell-pre-point' was nil after switching buffers. (flyspell-post-command-hook): No longer needs to change buffers when checking pre-word. While at it remove unnecessary progn. 2013-04-17 Nicolas Richard (tiny change) * textmodes/ispell.el (ispell-add-per-file-word-list): Fix `flyspell-correct-word-before-point' error when accepting words and `coment-padding' is an integer by using `comment-normalize-vars' (Bug #14214). 2013-04-17 Fabián Ezequiel Gallina New defun movement commands. * progmodes/python.el (python-nav--syntactically) (python-nav--forward-defun, python-nav-backward-defun) (python-nav-forward-defun): New functions. 2013-04-17 Fabián Ezequiel Gallina * progmodes/python.el (python-syntax--context-compiler-macro): New defun. (python-syntax-context): Use named compiler-macro for backwards compatibility with Emacs 24.x. 2013-04-17 Leo Liu * progmodes/octave-mod.el (octave-mode-map): Fix key binding to octave-hide-process-buffer. 2013-04-17 Stefan Monnier * vc/vc-hg.el (vc-hg-annotate-re): Disallow ": " in file names (bug#14216). 2013-04-17 Jean-Philippe Gravel * progmodes/gdb-mi.el (gdbmi-bnf-incomplete-record-result): Fix adjustment of offset when receiving incomplete responses from GDB (bug#14129). 2013-04-16 Stefan Monnier * progmodes/python.el (python-mode-skeleton-abbrev-table): Rename from python-mode-abbrev-table. (python-skeleton-define): Adjust accordingly. (python-mode-abbrev-table): New table that inherits from it so that python-skeleton-autoinsert does not affect non-skeleton abbrevs. * abbrev.el (abbrev--symbol): New function, extracted from abbrev-symbol. (abbrev-symbol): Use it. (abbrev--before-point): Use it since we already handle inheritance. 2013-04-16 Leo Liu * progmodes/octave-mod.el (octave-mode-map): Remove redundant key binding to info-lookup-symbol. 2013-04-16 Juanma Barranquero * minibuffer.el (completion--twq-all): * term/ns-win.el (ns-initialize-window-system): * term/w32-win.el (w32-initialize-window-system): Silence byte-compiler. 2013-04-16 Stefan Monnier * emacs-lisp/nadvice.el (add-function): Default simple vars to their global bindings. * doc-view.el (doc-view-start-process): Handle url-handler directories. 2013-04-15 Dmitry Gutov * progmodes/ruby-mode.el (ruby-beginning-of-defun) (ruby-end-of-defun, ruby-move-to-block): Bind `case-fold-search' to nil. (ruby-end-of-defun): Remove the unused arg, change the docstring to reflect that this function is only used as the value of `end-of-defun-function'. (ruby-beginning-of-defun): Remove "top-level" from the docstring, to reflect an earlier change that beginning/end-of-defun functions jump between methods in a class definition, as well as top-level functions. 2013-04-15 Stefan Monnier * minibuffer.el (minibuffer-complete): Don't just scroll a *Completions* that's been iconified. (minibuffer-force-complete): Make sure repetitions do cycle when going through completion-in-region -> minibuffer-complete. 2013-04-15 Alan Mackenzie Correct the placement of c-cpp-delimiters when there're #s not at col 0. * progmodes/cc-langs.el (c-anchored-cpp-prefix): Reformulate and place a submatch around the #. * progmodes/cc-mode.el(c-neutralize-syntax-in-and-mark-CPP): Start a search at BOL. Put the c-cpp-delimiter category text propertiy on the #, not BOL. 2013-04-15 Stefan Monnier * emacs-lisp/nadvice.el: Properly test names when adding advice. (advice--member-p): New arg `name'. (advice--add-function, advice-member-p): Use it (bug#14202). 2013-04-15 Filipp Gunbin Reformulate java imenu-generic-expression. The old expression contained ill formed regexps. * progmodes/cc-menus.el (cc-imenu-java-ellipsis-regexp) (cc-imenu-java-type-spec-regexp, cc-imenu-java-comment-regexp) (cc-imenu-java-method-arg-regexp): New defconsts. (cc-imenu-java-build-type-args-regex): New defun. (cc-imenu-java-generic-expression): Fix, to remove "ambiguous" handling of spaces in the regexp. 2013-03-15 Agustín Martín Domingo * textmodes/ispell.el (ispell-command-loop): Remove flyspell highlight of a word when ispell accepts it (bug #14178). 2013-04-15 Michael Albinus * net/ange-ftp.el (ange-ftp-run-real-handler-orig): New defun, uses code from the previous `ange-ftp-run-real-handler'. (ange-ftp-run-real-handler): Set it to `tramp-run-real-handler' only in case that function exist. This is needed for proper unloading of Tramp. 2013-04-15 Tassilo Horn * textmodes/reftex-vars.el (reftex-label-regexps): New defcustom. * textmodes/reftex.el (reftex-compile-variables): Use it. 2013-04-14 Stefan Monnier * files.el (normal-mode): Only use default major-mode if no other mode was specified. * emacs-lisp/trace.el (trace-values): New function. * files.el: Allow : in local variables (bug#14089). (hack-local-variable-regexp): New var. (hack-local-variables-prop-line, hack-local-variables): Use it. 2013-04-13 Roland Winkler * textmodes/bibtex.el (bibtex-search-entries): Bug fix. Use match data before it gets modified by bibtex-beginning-of-entry. 2013-04-13 Roland Winkler * textmodes/bibtex.el (bibtex-url): Doc fix. 2013-04-13 Roland Winkler * textmodes/bibtex.el (bibtex-initialize): If the current buffer does not visit a BibTeX file, exclude it from the list of buffers returned by bibtex-initialize. 2013-04-13 Stephen Berman * window.el (split-window): Remove interactive form, since as a command this function is a special case of split-window-below. Correct doc string. 2013-04-12 Roland Winkler * faces.el (read-face-name): Do not override value of arg default. Allow single faces and strings as default values. Remove those elements from return value that are not faces. (describe-face): Simplify. (face-at-point): New optional args thing and multiple so that this function can provide the same functionality previously provided by read-face-name. (make-face-bold, make-face-unbold, make-face-italic) (make-face-unitalic, make-face-bold-italic, invert-face) (modify-face, read-face-and-attribute): Use face-at-point. * cus-edit.el (customize-face, customize-face-other-window) * cus-theme.el (custom-theme-add-face) * face-remap.el (buffer-face-set) * facemenu.el (facemenu-set-face): Use face-at-point. 2013-04-12 Michael Albinus * info.el (Info-file-list-for-emacs): Add "tramp" and "dbus". 2013-04-10 Tassilo Horn * textmodes/reftex-cite.el (reftex-parse-bibtex-entry): Don't cut off leading { and trailing } from field values. 2013-04-10 Stefan Monnier * emacs-lisp/timer.el (timer--check): New function. (timer--time, timer-set-function, timer-event-handler): Use it. (timer-set-idle-time): Simplify. (timer--activate): CSE. (timer-event-handler): Give more info in error message. (internal-timer-start-idle): New function, moved from C. * mpc.el (mpc-proc): Add `restart' argument. (mpc-proc-cmd): Use it. (mpc--status-timer-run): Also catch signals from `mpc-proc'. (mpc-status-buffer-show, mpc-tagbrowser-dir-toggle): Call `mpc-proc' less often. 2013-04-10 Masatake YAMATO * progmodes/sh-script.el: Implement `sh-mode' own `add-log-current-defun-function' (bug#14112). (sh-current-defun-name): New function. (sh-mode): Use the function. 2013-04-09 Bastien Guerry * simple.el (choose-completion-string): Fix docstring (bug#14163). 2013-04-08 Stefan Monnier * emacs-lisp/edebug.el (edebug-mode): Fix typo (bug#14144). * emacs-lisp/timer.el (timer-event-handler): Don't retrigger a canceled timer (bug#14156). 2013-04-07 Nic Ferrier * emacs-lisp/ert.el (should, should-not, should-error): Add edebug declaration. 2013-04-07 Leo Liu * pcmpl-x.el: New file. 2013-04-06 Dmitry Antipov Do not set x-display-name until X connection is established. This is needed to prevent from weird situation described at . * frame.el (make-frame): Set x-display-name after call to window system initialization function, not before. * term/x-win.el (x-initialize-window-system): Add optional display argument and use it. * term/w32-win.el (w32-initialize-window-system): * term/ns-win.el (ns-initialize-window-system): * term/pc-win.el (msdos-initialize-window-system): Add compatible optional display argument. 2013-04-06 Eli Zaretskii * files.el (normal-backup-enable-predicate): On MS-Windows and MS-DOS compare truenames of temporary-file-directory and of the file, so that 8+3 aliases (usually found in $TEMP on Windows) don't fail comparison by compare-strings. Also, compare file names case-insensitively on MS-Windows and MS-DOS. 2013-04-05 Stefan Monnier * emacs-lisp/package.el (package-compute-transaction): Fix last fix. Suggested by Donald Curtis (bug#14082). 2013-04-05 Dmitry Gutov * whitespace.el (whitespace-color-on, whitespace-color-off): Only call `font-lock-fontify-buffer' when `font-lock-mode' is on. 2013-04-05 Jacek Chrząszcz (tiny change) * ispell.el (ispell-set-spellchecker-params): Really set `ispell-args' for all equivs. 2013-04-05 Stefan Monnier * ido.el (ido-completions): Use extra elements of ido-decorations (bug#14143). (ido-decorations): Update docstring. 2013-04-05 Michael Albinus * autorevert.el (auto-revert-mode, auto-revert-tail-mode) (global-auto-revert-mode): Let-bind `auto-revert-use-notify' to nil during initialization, in order not to miss changes since the file was opened. (Bug#14140) 2013-04-05 Leo Liu * kmacro.el (kmacro-call-macro): Fix bug#14135. 2013-04-05 Jay Belanger * calc/calc-units.el (calc-convert-units): Rewrite conditional. 2013-04-04 Glenn Morris * electric.el (electric-pair-inhibit-predicate): Add :version. 2013-04-04 Stefan Monnier * emacs-lisp/package.el (package-compute-transaction): Fix ordering when a package is required several times (bug#14082). 2013-04-04 Roland Winkler * faces.el (read-face-name): Behave as promised by the docstring. Assume that arg default is a list of faces. (describe-face): Call read-face-name with list of default faces. 2013-04-04 Thierry Volpiatto * bookmark.el: Fix deletion of bookmarks (bug#13972). (bookmark-bmenu-list): Don't toggle filenames if alist is empty. (bookmark-bmenu-execute-deletions): Only skip first line if it's the header. (bookmark-exit-hook-internal): Save even if list is empty. 2013-04-04 Yann Hodique (tiny change) * emacs-lisp/package.el (package-pinned-packages): New var. (package--add-to-archive-contents): Obey it (bug#14118). 2013-04-03 Alan Mackenzie Handle `parse-partial-sexp' landing inside a comment opener (Bug#13244). Also adapt to the new values of element 7 of a parse state. * progmodes/cc-engine.el (c-state-pp-to-literal): New optional parameter `not-in-delimiter'. Handle being inside comment opener. (c-invalidate-state-cache-1): Reckon with an extra "invalid" character in case we're typing a '*' after a '/'. (c-literal-limits): Handle the awkward "not-in-delimiter" cond arm instead by passing the parameter to c-state-pp-to-literal. * progmodes/cc-fonts.el (c-font-lock-doc-comments): New handling for elt. 7 of a parse state. 2013-04-01 Paul Eggert Use UTF-8 for most files with non-ASCII characters (Bug#13936). * international/latin1-disp.el, international/mule-util.el: * language/cyril-util.el, language/european.el, language/ind-util.el: * language/lao-util.el, language/thai.el, language/tibet-util.el: * language/tibetan.el, language/viet-util.el: Switch from iso-2022-7bit to utf-8 or (if needed) utf-8-emacs. 2013-04-01 Stefan Monnier * electric.el (electric-pair-inhibit-predicate): New var (bug#14000). (electric-pair-post-self-insert-function): Use it. (electric-pair-default-inhibit): New function, extracted from electric-pair-post-self-insert-function. 2013-03-31 Roland Winkler * emacs-lisp/crm.el (completing-read-multiple): Doc fix. 2013-03-31 Stefan Monnier * hi-lock.el (hi-lock-mode): Cleanup after revert-buffer (bug#13891). 2013-03-30 Fabián Ezequiel Gallina Un-indent after "pass" and "return" statements (Bug#13888) * progmodes/python.el (python-indent-block-enders): New var. (python-indent-calculate-indentation): Use it. 2013-03-30 Michael Albinus * net/tramp.el (tramp-drop-volume-letter): Make it an ordinary defun. Defining it as defalias could introduce too eager byte-compiler optimization. (Bug#14030) 2013-03-30 Chong Yidong * iswitchb.el (iswitchb-read-buffer): Fix typo. 2013-03-30 Leo Liu * kmacro.el (kmacro-call-macro): Add optional arg MACRO. (kmacro-execute-from-register): Pass the keyboard macro to kmacro-call-macro or repeating won't work correctly. 2013-03-30 Teodor Zlatanov * progmodes/subword.el: Back to using `forward-symbol'. * subr.el (forward-whitespace, forward-symbol) (forward-same-syntax): Move from thingatpt.el. 2013-03-29 Leo Liu * kmacro.el (kmacro-to-register): New command. (kmacro-execute-from-register): New function. (kmacro-keymap): Bind to 'x'. (Bug#14071) 2013-03-29 Stefan Monnier * mpc.el: Use defvar-local and setq-local. (mpc--proc-connect): Connection failures are not bugs. (mpc-mode-map): `follow-link' only applies to the buffer's content. (mpc-volume-map): Bind to the up-events. 2013-03-29 Teodor Zlatanov * progmodes/subword.el (superword-mode): Use `forward-sexp' instead of `forward-symbol'. 2013-03-28 Stefan Monnier * emacs-lisp/edebug.el (edebug-mode): Make it a minor mode. (edebug--recursive-edit): Use it. (edebug-kill-buffer): Don't let-bind kill-buffer-hook. (edebug-temp-display-freq-count): Don't let-bind buffer-read-only. 2013-03-28 Leo Liu * vc/vc-bzr.el (vc-bzr-revert): Don't backup. (Bug#14066) 2013-03-27 Eli Zaretskii * facemenu.el (list-colors-callback): New defvar. (list-colors-redisplay): New function. (list-colors-display): Install list-colors-redisplay as the revert-buffer-function. (Bug#14063) 2013-03-27 Stefan Monnier * minibuffer.el (completion-pcm--merge-completions): Make sure prefixes and suffixes don't overlap (bug#14061). * case-table.el: Use lexical-binding. (case-table-get-table): New function. (get-upcase-table): Use it. Mark as obsolete. Adjust callers. 2013-03-27 Teodor Zlatanov * progmodes/subword.el: Add `superword-mode' to do word motion over symbol_words (parallels and leverages `subword-mode' which does word motion inside MixedCaseWords). 2013-03-27 Aidan Gauland * eshell/em-unix.el: Move su and sudo to... * eshell/em-tramp.el: ...Eshell tramp module. 2013-03-26 Stefan Monnier * desktop.el (desktop--v2s): Rename from desktop-internal-v2s. Change return value to be a sexp. Delay `get-buffer' to after restoring the desktop (bug#13951). 2013-03-26 Leo Liu * register.el: Move semantic tag handling back to cedet/semantic/senator.el. (Bug#14052) 2013-03-26 Stefan Monnier * eshell/em-prompt.el (eshell-emit-prompt): Make sure we can't insert into the prompt either (bug#13963). 2013-03-25 Stefan Monnier * font-lock.el (lisp-font-lock-keywords-2): Don't highlight the "error" part of "(error-foo)". 2013-03-24 Juri Linkov * replace.el (list-matching-lines-prefix-face): New defcustom. (occur-1): Pass `list-matching-lines-prefix-face' to the function `occur-engine' if `face-differs-from-default-p' returns t. (occur-engine): Add `,' inside backquote construct to evaluate `prefix-face'. Propertize the prefix with the `prefix-face' face. Pass `prefix-face' to the functions `occur-context-lines' and `occur-engine-add-prefix'. (occur-engine-add-prefix, occur-context-lines): Add optional arg `prefix-face' and propertize the prefix with `prefix-face'. (Bug#14017) 2013-03-24 Leo Liu * nxml/rng-valid.el (rng-validate-while-idle) (rng-validate-quick-while-idle): Guard against deleted buffer. (Bug#13999) * emacs-lisp/edebug.el (edebug-mode): Make sure edebug-kill-buffer is the last entry in kill-buffer-hook. * files.el (kill-buffer-hook): Doc fix. 2013-03-23 Dmitry Gutov * emacs-lisp/lisp-mode.el (emacs-lisp-docstring-fill-column): Make it safe-local. * vc/diff-mode.el (diff-mode-shared-map): Unbind "/" (Bug#14034). 2013-03-23 Leo Liu * nxml/nxml-util.el (nxml-with-unmodifying-text-property-changes): Remove. * nxml/rng-valid.el (rng-validate-mode) (rng-after-change-function, rng-do-some-validation): * nxml/rng-maint.el (rng-validate-buffer): * nxml/nxml-rap.el (nxml-tokenize-forward, nxml-ensure-scan-up-to-date): * nxml/nxml-outln.el (nxml-show-all, nxml-set-outline-state): * nxml/nxml-mode.el (nxml-mode, nxml-degrade, nxml-after-change) (nxml-extend-after-change-region): Use with-silent-modifications. * nxml/rng-nxml.el (rng-set-state-after): Do not let-bind timer-idle-list. * nxml/rng-valid.el (rng-validate-while-idle-continue-p) (rng-next-error-1, rng-previous-error-1): Do not let-bind timer-idle-list. (Bug#13999) 2013-03-23 Juri Linkov * info.el (info-index-match): New face. (Info-index, Info-apropos-matches): Add a nested subgroup to the main pattern and add text properties with the new face to matches in index entries relative to the beginning of the index entry. (Bug#14015) 2013-03-21 Eric Ludlam * eieio/eieio-datadebug.el (data-debug/eieio-insert-slots): Inhibit read only while inserting objects. 2013-03-22 Teodor Zlatanov * progmodes/cfengine.el: Update docs to mention `cfengine-auto-mode'. Use \_> and \_< instead of \> and \< for symbol motion. Remove "_" from the word syntax. 2013-03-21 Teodor Zlatanov * progmodes/cfengine.el (cfengine-common-syntax): Add "_" to word syntax for both `cfengine2-mode' and `cfengine3-mode'. 2013-03-20 Juri Linkov * info.el (Info-next-reference-or-link) (Info-prev-reference-or-link): New functions. (Info-next-reference, Info-prev-reference): Use them. (Info-try-follow-nearest-node): Handle footnote navigation. (Info-fontify-node): Fontify footnotes. (Bug#13989) 2013-03-20 Stefan Monnier * subr.el (posn-point, posn-string): Fix it here instead (bug#13979). * mouse.el (mouse-on-link-p): Undo scroll-bar fix. 2013-03-20 Paul Eggert Suppress unnecessary non-ASCII chatter during build process. * international/ja-dic-cnv.el (skkdic-collect-okuri-nasi) (batch-skkdic-convert): Suppress most of the chatter. It's not needed so much now that machines are faster, and its non-ASCII component was confusing; see Dmitry Gutov in . 2013-03-20 Leo Liu * ido.el (ido-chop): Fix bug#10994. 2013-03-19 Dmitry Gutov * whitespace.el (whitespace-font-lock, whitespace-font-lock-mode): Remove vars. (whitespace-color-on, whitespace-color-off): Use `font-lock-fontify-buffer' (Bug#13817). 2013-03-19 Stefan Monnier * mouse.el (mouse--down-1-maybe-follows-link): Fix follow-link remapping in mode-line. (mouse-on-link-p): Also check [mode-line follow-link] bindings. 2013-03-19 Dmitry Gutov * whitespace.el (whitespace-color-on): Use `prepend' OVERRIDE value for `whitespace-line' face (Bug#13875). (whitespace-font-lock-keywords): Change description. (whitespace-color-on): Don't save `font-lock-keywords' value, save the constructed keywords instead. (whitespace-color-off): Use `font-lock-remove-keywords' (Bug#13817). 2013-03-19 Leo Liu * progmodes/compile.el (compilation-display-error): New command. (compilation-mode-map, compilation-minor-mode-map): Bind it to C-o. (Bug#13992) 2013-03-18 Paul Eggert * term/x-win.el (x-keysym-pair): Add a Fixme (Bug#13936). 2013-03-18 Jan Djärv * mouse.el (mouse-on-link-p): Check for scroll bar (Bug#13979). 2013-03-18 Michael Albinus * net/tramp-compat.el (tramp-compat-user-error): New defun. * net/tramp-adb.el (tramp-adb-handle-shell-command): * net/tramp-gvfs.el (top): * net/tramp.el (tramp-find-method, tramp-dissect-file-name) (tramp-handle-shell-command): Use it. (tramp-dissect-file-name): Raise an error when hostname is a method name, and neither method nor user is specified. * net/trampver.el: Update release number. 2013-03-18 Leo Liu Make sure eldoc can be turned off properly. * emacs-lisp/eldoc.el (eldoc-schedule-timer): Conditionalize on eldoc-mode. (eldoc-display-message-p): Revert last change. (eldoc-display-message-no-interference-p) (eldoc-print-current-symbol-info): Tweak. 2013-03-18 Tassilo Horn * doc-view.el (doc-view-new-window-function): Check the new window overlay's display property instead the char property of the buffer's first char. Use `with-selected-window' instead of `save-window-excursion' with `select-window'. (doc-view-document->bitmap): Check the current doc-view overlay's display property instead the char property of the buffer's first char. 2013-03-18 Paul Eggert Automate the build of ja-dic.el (Bug#13984). * international/ja-dic-cnv.el (skkdic-convert): Remove the annotations from the input, rather than assume that it's been done for us by the SKK script unannotate.awk. Switch ja-dic.el to UTF-8. Don't put the current date into a ja-dic.el comment, as that complicates regression testing. 2013-03-18 Stefan Monnier * whitespace.el: Fix double evaluation. (whitespace-space, whitespace-hspace, whitespace-tab) (whitespace-newline, whitespace-trailing, whitespace-line) (whitespace-space-before-tab, whitespace-indentation) (whitespace-empty, whitespace-space-after-tab): Turn defcustoms into obsolete defvars. (whitespace-hspace-regexp): Fix regexp for emacs-unicode. (whitespace-color-on): Use a single font-lock-add-keywords call. Fix double-evaluation of face variables. 2013-03-17 Michael Albinus * net/tramp-adb.el (tramp-adb-parse-device-names): Use `start-process' instead of `call-process'. Otherwise, the function might be blocked under MS Windows. (Bug#13299) 2013-03-17 Leo Liu Extend eldoc to display info in the mode-line. (Bug#13978) * emacs-lisp/eldoc.el (eldoc-post-insert-mode): New minor mode. (eldoc-mode-line-string): New variable. (eldoc-minibuffer-message): New function. (eldoc-message-function): New variable. (eldoc-message): Use it. (eldoc-display-message-p) (eldoc-display-message-no-interference-p): Support eldoc-post-insert-mode. * simple.el (eval-expression-minibuffer-setup-hook): New hook. (eval-expression): Run it. 2013-03-17 Roland Winkler * emacs-lisp/crm.el (completing-read-multiple): Ignore empty strings in the list of return values. 2013-03-17 Jay Belanger * calc/calc-ext.el (math-read-number-fancy): Check for an explicit radix before checking for HMS forms. 2013-03-16 Leo Liu * progmodes/scheme.el: Add indentation and font-locking for λ. (Bug#13975) 2013-03-16 Stefan Monnier * emacs-lisp/smie.el (smie-auto-fill): Don't inf-loop if there's no token before point (bug#13942). 2013-03-16 Leo Liu * thingatpt.el (end-of-sexp): Fix bug#13952. Use syntax-after. 2013-03-16 Eli Zaretskii * startup.el (command-line-normalize-file-name): Fix handling of backslashes in DOS and Windows file names. Reported by Xue Fuqiao in http://lists.gnu.org/archive/html/help-gnu-emacs/2013-03/msg00245.html. 2013-03-15 Michael Albinus Sync with Tramp 2.2.7. * net/trampver.el: Update release number. 2013-03-14 Tassilo Horn * doc-view.el Fix bug#13887. (doc-view-insert-image): Don't modify overlay associated to non-live windows, and implement horizontal centering of image in case it's smaller than the window. (doc-view-new-window-function): Force redisplay of new windows on doc-view buffers. 2013-03-13 Karl Fogel * saveplace.el (save-place-alist-to-file): Don't sort `save-place-alist', just pretty-print it (bug#13882). 2013-03-13 Michael Albinus * net/tramp-sh.el (tramp-sh-handle-insert-directory): Check whether `default-file-name-coding-system' is bound. It isn't in XEmacs. 2013-03-13 Stefan Monnier * emacs-lisp/byte-run.el (defun-declarations-alist): Don't use backquotes for `obsolete' (bug#13929). * international/mule.el (find-auto-coding): Include file name in obsolescence warning (bug#13922). 2013-03-12 Teodor Zlatanov * progmodes/cfengine.el (cfengine-parameters-indent): New variable for CFEngine 3-specific indentation. (cfengine3-indent-line): Use it. Fix up category regex. (cfengine3-font-lock-keywords): Add bundle and namespace characters. 2013-03-12 Stefan Monnier * type-break.el (type-break-file-name): * textmodes/remember.el (remember-data-file): * strokes.el (strokes-file): * shadowfile.el (shadow-initialize): * saveplace.el (save-place-file): * ps-bdf.el (bdf-cache-file): * progmodes/idlwave.el (idlwave-config-directory): * net/quickurl.el (quickurl-url-file): * international/kkc.el (kkc-init-file-name): * ido.el (ido-save-directory-list-file): * emulation/viper.el (viper-custom-file-name): * emulation/vip.el (vip-startup-file): * calendar/todo-mode.el (todo-file-do, todo-file-done, todo-file-top): * calendar/timeclock.el (timeclock-file): Use locate-user-emacs-file. 2013-03-12 Paul Eggert Switch encodings of tutorials, thai-word to UTF-8 (Bug#13880). * language/thai-word.el: Switch to UTF-8. See ChangeLog.16 for earlier changes. ;; Local Variables: ;; coding: utf-8 ;; End: Copyright (C) 2011-2013 Free Software Foundation, Inc. This file is part of GNU Emacs. GNU Emacs is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. GNU Emacs is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Emacs. If not, see .