]> git.eshelyaron.com Git - emacs.git/log
emacs.git
9 years agons-win.el (ns-paste-secondary): Use gui-get-selection.
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.

9 years ago* lisp/emacs-lisp/package.el: New "external" package status
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.

9 years ago* lisp/mail/rmail.el: Use lexical-binding
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.

9 years ago* Makefile.in (change-history-commit): Add missing piece of previous.
Glenn Morris [Thu, 7 May 2015 02:01:02 +0000 (22:01 -0400)]
* Makefile.in (change-history-commit): Add missing piece of previous.

9 years agoAvoid unnecessary bumping of Makefile.in's timestamp.
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.

9 years ago* Makefile.in: Don't always insist on removing existing "ChangeLog".
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".

9 years ago* build-aux/gitlog-to-emacslog: Allow specification of output.
Glenn Morris [Thu, 7 May 2015 01:37:09 +0000 (21:37 -0400)]
* build-aux/gitlog-to-emacslog: Allow specification of output.

9 years ago* admin/update_autogen: Add option to update ChangeLog.
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.

9 years ago* lisp/subr.el (delete-dups): Pre-size the hashtable.
Stefan Monnier [Thu, 7 May 2015 01:13:56 +0000 (21:13 -0400)]
* lisp/subr.el (delete-dups): Pre-size the hashtable.

9 years ago(define-modify-macro): Make sure cl--arglist-args is defined
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).

9 years ago* Makefile.in (change-history-nocommit): New.
Glenn Morris [Wed, 6 May 2015 21:02:06 +0000 (17:02 -0400)]
* Makefile.in (change-history-nocommit): New.

9 years agoOnly cancel timer when it is non-nil
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).

9 years agoQuieten cedet compilation
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.

9 years agoQuieten cc-mode compilation
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.

9 years agolisp/subr.el (delete-dups): Avoid nreverse.
Oleh Krehel [Wed, 6 May 2015 19:30:54 +0000 (21:30 +0200)]
lisp/subr.el (delete-dups): Avoid nreverse.

9 years ago* lisp/subr.el (delete-dups): Make it destructive again.
Artur Malabarba [Wed, 6 May 2015 18:27:43 +0000 (19:27 +0100)]
* lisp/subr.el (delete-dups): Make it destructive again.

9 years ago* doc/lispref/sequences.texi (Sequence Functions): Fix quoting.
Paul Eggert [Wed, 6 May 2015 17:56:11 +0000 (10:56 -0700)]
* doc/lispref/sequences.texi (Sequence Functions): Fix quoting.

9 years ago; * etc/NEWS: Add entry as a reminder to update the elisp manual.
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.

9 years ago* lisp/emacs-lisp/testcover.el: Don't use edebug--read (bug#20487)
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'.

9 years agolisp/subr.el (delete-dups): Use a hash table
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'.

9 years agoCEDET: Avoid `oref' on classes in a few more cases
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'.

9 years ago* lisp/cedet/semantic/symref/grep.el: Fix unused var warnings
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'.

9 years agoCEDET (srecode-compile-inserter): Avoid `oref' on classes
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'.

9 years agoClean up pulse.el a little
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.

9 years ago; Auto-commit of loaddefs files.
Glenn Morris [Wed, 6 May 2015 10:19:35 +0000 (06:19 -0400)]
; Auto-commit of loaddefs files.

9 years agoSupport the biblatex journaltitle field
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.

9 years agoMinor declare-function improvement
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)

9 years ago* lisp/progmodes/js.el (js--optimize-arglist): Remove declaration.
Glenn Morris [Wed, 6 May 2015 03:11:22 +0000 (20:11 -0700)]
* lisp/progmodes/js.el (js--optimize-arglist): Remove declaration.

9 years ago* lisp/w32-fns.el (w32-shell-name): Silence compiler.
Glenn Morris [Wed, 6 May 2015 03:10:59 +0000 (20:10 -0700)]
* lisp/w32-fns.el (w32-shell-name): Silence compiler.

