]> code.delx.au - gnu-emacs/log
gnu-emacs
9 years agosemantic-symref-regexp: Allow to input an arbitrary string
Dmitry Gutov [Sun, 10 May 2015 00:49:11 +0000 (03:49 +0300)]
semantic-symref-regexp: Allow to input an arbitrary string

* lisp/cedet/semantic/symref/list.el (semantic-symref-regexp):
Allow to input an arbitrary string interactively.

9 years agoRemove tag-symbol-match-p from etags-xref-find-definitions-tag-order
Dmitry Gutov [Sat, 9 May 2015 21:36:46 +0000 (00:36 +0300)]
Remove tag-symbol-match-p from etags-xref-find-definitions-tag-order

* lisp/progmodes/etags.el (etags-xref-find-definitions-tag-order):
Remove tag-symbol-match-p from the default value
(http://lists.gnu.org/archive/html/emacs-devel/2015-05/msg00292.html).

9 years agoDeclare find-tag obsolete
Dmitry Gutov [Fri, 8 May 2015 00:06:42 +0000 (03:06 +0300)]
Declare find-tag obsolete

* lisp/progmodes/etags.el (find-tag): Declare obsolete in favor of
xref-find-definitions.

9 years agoDraw composite string correctly (Bug#20537).
Jan D [Sun, 10 May 2015 17:30:39 +0000 (19:30 +0200)]
Draw composite string correctly (Bug#20537).

* nsterm.m (ns_draw_composite_glyph_string_foreground): New function.
(ns_draw_glyph_string): Call it (Bug#20537).

9 years ago; Auto-commit of ChangeLog files.
Glenn Morris [Sun, 10 May 2015 10:24:00 +0000 (06:24 -0400)]
; Auto-commit of ChangeLog files.

9 years agoAvoid infloop in ERC
Eli Zaretskii [Sat, 9 May 2015 13:06:48 +0000 (16:06 +0300)]
Avoid infloop in ERC

* lisp/simple.el (line-move-to-column): Ignore field boundaries
while computing line beginning position.  (Bug#20498)

9 years ago; Auto-commit of loaddefs files.
Glenn Morris [Sat, 9 May 2015 10:24:38 +0000 (06:24 -0400)]
; Auto-commit of loaddefs files.

9 years ago* Makefile.in (ChangeLog): No longer pass "srcprefix"; cd instead.
Glenn Morris [Sat, 9 May 2015 01:34:35 +0000 (21:34 -0400)]
* Makefile.in (ChangeLog): No longer pass "srcprefix"; cd instead.

* build-aux/gitlog-to-emacslog: Check called from right directory.
(srcprefix): Remove.

9 years ago* build-aux/gitlog-to-emacslog: Get rid of "distprefix".
Glenn Morris [Sat, 9 May 2015 01:15:48 +0000 (21:15 -0400)]
* build-aux/gitlog-to-emacslog: Get rid of "distprefix".

* Makefile.in (ChangeLog): No longer pass "distprefix".
* make-dist: Update "make ChangeLog" syntax for the above change.

9 years ago* build-aux/gitlog-to-emacslog: Don't hard-code "ChangeLog.2".
Glenn Morris [Sat, 9 May 2015 01:02:36 +0000 (21:02 -0400)]
* build-aux/gitlog-to-emacslog: Don't hard-code "ChangeLog.2".

* Makefile.in (ChangeLog): Pass -n to gitlog-to-emacslog.

9 years ago* build-aux/gitlog-to-emacslog: Add "for earlier changes" to footer.
Glenn Morris [Sat, 9 May 2015 00:55:41 +0000 (20:55 -0400)]
* build-aux/gitlog-to-emacslog: Add "for earlier changes" to footer.

9 years agoAdd command-line option-parsing to gitlog-to-emacslog.
Glenn Morris [Sat, 9 May 2015 00:45:22 +0000 (20:45 -0400)]
Add command-line option-parsing to gitlog-to-emacslog.

* build-aux/gitlog-to-emacslog: Add command-line options.
By default, refuse to remove an existing output file.
* Makefile.in (CHANGELOG): Update default.
(ChangeLog): Do not test for existing file.
(change-history-nocommit): Ensure temp file does not exist.

9 years agoQuieten --without-x compilation.
Glenn Morris [Sat, 9 May 2015 00:24:37 +0000 (20:24 -0400)]
Quieten --without-x compilation.

* lisp/term/common-win.el: Provide a feature.
* lisp/term/x-win.el (term/common-win): Require it.

9 years ago* lisp/dired-aux.el (dired-do-print): Require lpr.
Glenn Morris [Sat, 9 May 2015 00:14:42 +0000 (20:14 -0400)]
* lisp/dired-aux.el (dired-do-print): Require lpr.

9 years agoQuieten compilation, eg in --without-x builds.
Glenn Morris [Sat, 9 May 2015 00:13:47 +0000 (20:13 -0400)]
Quieten compilation, eg in --without-x builds.

* lisp/dired-aux.el (lpr-printer-switch):
* lisp/frame.el (tool-bar-height):
* lisp/linum.el (font-info):
* lisp/window.el (font-info, overflow-newline-into-fringe)
(tool-bar-height):
* lisp/emacs-lisp/package-x.el (tar-data-buffer):
* lisp/gnus/gnus-util.el (iswitchb-mode):
* lisp/mail/rmailmm.el (libxml-parse-html-region):
* lisp/net/nsm.el (gnutls-peer-status)
(gnutls-peer-status-warning-describe):
* lisp/net/shr.el (libxml-parse-xml-region):
* lisp/url/url-http.el (gnutls-peer-status): Declare.

9 years agoCEDET (srecode-pop, srecode-peek): Don't use `subclass'
Stefan Monnier [Fri, 8 May 2015 17:28:57 +0000 (13:28 -0400)]
CEDET (srecode-pop, srecode-peek): Don't use `subclass'

* lisp/cedet/srecode/insert.el (srecode-pop, srecode-peek): Don't use
`subclass' since they're never called with a class.
(srecode-insert-method, srecode-insert-subtemplate): Avoid obsolete
srecode-dictionary-child-p.

9 years agohelp--binding-locus: Document argument POSITION.
Nicolas Richard [Fri, 8 May 2015 15:26:20 +0000 (17:26 +0200)]
help--binding-locus: Document argument POSITION.

* lisp/help.el (help--binding-locus): Document argument POSITION. (bug#20530)

9 years agoMerge from gnulib.
Paul Eggert [Fri, 8 May 2015 15:05:25 +0000 (08:05 -0700)]
Merge from gnulib.

* doc/misc/texinfo.tex: Get latest version.

9 years agoffap.el (ffap-read-file-or-url): Fix completing-read call
Oleh Krehel [Fri, 8 May 2015 14:43:21 +0000 (16:43 +0200)]
ffap.el (ffap-read-file-or-url): Fix completing-read call

* lisp/ffap.el (ffap-read-file-or-url): The HIST argument of
  `completing-read' should be a symbol.

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

9 years agoVerify file modifications by other programs
Eli Zaretskii [Fri, 8 May 2015 09:20:16 +0000 (12:20 +0300)]
Verify file modifications by other programs

* src/filelock.c (lock_file): Check whether the file was modified
since it was visited even if 'create-lockfiles' is nil.  (Bug#18828)

9 years agoFix keyboard macros that include function keys
Eli Zaretskii [Fri, 8 May 2015 09:11:05 +0000 (12:11 +0300)]
Fix keyboard macros that include function keys

* src/keyboard.c (read_char_minibuf_menu_prompt): Record function
keys in the macro before returning.  (Bug#20454)

9 years ago* build-aux/gitlog-to-changelog: Treat "Tiny-change" like
Glenn Morris [Fri, 8 May 2015 06:10:57 +0000 (23:10 -0700)]
* build-aux/gitlog-to-changelog: Treat "Tiny-change" like

"Copyright-paperwork-exempt".  (Bug#20324)

9 years ago* lisp/vc/log-edit.el: Handle "(tiny change)". (Bug#20324)
Glenn Morris [Fri, 8 May 2015 06:03:02 +0000 (23:03 -0700)]
* lisp/vc/log-edit.el: Handle "(tiny change)".  (Bug#20324)
(log-edit-rewrite-tiny-change): New variable.
(log-edit-insert-changelog): Maybe add "Copyright-paperwork-exempt".
(log-edit-changelog-ours-p): Set log-edit-author to a cons.
* etc/NEWS: Mention this.

9 years ago* lisp/calc/calc.el (math-zerop): Declare.
Glenn Morris [Fri, 8 May 2015 05:42:37 +0000 (22:42 -0700)]
* lisp/calc/calc.el (math-zerop): Declare.

9 years ago* lisp/emacs-lisp/eieio-opt.el (help-fns-short-filename): Declare.
Glenn Morris [Fri, 8 May 2015 05:42:12 +0000 (22:42 -0700)]
* lisp/emacs-lisp/eieio-opt.el (help-fns-short-filename): Declare.

9 years ago* lisp/emacs-lisp/subr-x.el (if-let): Fix debug spec
Artur Malabarba [Thu, 7 May 2015 20:13:29 +0000 (21:13 +0100)]
* lisp/emacs-lisp/subr-x.el (if-let): Fix debug spec

Support the case when BINDINGS is a single tuple.  (Bug#20525)

9 years ago* etc/NEWS: Fix typo in commit 14bb519
Artur Malabarba [Thu, 7 May 2015 19:32:24 +0000 (20:32 +0100)]
* etc/NEWS: Fix typo in commit 14bb519

9 years agoWarn for multiple display crash for all Gtk+ versions.
Jan D [Thu, 7 May 2015 18:09:16 +0000 (20:09 +0200)]
Warn for multiple display crash for all Gtk+ versions.

* configure.ac: Warn for multiple display crash for all Gtk+
versions.  Output URL to Gtk+ bug (Bug#20452).

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.