Jan D [Thu, 7 May 2015 17:48:19 +0000 (19:48 +0200)]
ns-win.el (ns-paste-secondary): Use gui-get-selection.
* ns-win.el (ns-paste-secondary): Use gui-get-selection.
Artur Malabarba [Thu, 7 May 2015 15:11:50 +0000 (16:11 +0100)]
* lisp/emacs-lisp/package.el: New "external" package status
An external package is any installed package that's not built-in
and not from `package-user-dir', which usually means it's from an
entry in `package-directory-list'. They are treated much like
built-in packages, in that they cannot be through the Package Menu
deleted and are not considered for upgrades.
(package-desc-status): Identify if a package is installed outside
`package-user-dir'.
(package-menu--print-info-simple)
(package-menu--status-predicate): Add support for it.
* etc/NEWS: Document it.
Stefan Monnier [Thu, 7 May 2015 02:27:36 +0000 (22:27 -0400)]
* lisp/mail/rmail.el: Use lexical-binding
(rmail-bury): Remove unused var `buffer-to-bury'.
(rmail-get-new-mail): Remove unused vars `opoint' and `success'.
(rmail-parse-url): Remove unused var `proto', `user', and `host'.
(rmail-unrmail-new-mail-maybe): Remove unused var `new-file'.
(rmail-insert-inbox-text): Remove unused var `movemail'.
(rmail-add-mbox-headers): Remove unused var `limit'.
(rmail-undelete-previous-message): Remove unused var `value'.
(rmail-reply): Remove unused vars `resent-to', `resent-cc',
`resent-reply-to'.
(rmail-mime-mbox-buffer, rmail-mime-view-buffer): Declare.
(rmail-restore-desktop-buffer): Rename arguments.
Glenn Morris [Thu, 7 May 2015 02:01:02 +0000 (22:01 -0400)]
* Makefile.in (change-history-commit): Add missing piece of previous.
Glenn Morris [Thu, 7 May 2015 01:58:58 +0000 (21:58 -0400)]
Avoid unnecessary bumping of Makefile.in's timestamp.
* Makefile.in (gen_origin): Move to gitlog-to-emacslog.
(emacslog): New variable.
(ChangeLog): Use $emacslog. Don't pass $gen_origin.
(unchanged-history-files): Use $emacslog rather than Makefile.in.
(change-history-nocommit): Store hash in $emacslog.
* build-aux/gitlog-to-emacslog (gen_origin): Move default here.
* admin/update_autogen (changelog_files): Update for the above.
Glenn Morris [Thu, 7 May 2015 01:40:28 +0000 (21:40 -0400)]
* Makefile.in: Don't always insist on removing existing "ChangeLog".
(CHANGELOG): New variable.
(no-ChangeLog): Remove.
(ChangeLog): Replace "no-ChangeLog"; pass output file to script.
(change-history-nocommit): Use a temp file rather than insisting
on deletion of any existing "ChangeLog".
Glenn Morris [Thu, 7 May 2015 01:37:09 +0000 (21:37 -0400)]
* build-aux/gitlog-to-emacslog: Allow specification of output.
Glenn Morris [Thu, 7 May 2015 01:35:28 +0000 (21:35 -0400)]
* admin/update_autogen: Add option to update ChangeLog.
(usage): Mention -H.
(changelog_flag, changelog_n, changelog_files): New variables.
(main): Check for -H, and maybe run change-history-nocommit.
Stefan Monnier [Thu, 7 May 2015 01:13:56 +0000 (21:13 -0400)]
* lisp/subr.el (delete-dups): Pre-size the hashtable.
Stefan Monnier [Wed, 6 May 2015 21:43:43 +0000 (17:43 -0400)]
(define-modify-macro): Make sure cl--arglist-args is defined
* lisp/emacs-lisp/cl.el (define-modify-macro): Make sure
cl--arglist-args is defined (bug#20517).
Glenn Morris [Wed, 6 May 2015 21:02:06 +0000 (17:02 -0400)]
* Makefile.in (change-history-nocommit): New.
Dmitry Gutov [Wed, 6 May 2015 20:15:45 +0000 (23:15 +0300)]
Only cancel timer when it is non-nil
* lisp/cedet/pulse.el (pulse-momentary-unhighlight): Only cancel
timer when it is non-nil
(http://lists.gnu.org/archive/html/emacs-devel/2015-05/msg00223.html).
Glenn Morris [Wed, 6 May 2015 20:02:32 +0000 (16:02 -0400)]
Quieten cedet compilation
* lisp/cedet/semantic/db-el.el (semanticdb-elisp-sym->tag):
Invert fboundp test to quieten on current Emacs.
* lisp/cedet/ede/config.el (ede-shell-run-something)
(semanticdb-file-table-object, semanticdb-needs-refresh-p)
(semanticdb-refresh-table): Declare.
(ede-preprocessor-map): Require semantic/db.
Glenn Morris [Wed, 6 May 2015 20:00:22 +0000 (16:00 -0400)]
Quieten cc-mode compilation
* lisp/progmodes/cc-awk.el (c-forward-sws):
* lisp/progmodes/cc-cmds.el (c-forward-subword, c-backward-subword):
Declare.
Oleh Krehel [Wed, 6 May 2015 19:30:54 +0000 (21:30 +0200)]
lisp/subr.el (delete-dups): Avoid nreverse.
Artur Malabarba [Wed, 6 May 2015 18:27:43 +0000 (19:27 +0100)]
* lisp/subr.el (delete-dups): Make it destructive again.
Paul Eggert [Wed, 6 May 2015 17:56:11 +0000 (10:56 -0700)]
* doc/lispref/sequences.texi (Sequence Functions): Fix quoting.
Glenn Morris [Wed, 6 May 2015 16:14:43 +0000 (09:14 -0700)]
; * etc/NEWS: Add entry as a reminder to update the elisp manual.
Stefan Monnier [Wed, 6 May 2015 14:50:48 +0000 (10:50 -0400)]
* lisp/emacs-lisp/testcover.el: Don't use edebug--read (bug#20487)
* lisp/emacs-lisp/testcover.el: Use lexical-binding.
(testcover--read): Rename from testcover-read. Change calling convention.
Use edebug-read-and-maybe-wrap-form now that edebug-read is gone.
(testcover-start): Use add-function. Move edebug-all-defs binding to
testcover--read.
(testcover-this-defun): Tighten scope of edebug-all-defs binding.
(testcover-mark): Remove unused var `item'.
* src/lread.c (syms_of_lread): Default load-read-function to `read'.
Oleh Krehel [Wed, 6 May 2015 13:21:23 +0000 (15:21 +0200)]
lisp/subr.el (delete-dups): Use a hash table
* lisp/subr.el (delete-dups): When there are more than 100 candidates,
use a hash table. This can result in ~500 times speed-up for typical
collections of size 5000, like that of `load-library'.
Stefan Monnier [Wed, 6 May 2015 13:56:03 +0000 (09:56 -0400)]
CEDET: Avoid `oref' on classes in a few more cases
* lisp/cedet/ede/generic.el (ede-find-target):
* lisp/cedet/ede.el (ede-project-forms-menu): Avoid `oref' on classes.
* lisp/cedet/semantic/bovine/gcc.el (semantic-gcc-setup): Remove unused
var `prefix'.
Stefan Monnier [Wed, 6 May 2015 13:44:30 +0000 (09:44 -0400)]
* lisp/cedet/semantic/symref/grep.el: Fix unused var warnings
* lisp/cedet/semantic/symref/grep.el (grepflags, greppattern): Declare.
(semantic-symref-perform-search): Remove unused var `pat'.
Stefan Monnier [Wed, 6 May 2015 13:12:40 +0000 (09:12 -0400)]
CEDET (srecode-compile-inserter): Avoid `oref' on classes
* lisp/cedet/srecode/compile.el (srecode-compile-inserter):
Avoid `oref' on classes (bug#20491).
(srecode-compile-split-code): Remove unused var `key'.
Dmitry Gutov [Wed, 6 May 2015 12:21:32 +0000 (15:21 +0300)]
Clean up pulse.el a little
* lisp/cedet/pulse.el (pulse): Remove.
(pulse-momentary-timer): Save instead of the stop time.
(pulse-momentary-highlight-overlay): Call
pulse-momentary-unhighlight first thing. Treat
pulse-momentary-overlay as a single value, not a list. Save the
created timer. Only pass the stop time to the timer.
(pulse-tick): Update accordingly.
(pulse-momentary-unhighlight): Treat pulse-momentary-overlay as a
single value. Cancel the timer.
Glenn Morris [Wed, 6 May 2015 10:19:35 +0000 (06:19 -0400)]
; Auto-commit of loaddefs files.
Tassilo Horn [Wed, 6 May 2015 05:49:20 +0000 (07:49 +0200)]
Support the biblatex journaltitle field
* lisp/textmodes/reftex-cite.el (reftex-format-bib-entry):
Support the biblatex journaltitle field.
Glenn Morris [Wed, 6 May 2015 03:13:10 +0000 (20:13 -0700)]
Minor declare-function improvement
* lisp/emacs-lisp/bytecomp.el
(byte-compile-macroexpand-declare-function):
Handle declarations after calls. (Bug#20509)
Glenn Morris [Wed, 6 May 2015 03:11:22 +0000 (20:11 -0700)]
* lisp/progmodes/js.el (js--optimize-arglist): Remove declaration.
Glenn Morris [Wed, 6 May 2015 03:10:59 +0000 (20:10 -0700)]
* lisp/w32-fns.el (w32-shell-name): Silence compiler.
Dmitry Gutov [Wed, 6 May 2015 02:54:52 +0000 (05:54 +0300)]
Pulse using a timer
* lisp/cedet/pulse.el (pulse-momentary-stop-time): New variable.
(pulse-momentary-highlight-overlay): Set up the timer instead of
calling `pulse'
(http://lists.gnu.org/archive/html/emacs-devel/2015-05/).
(pulse-tick): New function.
(pulse-momentary-unhighlight): Cut off the stop time.
(pulse-delay): Update the docstring WRT to not using sit-for.
Dmitry Gutov [Wed, 6 May 2015 01:49:01 +0000 (04:49 +0300)]
Add semantic/symref/grep file patterns for ruby-mode
* lisp/cedet/semantic/symref/grep.el
(semantic-symref-filepattern-alist): Add patterns for
ruby-mode. Clarify the docstring.
Dmitry Gutov [Wed, 6 May 2015 01:35:46 +0000 (04:35 +0300)]
Don't require match
* lisp/progmodes/xref.el (xref--read-identifier): Don't require
match. That doesn't work for every command, and some identifier
completion tables are bound to be imperfect anyway.
Stefan Monnier [Wed, 6 May 2015 02:18:19 +0000 (22:18 -0400)]
* lisp/cedet/semantic/grammar.el: Fix compiler warnings (bug#20505)
(semantic-grammar--template-expand): New function.
(semantic-grammar-header, semantic-grammar-footer): Use it.
(semantic-grammar--lex-block-specs): Remove unused var `block-spec'.
(semantic-grammar-file-regexp): Refine regexp.
(semantic-grammar-eldoc-get-macro-docstring):
Use elisp-get-fnsym-args-string when available.
(semantic-idle-summary-current-symbol-info): Use new elisp-* names
instead of the old eldoc-* names.
* lisp/emacs-lisp/eldoc.el (eldoc-docstring-format-sym-doc): Move back
from elisp-mode.el. Tweak calling convention.
* lisp/progmodes/elisp-mode.el (package-user-dir): Declare.
(elisp-get-fnsym-args-string): Add `prefix' argument. Rename from
elisp--get-fnsym-args-string.
(elisp--highlight-function-argument): Add `prefix' arg.
(elisp-get-var-docstring): Rename from elisp--get-var-docstring.
(elisp--docstring-format-sym-doc): Move back to eldoc.el.
Glenn Morris [Tue, 5 May 2015 23:50:43 +0000 (19:50 -0400)]
* lisp/help-fns.el (describe-function-1):
Handle builtins with advertised calling conventions. (Bug#20479)
Nicolas Petton [Tue, 5 May 2015 20:10:32 +0000 (22:10 +0200)]
Merge branch 'seq-let'
Nicolas Petton [Tue, 5 May 2015 20:04:18 +0000 (22:04 +0200)]
Update `seq-let' documentation
* doc/lispref/sequences.texi: Update the documentation of `seq-let'
with the support of `&rest'.
Nicolas Petton [Tue, 5 May 2015 19:45:36 +0000 (21:45 +0200)]
Add support for &rest in `seq-let'
* lisp/emacs-lisp/seq.el (seq--make-bindings): Add support for `&rest'
in the argument list.
* test/automated/seq-tests.el: Add a test for parsing and binding
`&rest' in `seq-let'.
Paul Eggert [Tue, 5 May 2015 19:25:18 +0000 (12:25 -0700)]
Spelling fixes
(tiny change) Pierre Lorenzon [Tue, 5 May 2015 18:47:58 +0000 (14:47 -0400)]
* eieio-custom.el (eieio-object-value-get): Add missing increment
Fixes: debbugs:20467
(tiny change) Pierre Lorenzon [Tue, 5 May 2015 18:43:48 +0000 (14:43 -0400)]
(eieio-object-value-create): Adjust to new slots representation
Fixes: debbugs:20467
* eieio-custom.el (eieio-object-value-create):
Fix missed adjustment to new representation of slots metadata.
Nicolas Petton [Tue, 5 May 2015 18:39:40 +0000 (20:39 +0200)]
* lisp/emacs-lisp/seq.el (seq--make-bindings): Improve the docstring.
Dmitry Gutov [Tue, 5 May 2015 12:28:41 +0000 (15:28 +0300)]
Work around "Attempt to modify read-only object"
* lisp/progmodes/elisp-mode.el (elisp--xref-format): Extract from
elisp--xref-find-definitions, to work around "Attempt to modify
read-only object" error.
Dmitry Gutov [Tue, 5 May 2015 12:11:14 +0000 (15:11 +0300)]
Only skip some variables that have function counterparts
* lisp/progmodes/elisp-mode.el (elisp--xref-identifier-location):
Only skip minor-mode-named variable if it's defined in a Lisp
file, and it's in minor-mode-list (bug#20506).
* test/automated/elisp-mode-tests.el
(elisp-xref-finds-both-function-and-variable)
(elisp-xref-finds-only-function-for-minor-mode): New tests.
Dmitry Gutov [Tue, 5 May 2015 02:17:14 +0000 (05:17 +0300)]
; Update a comment
Dmitry Gutov [Tue, 5 May 2015 02:05:02 +0000 (05:05 +0300)]
Buttonize the whole line, including the number at the beginning
* lisp/progmodes/xref.el (xref--location-at-point): Revert the
previous change.
(xref--insert-xrefs): Buttonize the whole line, including the
number at the beginning.
Dmitry Gutov [Tue, 5 May 2015 01:54:01 +0000 (04:54 +0300)]
Make sure we're inside the let bindings
* lisp/progmodes/elisp-mode.el (elisp-completion-at-point):
Make sure we're inside the let bindings.
* test/automated/elisp-mode-tests.el
(elisp-completes-functions-after-let-bindings): New test.
Glenn Morris [Tue, 5 May 2015 00:46:47 +0000 (20:46 -0400)]
* lisp/cedet/semantic/grammar.el (eldoc-function-argstring)
(eldoc-docstring-format-sym-doc, eldoc-last-data-store)
(eldoc-get-fnsym-args-string, eldoc-get-var-docstring):
Remove outdated declarations.
Glenn Morris [Tue, 5 May 2015 00:38:16 +0000 (20:38 -0400)]
Replace instances of "(eval-when-compile (autoload ...))"
* lisp/gnus/gnus-art.el (nneething-get-file-name):
Declare rather than autoload.
* lisp/gnus/gnus-async.el (gnus-html-prefetch-images):
Remove pointless autoload.
* lisp/gnus/gnus-sync.el (gnus-group-topic): Autoload at run-time.
(gnus-topic-create-topic, gnus-topic-enter-dribble):
Declare rather than autoload.
* lisp/gnus/mm-archive.el (gnus-recursive-directory-files)
(mailcap-extension-to-mime): Autoload at run-time.
* lisp/gnus/mm-util.el (latin-unity-massage-name)
(latin-unity-maybe-remap, latin-unity-representations-feasible-region)
(latin-unity-representations-present-region):
Declare rather than autoload.
* lisp/gnus/mml-smime.el (epg-make-context)
(epg-passphrase-callback-function): Autoload at run-time.
(epg-context-set-signers, epg-context-result-for)
(epg-new-signature-digest-algorithm)
(epg-verify-result-to-string, epg-list-keys, epg-verify-string)
(epg-sign-string, epg-encrypt-string)
(epg-context-set-passphrase-callback, epg-sub-key-fingerprint)
(epg-configuration, epg-expand-group, epa-select-keys):
Declare rather than autoload.
* lisp/gnus/nnir.el (nnimap-change-group, nnimap-make-thread-query):
Autoload at run-time.
(gnus-group-topic-name, nnimap-buffer, nnimap-command)
(gnus-registry-get-id-key, gnus-registry-action):
Declare rather than autoload.
* lisp/gnus/nnmail.el (mail-send-and-exit): Autoload at run-time.
* lisp/gnus/spam.el (spam-stat-buffer-change-to-non-spam)
(spam-stat-buffer-change-to-spam, spam-stat-buffer-is-non-spam)
(spam-stat-buffer-is-spam, spam-stat-load, spam-stat-save)
(spam-stat-split-fancy): Remove pointless autoloads.
* lisp/net/mairix.el: Load gnus-util when compiling.
(gnus-group-read-ephemeral-group, gnus-summary-toggle-header)
(message-field-value): Declare rather than autoload.
(mairix-gnus-ephemeral-nndoc, mairix-gnus-fetch-field):
Check gnus-alive-p is fbound.
(vm-quit, vm-visit-folder, vm-select-folder-buffer)
(vm-check-for-killed-summary, vm-error-if-folder-empty)
(vm-get-header-contents, vm-select-marked-or-prefixed-messages):
Declare rather than autoload.
Glenn Morris [Tue, 5 May 2015 00:34:09 +0000 (20:34 -0400)]
* lisp/gnus/mm-view.el (epg-decrypt-string): Autoload.
Glenn Morris [Tue, 5 May 2015 00:33:01 +0000 (20:33 -0400)]
* lisp/gnus/mml-smime.el (epg-key-sub-key-list)
(epg-sub-key-capability, epg-sub-key-validity): Fix declarations.
Glenn Morris [Tue, 5 May 2015 00:22:52 +0000 (20:22 -0400)]
* lisp/progmodes/elisp-mode.el (xref-collect-references): Declare.
Glenn Morris [Tue, 5 May 2015 00:22:15 +0000 (20:22 -0400)]
* lisp/emacs-lisp/debug.el (help-xref-interned): Update declaration.
Glenn Morris [Tue, 5 May 2015 00:21:47 +0000 (20:21 -0400)]
* lisp/allout.el (epg-user-id-string, epg-key-user-id-list):
* lisp/emacs-lisp/package.el (epg-signature-status):
Fix declarations.
Glenn Morris [Tue, 5 May 2015 00:20:40 +0000 (20:20 -0400)]
* lisp/play/gametree.el (gametree-show-children-and-entry)
(gametree-apply-layout, gametree-mouse-show-subtree)
(gametree-mouse-hide-subtree): Replace obsolete outline aliases.
Glenn Morris [Tue, 5 May 2015 00:17:35 +0000 (20:17 -0400)]
* lisp/emacs-lisp/check-declare.el (check-declare-verify):
Handle cl-defgeneric, cl-defmethod.
Dmitry Gutov [Mon, 4 May 2015 23:58:02 +0000 (02:58 +0300)]
Highlight both type and symbol name
* lisp/progmodes/elisp-mode.el (elisp--xref-find-definitions):
Highlight both type and symbol name.
Dmitry Gutov [Mon, 4 May 2015 23:44:20 +0000 (02:44 +0300)]
Insert, highlight and align line numbers in xref output
* lisp/progmodes/etags.el (xref-location-line): Specialize for
xref-etags-location.
* lisp/progmodes/xref.el (xref-location-line): New generic method.
(xref-file-location): Add reader for the line slot.
(xref--location-at-point): Skip to the `xref-location' property.
(xref--collect-reference): Drop the line number from description.
(xref--insert-xrefs): Insert, highlight and align line numbers.
Daniel Colascione [Mon, 4 May 2015 22:40:55 +0000 (15:40 -0700)]
Fix previous commit
Dmitry Gutov [Mon, 4 May 2015 20:16:12 +0000 (23:16 +0300)]
Don't pulse the indentation, or the newline
* lisp/cedet/pulse.el (pulse-lighten-highlight)
(pulse-reset-face): Fall back to the inherited background
attribute in FACE.
(pulse-momentary-highlight-region): Add autoload cookie.
* lisp/progmodes/xref.el (xref--maybe-pulse): Don't highlight the
indentation, or the newline, if the line's non-empty
(http://lists.gnu.org/archive/html/emacs-devel/2015-05/msg00118.html).
Daniel Colascione [Mon, 4 May 2015 18:46:12 +0000 (11:46 -0700)]
Add `save-mark-and-excursion', which has the old `save-excursion' behavior
* doc/lispref/positions.texi (Excursions): Document
`save-mark-and-excursion'.
* lisp/font-lock.el (font-lock-fontify-block): Use
`save-mark-and-excursion' instead of `save-excursion', restoring
Emacs 24 behavior.
* lisp/simple.el (save-mark-and-excursion--save)
(save-mark-and-excursion--restore): New functions.
(save-mark-and-excursion): New user macro.
* src/editfns.c (Fsave_excursion): Mention
`save-mark-and-excursion' in `save-excursion' documentation.
Dmitry Gutov [Mon, 4 May 2015 15:50:44 +0000 (18:50 +0300)]
Classify lone symbol inside let varlist as variable
* lisp/progmodes/elisp-mode.el (elisp-completion-at-point):
Classify lone symbol inside let varlist as variable.
* test/automated/elisp-mode-tests.el (completest-variables-in-let-bindings):
New test.
Dmitry Gutov [Mon, 4 May 2015 15:09:33 +0000 (18:09 +0300)]
Add xref-pulse-on-jump
* lisp/cedet/pulse.el (pulse-momentary-highlight-one-line):
Add autoload cookie.
* lisp/progmodes/xref.el (xref-pulse-on-jump): New option.
(xref--maybe-pulse): New function.
(xref-pop-marker-stack, xref--pop-to-location)
(xref--display-position): Use it.
(xref--location-at-point): Use back-to-indentation.
Stefan Monnier [Mon, 4 May 2015 15:32:39 +0000 (11:32 -0400)]
* lisp/org/org-{macs,list}.el: Fix lexical warnings
* lisp/org/org-list.el (org-list-struct): Remove unused var `ind'.
(org-list-get-next-item, org-list-get-prev-item)
(org-list-get-children): Mark unused arg `struct'.
(org-list-use-alpha-bul-p): Remove unused var `bul'.
(org-toggle-checkbox): Mark unused var.
(org-update-checkbox-count): Remove unused var `box-num'.
(org-adapt-indentation): Declare.
(org-list-parse-list): Declare var instead of adding a dummy duplicate.
(org-list-send-list): Remove unused var `txt'.
(org-list-to-latex, org-list-to-texinfo): Mark unused arg `params'.
(org-list-to-subtree): Add prefix to dyn-bind var, and declare them.
* lisp/org/org-macs.el: Use `declare'.
(org-with-limited-levels): Declare dyn-bound vars.
Eli Zaretskii [Mon, 4 May 2015 14:46:30 +0000 (17:46 +0300)]
Fix minor issues with CEDET on MS-Windows
* lisp/cedet/semantic/symref/idutils.el
(semantic-symref-parse-tool-output-one-line): Fix the search
regexp to match MS-Windows file names with drive letters.
(Bug#19468)
* lisp/cedet/semantic/symref/grep.el
(semantic-symref-grep-use-template): Remove "--color=always" from
Grep switches on MS-Windows.
(semantic-symref-grep-shell): Use shell-file-name as the default
value, so this works not only on Posix platforms.
(semantic-symref-perform-search): Use shell-quote-argument instead
of literal '..' for portable quoting of Grep command-line
argument. Use shell-command-switch instead of a literal "-c".
* lisp/cedet/semantic/bovine/gcc.el
(semantic-gcc-get-include-paths): Use file-name-absolute-p to test
for an absolute file name in a portable way.
Artur Malabarba [Mon, 4 May 2015 13:09:29 +0000 (14:09 +0100)]
* lisp/emacs-lisp/package.el: Remove `package--silence' variable
(package-import-keyring, package-refresh-contents)
(package-compute-transaction, package--save-selected-packages)
(package-install-from-archive, package-delete)
(package-menu--perform-transaction): Use `inhibit-message'
instead.
(package--compile): Set `warning-minimum-level' to :error.
Stefan Monnier [Mon, 4 May 2015 02:24:20 +0000 (22:24 -0400)]
* lisp/term/screen.el (xterm-screen-extra-capabilities): New custom
(terminal-init-screen): Use it (bug#20356).
* lisp/term/xterm.el: Provide `term/xterm' instead of `xterm'.
(xterm--extra-capabilities-type): New const.
(xterm-extra-capabilities): Use it.
(xterm--version-handler): Lower the pseudo-version for `screen'.
Dmitry Gutov [Sun, 3 May 2015 23:52:16 +0000 (02:52 +0300)]
; xref--insert-xrefs: Add (require 'compile)
Dmitry Gutov [Sun, 3 May 2015 21:39:06 +0000 (00:39 +0300)]
xref--insert-xrefs: Tweak the faces
* lisp/progmodes/xref.el (xref--insert-xrefs): Tweak the faces.
Always insert a newline at the end (to avoid mouse-face background
tail at the last line).
Dmitry Gutov [Sun, 3 May 2015 20:57:38 +0000 (23:57 +0300)]
elisp-completion-at-point: Prioritize being quoted over funpos
* lisp/progmodes/elisp-mode.el (elisp-completion-at-point):
Only consider function position when not inside quoted form
(bug#20425).
* test/automated/elisp-mode-tests.el: New file.
Dmitry Gutov [Sun, 3 May 2015 18:32:40 +0000 (21:32 +0300)]
Stop vc-print-log from jumping to the top
* lisp/vc/vc.el (vc-print-log-internal): Pass nil
GOTO-LOCATION-FUNC to vc-log-internal-common when WORKING-REVISION
is not specified.
(vc-incoming-outgoing-internal): Always pass nil.
(vc-log-internal-common): When GOTO-LOCATION-FUNC is nil, don't
call it, and don't set vc-sentinel-movepoint (bug#15322).
(vc-print-root-log): Don't fetch the root working revision, nor
pass it to vc-print-log-internal.
Michael Vehrs [Sat, 2 May 2015 14:08:54 +0000 (17:08 +0300)]
Fix display of keyboard layouts for right-to-left scripts
* lisp/international/quail.el (quail-insert-kbd-layout): Force
left-to-right paragraph direction.
K. Handa [Sat, 2 May 2015 13:39:54 +0000 (22:39 +0900)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
K. Handa [Sat, 2 May 2015 13:38:36 +0000 (22:38 +0900)]
* cmds.c (internal_self_insert): When we insert spaces for
padding, set point before the padding spaces, not after them.
Nicolas Petton [Sat, 2 May 2015 12:26:37 +0000 (14:26 +0200)]
* lisp/emacs-lisp/seq.el (seq-p): New alias to `sequencep'.
Dmitry Gutov [Sat, 2 May 2015 10:11:07 +0000 (13:11 +0300)]
Fix etags-xref-find for references
* lisp/progmodes/elisp-mode.el (elisp--xref-find-references): Use `cl-mapcan'.
* lisp/progmodes/etags.el (etags-xref-find): Ditto. Prompt for
directory if no tags tables are loaded (bug#19468).
Philipp Stephani [Sat, 2 May 2015 09:15:46 +0000 (12:15 +0300)]
Update the options in whitespace-style defcustom
* lisp/whitespace.el (whitespace-style): Use `set' instead of a
`repeat' because the option is really set-like. Add missing
options. Reorder options to match the order in the
documentation. (Bug#20346)
Eli Zaretskii [Sat, 2 May 2015 09:01:04 +0000 (12:01 +0300)]
Fix error diagnostics of c-macro-expand
* lisp/progmodes/cmacexp.el (c-macro-expansion): Don't bail out
too early if no start-marker string was found -- that generally
means cpp exited abnormally, and we still want to show its error
messages to the user.
Eli Zaretskii [Sat, 2 May 2015 06:58:22 +0000 (09:58 +0300)]
Don't require Texinfo 5.0 for Emacs documentation
* doc/emacs/docstyle.texi: Use "@set txicodequoteundirected" and
"@set txicodequotebacktick" instead of "@codequotebacktick on" and
"@codequoteundirected on", respectively, to avoid requiring
Texinfo 5.x for Emacs documentation.
Dmitry Gutov [Fri, 1 May 2015 22:03:56 +0000 (01:03 +0300)]
; * xref.el (xref-collect-references): Simplify.
Simen Heggestøyl [Fri, 1 May 2015 21:24:10 +0000 (23:24 +0200)]
* lisp/files.el (pwd):
When called with a prefix argument, insert the current default
directory at point.
Stefan Monnier [Fri, 1 May 2015 21:11:19 +0000 (17:11 -0400)]
* lisp/isearch.el (isearch-mode-map): Allow backspace remapping
* lisp/isearch.el (isearch-mode-map): Don't inhibit
function-key-map remapping for backspace (bug#20466).
Dmitry Gutov [Fri, 1 May 2015 18:54:33 +0000 (21:54 +0300)]
Implement xref-find-references in etags and elisp-mode
* lisp/progmodes/elisp-mode.el (elisp--xref-find-references): New function.
(elisp-xref-find): Use it.
* lisp/progmodes/etags.el (etags-xref-find): Use `xref-collect-references'.
* lisp/progmodes/xref.el (xref-collect-references):
(xref--collect-reference): New functions.
Dmitry Gutov [Fri, 1 May 2015 17:36:23 +0000 (20:36 +0300)]
; ede-locate-create/update-root-database: Fix docstring typo
Paul Eggert [Fri, 1 May 2015 19:57:44 +0000 (12:57 -0700)]
Prefer plain characters to Texinfo circumlocutions
For example, prefer 'François' to 'Fran\c{c}ois', 'Fran\c cois',
'Fran@,{c}ois' or 'Francois' (all of which were used!) in Texinfo sources.
Paul Eggert [Fri, 1 May 2015 19:05:53 +0000 (12:05 -0700)]
Fix single-quoting style in PDF manuals
The PDF versions of the GNU manuals used curved single quotes to
represent grave accent and apostrophe, which made it a pain to cut
and paste code examples from them. Fix the PDF versions to use
grave accent and apostrophe for Lisp source code, keystrokes, etc.
This change does not affect the info files, nor does it affect
ordinary uses of curved single quotes in PDF.
* doc/emacs/docstyle.texi: New file, which specifies treatment for
grave accent and apostrophe, as well as the document encoding.
* doc/emacs/emacs-xtra.texi, doc/emacs/emacs.texi:
* doc/lispintro/emacs-lisp-intro.texi:
* doc/lispref/back.texi, doc/lispref/book-spine.texi:
* doc/lispref/elisp.texi, doc/lispref/lay-flat.texi:
* doc/misc/ada-mode.texi, doc/misc/auth.texi:
* doc/misc/autotype.texi, doc/misc/bovine.texi, doc/misc/calc.texi:
* doc/misc/cc-mode.texi, doc/misc/cl.texi, doc/misc/dbus.texi:
* doc/misc/dired-x.texi, doc/misc/ebrowse.texi, doc/misc/ede.texi:
* doc/misc/ediff.texi, doc/misc/edt.texi, doc/misc/efaq-w32.texi:
* doc/misc/efaq.texi, doc/misc/eieio.texi, doc/misc/emacs-gnutls.texi:
* doc/misc/emacs-mime.texi, doc/misc/epa.texi, doc/misc/erc.texi:
* doc/misc/ert.texi, doc/misc/eshell.texi, doc/misc/eudc.texi:
* doc/misc/eww.texi, doc/misc/flymake.texi, doc/misc/forms.texi:
* doc/misc/gnus-coding.texi, doc/misc/gnus-faq.texi:
* doc/misc/gnus.texi, doc/misc/htmlfontify.texi:
* doc/misc/idlwave.texi, doc/misc/ido.texi, doc/misc/info.texi:
* doc/misc/mairix-el.texi, doc/misc/message.texi, doc/misc/mh-e.texi:
* doc/misc/newsticker.texi, doc/misc/nxml-mode.texi:
* doc/misc/octave-mode.texi, doc/misc/org.texi, doc/misc/pcl-cvs.texi:
* doc/misc/pgg.texi, doc/misc/rcirc.texi, doc/misc/reftex.texi:
* doc/misc/remember.texi, doc/misc/sasl.texi, doc/misc/sc.texi:
* doc/misc/semantic.texi, doc/misc/ses.texi, doc/misc/sieve.texi:
* doc/misc/smtpmail.texi, doc/misc/speedbar.texi:
* doc/misc/srecode.texi, doc/misc/todo-mode.texi, doc/misc/tramp.texi:
* doc/misc/url.texi, doc/misc/vhdl-mode.texi, doc/misc/vip.texi:
* doc/misc/viper.texi, doc/misc/widget.texi, doc/misc/wisent.texi:
* doc/misc/woman.texi:
Use it instead of '@documentencoding UTF-8', to lessen the need for
global changes like this in the future.
* doc/emacs/Makefile.in (EMACS_XTRA):
* doc/lispintro/Makefile.in (srcs):
* doc/lispref/Makefile.in (srcs):
Add dependency on docstyle.texi.
* doc/misc/Makefile.in (style): New macro.
(${buildinfodir}/%.info, %.dvi, %.pdf, %.html)
(${buildinfodir}/ccmode.info, ${buildinfodir}/efaq%.info, gnus_deps):
Use it.
Glenn Morris [Fri, 1 May 2015 18:09:06 +0000 (14:09 -0400)]
* test/automated/cl-lib-tests.el (cl-lib-adjoin-test): Fix it.
Glenn Morris [Fri, 1 May 2015 17:40:31 +0000 (13:40 -0400)]
* lisp/emacs-lisp/pcase.el (get-edebug-spec, edebug-match)
(help-fns--signature): Declare.
Glenn Morris [Fri, 1 May 2015 17:39:23 +0000 (13:39 -0400)]
* lisp/emacs-lisp/pcase.el (pcase--make-docstring): Require help-fns.
Nicolas Petton [Fri, 1 May 2015 17:30:56 +0000 (19:30 +0200)]
New macro seq-let, providing destructuring support to seq.el
* lisp/emacs-lisp/seq.el (seq-let): New macro. `seq-let' is similar
to `cl-destructuring-bind' but works on all sequence types supported
by `seq.el'. Bump version number to 1.6.
* test/automated/seq-tests.el: Add tests for seq-let.
* doc/lispref/sequences.texi: Add documentation for seq-let.
Przemysław Wojnowski [Thu, 30 Apr 2015 21:48:49 +0000 (23:48 +0200)]
; Add cl-adjoin tests
* test/automated/cl-lib-tests.el (cl-lib-adjoin-test): New tests.
Pontus Michael [Fri, 1 May 2015 17:20:18 +0000 (13:20 -0400)]
* lisp/simple.el (blink-matching-open): Better behavior in minibuffer
Przemysław Wojnowski [Tue, 28 Apr 2015 16:13:18 +0000 (18:13 +0200)]
; Add class name to error message
* lisp/emacs-lisp/eieio-core.el (eieio-oref): Add class name to error
message to ease finding offending code.
Glenn Morris [Fri, 1 May 2015 15:29:18 +0000 (08:29 -0700)]
* lisp/emacs-lisp/ert.el (ert--special-operator-p): Fix previous.
Artur Malabarba [Fri, 1 May 2015 14:23:52 +0000 (15:23 +0100)]
* lisp/emacs-lisp/bytecomp.el: Revert "Silence noninteractive compilations"
This reverts commit
9a7ddde977378cb5276a81476ae458889c403267.
This reverts commit
3c0ea587daf8b17960b90603a70e3ac4057d883d.
With message: "* lisp/emacs-lisp/bytecomp.el: Use `inhibit-message'".
(Bug#20445).
K. Handa [Fri, 1 May 2015 13:45:27 +0000 (22:45 +0900)]
* mule-cmds.el (input-method-use-echo-area): Change :type to
'boolean.
Lars Magne Ingebrigtsen [Fri, 1 May 2015 13:28:08 +0000 (15:28 +0200)]
Start using proportional fonts in eww by default
* lisp/net/shr.el (shr-use-fonts): Switch the default to t, since
it seems to work well.
Lars Magne Ingebrigtsen [Thu, 30 Apr 2015 19:07:07 +0000 (21:07 +0200)]
Fix links in tables in shr
* lisp/net/shr.el: Remove `shr-inhibit-decoration', because that
makes (some) links in tables not work.
Glenn Morris [Fri, 1 May 2015 10:17:48 +0000 (06:17 -0400)]
; Auto-commit of loaddefs files.
Jan D [Fri, 1 May 2015 08:22:29 +0000 (10:22 +0200)]
(ns-get-cut-buffer-internal): Remove this alias.
* lisp/term/ns-win.el (ns-get-cut-buffer-internal): Remove this alias.
Glenn Morris [Fri, 1 May 2015 01:18:52 +0000 (21:18 -0400)]
* lisp/emacs-lisp/ert.el (ert--special-operator-p):
Update for 2015-02-08 change to indirect-function.