9 years agoPulse using a timer
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.

9 years agoAdd semantic/symref/grep file patterns for ruby-mode
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.

9 years agoDon't require match
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.

9 years ago* lisp/cedet/semantic/grammar.el: Fix compiler warnings (bug#20505)
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.

9 years ago* lisp/help-fns.el (describe-function-1):
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)

9 years agoMerge branch 'seq-let'
Nicolas Petton [Tue, 5 May 2015 20:10:32 +0000 (22:10 +0200)]
Merge branch 'seq-let'

9 years agoUpdate `seq-let' documentation
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'.

9 years agoAdd support for &rest in `seq-let'
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'.

9 years agoSpelling fixes
Paul Eggert [Tue, 5 May 2015 19:25:18 +0000 (12:25 -0700)]
Spelling fixes

9 years ago* eieio-custom.el (eieio-object-value-get): Add missing increment
(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
9 years ago(eieio-object-value-create): Adjust to new slots representation
(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.

9 years ago* lisp/emacs-lisp/seq.el (seq--make-bindings): Improve the docstring.
Nicolas Petton [Tue, 5 May 2015 18:39:40 +0000 (20:39 +0200)]
* lisp/emacs-lisp/seq.el (seq--make-bindings): Improve the docstring.

9 years agoWork around "Attempt to modify read-only object"
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.

9 years agoOnly skip some variables that have function counterparts
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.

9 years ago; Update a comment
Dmitry Gutov [Tue, 5 May 2015 02:17:14 +0000 (05:17 +0300)]
; Update a comment

9 years agoButtonize the whole line, including the number at the beginning
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.

9 years agoMake sure we're inside the let bindings
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.

9 years ago* lisp/cedet/semantic/grammar.el (eldoc-function-argstring)
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.

9 years agoReplace instances of "(eval-when-compile (autoload ...))"
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.

9 years ago* lisp/gnus/mm-view.el (epg-decrypt-string): Autoload.
Glenn Morris [Tue, 5 May 2015 00:34:09 +0000 (20:34 -0400)]
* lisp/gnus/mm-view.el (epg-decrypt-string): Autoload.

9 years ago* lisp/gnus/mml-smime.el (epg-key-sub-key-list)
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.

9 years ago* lisp/progmodes/elisp-mode.el (xref-collect-references): Declare.
Glenn Morris [Tue, 5 May 2015 00:22:52 +0000 (20:22 -0400)]
* lisp/progmodes/elisp-mode.el (xref-collect-references): Declare.

9 years ago* lisp/emacs-lisp/debug.el (help-xref-interned): Update declaration.
Glenn Morris [Tue, 5 May 2015 00:22:15 +0000 (20:22 -0400)]
* lisp/emacs-lisp/debug.el (help-xref-interned): Update declaration.

9 years ago* lisp/allout.el (epg-user-id-string, epg-key-user-id-list):
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.

9 years ago* lisp/play/gametree.el (gametree-show-children-and-entry)
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.

9 years ago* lisp/emacs-lisp/check-declare.el (check-declare-verify):
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.

9 years agoHighlight both type and symbol name
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.

9 years agoInsert, highlight and align line numbers in xref output
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.

9 years agoFix previous commit
Daniel Colascione [Mon, 4 May 2015 22:40:55 +0000 (15:40 -0700)]
Fix previous commit

9 years agoDon't pulse the indentation, or the newline
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).

9 years agoAdd `save-mark-and-excursion', which has the old `save-excursion' behavior
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.

9 years agoClassify lone symbol inside let varlist as variable
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.

9 years agoAdd xref-pulse-on-jump
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.

9 years ago* lisp/org/org-{macs,list}.el: Fix lexical warnings
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.

9 years agoFix minor issues with CEDET on MS-Windows
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.

9 years ago* lisp/emacs-lisp/package.el: Remove `package--silence' variable
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.

9 years ago* lisp/term/screen.el (xterm-screen-extra-capabilities): New custom
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'.

9 years ago; xref--insert-xrefs: Add (require 'compile)
Dmitry Gutov [Sun, 3 May 2015 23:52:16 +0000 (02:52 +0300)]
; xref--insert-xrefs: Add (require 'compile)

9 years agoxref--insert-xrefs: Tweak the faces
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).

9 years agoelisp-completion-at-point: Prioritize being quoted over funpos
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.

9 years agoStop vc-print-log from jumping to the top
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.

9 years agoFix display of keyboard layouts for right-to-left scripts
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.

9 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
K. Handa [Sat, 2 May 2015 13:39:54 +0000 (22:39 +0900)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

9 years ago* cmds.c (internal_self_insert): When we insert spaces for
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.

9 years ago* lisp/emacs-lisp/seq.el (seq-p): New alias to `sequencep'.
Nicolas Petton [Sat, 2 May 2015 12:26:37 +0000 (14:26 +0200)]
* lisp/emacs-lisp/seq.el (seq-p): New alias to `sequencep'.

9 years agoFix etags-xref-find for references
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).

9 years agoUpdate the options in whitespace-style defcustom
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)

9 years agoFix error diagnostics of c-macro-expand
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.

9 years agoDon't require Texinfo 5.0 for Emacs documentation
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.

9 years ago; * xref.el (xref-collect-references): Simplify.
Dmitry Gutov [Fri, 1 May 2015 22:03:56 +0000 (01:03 +0300)]
; * xref.el (xref-collect-references): Simplify.

9 years ago* lisp/files.el (pwd):
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.

9 years ago* lisp/isearch.el (isearch-mode-map): Allow backspace remapping
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).

9 years agoImplement xref-find-references in etags and elisp-mode
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.

9 years ago; ede-locate-create/update-root-database: Fix docstring typo
Dmitry Gutov [Fri, 1 May 2015 17:36:23 +0000 (20:36 +0300)]
; ede-locate-create/update-root-database: Fix docstring typo

9 years agoPrefer plain characters to Texinfo circumlocutions
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.

9 years agoFix single-quoting style in PDF manuals
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.

9 years ago* test/automated/cl-lib-tests.el (cl-lib-adjoin-test): Fix 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.

9 years ago* lisp/emacs-lisp/pcase.el (get-edebug-spec, edebug-match)
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.

9 years ago* lisp/emacs-lisp/pcase.el (pcase--make-docstring): Require help-fns.
Glenn Morris [Fri, 1 May 2015 17:39:23 +0000 (13:39 -0400)]
* lisp/emacs-lisp/pcase.el (pcase--make-docstring): Require help-fns.

9 years agoNew macro seq-let, providing destructuring support to seq.el
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.

9 years ago; Add cl-adjoin tests
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.

9 years ago* lisp/simple.el (blink-matching-open): Better behavior in minibuffer
Pontus Michael [Fri, 1 May 2015 17:20:18 +0000 (13:20 -0400)]
* lisp/simple.el (blink-matching-open): Better behavior in minibuffer

9 years ago; Add class name to error message
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.

9 years ago* lisp/emacs-lisp/ert.el (ert--special-operator-p): Fix previous.
Glenn Morris [Fri, 1 May 2015 15:29:18 +0000 (08:29 -0700)]
* lisp/emacs-lisp/ert.el (ert--special-operator-p): Fix previous.

9 years ago* lisp/emacs-lisp/bytecomp.el: Revert "Silence noninteractive compilations"
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).

9 years ago* mule-cmds.el (input-method-use-echo-area): Change :type to
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.

9 years agoStart using proportional fonts in eww by default
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.

9 years agoFix links in tables in shr
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.

9 years ago; Auto-commit of loaddefs files.
Glenn Morris [Fri, 1 May 2015 10:17:48 +0000 (06:17 -0400)]
; Auto-commit of loaddefs files.

9 years ago(ns-get-cut-buffer-internal): Remove this alias.
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.

9 years ago* lisp/emacs-lisp/ert.el (ert--special-operator-p):
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.