]> code.delx.au - gnu-emacs/log
gnu-emacs
7 years agoUpdate MH-E's documentation about HTML renderers
Mike Kupfer [Mon, 30 May 2016 23:13:10 +0000 (16:13 -0700)]
Update MH-E's documentation about HTML renderers

* doc/misc/mh-e.texi (HTML): Remove the footnote with the minimum Gnus
version (we are no longer trying to support multiple Emacs
releases). Sort the table of HTML renderers by name (the previous
ordering was based on a 10-year-old survey). Add shr and gnus-w3m to
the table. Remove the entry for w3 (no longer available).  Update
existing entries so that they are more consistent about what features
are discussed, and to reflect recent testing (Debian 8). Small tweaks
to existing text.

7 years agoFx the we->the typo
Dmitry Gutov [Mon, 30 May 2016 14:51:41 +0000 (17:51 +0300)]
Fx the we->the typo

* doc/emacs/trouble.texi (Sending Patches):
Fix the typo (bug#23657).

7 years agoRestore frames into the current display by default
Paul Eggert [Mon, 30 May 2016 05:45:33 +0000 (22:45 -0700)]
Restore frames into the current display by default

* lisp/desktop.el (desktop-restore-in-current-display):
Default to t, not nil (Bug#23604).
* etc/NEWS: Mention the change.

7 years ago* lisp/recentf.el (recentf-open-files-item): Quick fix for (bug#22434).
Stefan Monnier [Mon, 30 May 2016 00:32:32 +0000 (20:32 -0400)]
* lisp/recentf.el (recentf-open-files-item): Quick fix for (bug#22434).

7 years agoetc/TODO: Remove out-of-place issue
Stefan Monnier [Mon, 30 May 2016 00:29:47 +0000 (20:29 -0400)]
etc/TODO: Remove out-of-place issue

7 years agoClarify doc string of 'file-name-sans-extension'
Eli Zaretskii [Sun, 29 May 2016 14:59:59 +0000 (17:59 +0300)]
Clarify doc string of 'file-name-sans-extension'

* lisp/files.el (file-name-sans-extension, file-name-extension):
Clarify in the doc strings what is the extension, and which
leading period doesn't count.  (Bug#23643)

8 years agoFix the MSDOS build
Eli Zaretskii [Sat, 28 May 2016 12:27:47 +0000 (15:27 +0300)]
Fix the MSDOS build

* msdos/sed1v2.inp (PAXCTL_dumped, PAXCTL_notdumped): Define to
empty, and remove the lines which use them in recipes, as that
causes weird error message from Make and breaks the MSDOS build.

8 years ago* lisp/progmodes/elisp-mode.el (elisp-function-argstring): Call
Andreas Schwab [Sat, 28 May 2016 08:45:07 +0000 (10:45 +0200)]
* lisp/progmodes/elisp-mode.el (elisp-function-argstring): Call
substitute-command-keys to undo help--docstring-quote. (Bug#23634)

8 years ago* src/dired.c (Ffile_name_all_completions): Doc fix. (Bug#23631)
Eli Zaretskii [Fri, 27 May 2016 13:06:57 +0000 (16:06 +0300)]
* src/dired.c (Ffile_name_all_completions): Doc fix.  (Bug#23631)

8 years agoFix infloop in 'number-sequence'
Eli Zaretskii [Fri, 27 May 2016 09:17:15 +0000 (12:17 +0300)]
Fix infloop in 'number-sequence'

* lisp/subr.el (number-sequence): Avoid overflow leading to an
infloop.  (Bug#23627)

* test/automated/subr-tests.el (number-sequence-test): New test.

8 years ago; Spelling and punctuation fixes in comments
Paul Eggert [Fri, 27 May 2016 02:21:56 +0000 (19:21 -0700)]
; Spelling and punctuation fixes in comments

8 years ago* lisp/emacs-lisp/find-func.el (find-function-library):
Glenn Morris [Thu, 26 May 2016 23:50:54 +0000 (19:50 -0400)]
* lisp/emacs-lisp/find-func.el (find-function-library):

Update for symbol-function no longer erroring.  (Bug#23626)

8 years ago* lisp/w32-fns.el (set-message-beep, w32-get-locale-info)
Glenn Morris [Thu, 26 May 2016 18:57:29 +0000 (14:57 -0400)]
* lisp/w32-fns.el (set-message-beep, w32-get-locale-info)
(w32-get-valid-locale-ids): Improve declarations.

8 years agoCorrect old cell name unbinding when renaming cell.
Vincent Belaïche [Thu, 26 May 2016 09:03:21 +0000 (11:03 +0200)]
Correct old cell name unbinding when renaming cell.

Bug is to unbind old cell names when renaming a cell with
'makunbound'. when the old cell name is of A1 type, then
'kill-local-variable' must be used instead, so that only the current
spreadsheet is affected. When the old cell name is a renamed cell,
then 'ses--unbind-cell-name' must be used in order to remove the old
name from the name hashmap.

* ses.el (ses-rename-cell): check consistency of cell symbol from
text-property and from array object. Instead of 'makunbound', use
either 'ses--unbind-cell-name' or 'kill-local-variable' depending on
whether the cell old name is a named cell or an A1 type cell

8 years agoMerge branch 'emacs-25' of git.sv.gnu.org:/srv/git/emacs into emacs-25
Vincent Belaïche [Wed, 25 May 2016 21:44:18 +0000 (23:44 +0200)]
Merge branch 'emacs-25' of git.sv.gnu.org:/srv/git/emacs into emacs-25

8 years agoDocument problem: slow screen refresh on missing font.
Vincent Belaïche [Wed, 25 May 2016 21:42:54 +0000 (23:42 +0200)]
Document problem: slow screen refresh on missing font.

See discussion of bug#22519 for more on this.

8 years ago* admin/admin.el (add-release-logs): Basic check of existing ChangeLog.
Glenn Morris [Wed, 25 May 2016 18:45:05 +0000 (14:45 -0400)]
* admin/admin.el (add-release-logs): Basic check of existing ChangeLog.

8 years ago* build-aux/gitlog-to-emacslog: Handle empty generated ChangeLog.
Glenn Morris [Wed, 25 May 2016 18:35:44 +0000 (14:35 -0400)]
* build-aux/gitlog-to-emacslog: Handle empty generated ChangeLog.

This is relevant for M-x add-release-logs right after M-x authors.

8 years ago* admin/admin.el (add-release-logs): Generate ChangeLog if needed.
Glenn Morris [Wed, 25 May 2016 18:17:25 +0000 (14:17 -0400)]
* admin/admin.el (add-release-logs): Generate ChangeLog if needed.

8 years ago* doc/misc/texinfo.tex: Revert previous change (Bug#23611).
Paul Eggert [Wed, 25 May 2016 17:39:14 +0000 (10:39 -0700)]
* doc/misc/texinfo.tex: Revert previous change (Bug#23611).

8 years ago* admin/authors.el (authors): First update the ChangeLog.
Glenn Morris [Wed, 25 May 2016 16:47:13 +0000 (12:47 -0400)]
* admin/authors.el (authors): First update the ChangeLog.

* admin/make-tarball.txt: Related updates.

8 years ago; 'Changes from the pre-25.1 API' copyedits
Dmitry Gutov [Wed, 25 May 2016 01:01:12 +0000 (04:01 +0300)]
; 'Changes from the pre-25.1 API' copyedits

8 years agoRename vc-stay-local back to vc-cvs-stay-local
Dmitry Gutov [Wed, 25 May 2016 00:49:35 +0000 (03:49 +0300)]
Rename vc-stay-local back to vc-cvs-stay-local

* lisp/vc/vc-cvs.el (vc-cvs-stay-local): Rename back from
vc-stay-local (bug#19548).  Improve the docstring.
(vc-cvs-stay-local-p): Update accordingly.

8 years ago* doc/emacs/files.texi (Comparing Files):
Glenn Morris [Tue, 24 May 2016 18:58:27 +0000 (14:58 -0400)]
* doc/emacs/files.texi (Comparing Files):
* doc/emacs/trouble.texi (Sending Patches): Fix external xrefs.

8 years ago* doc/misc/eww.texi (Advanced): Fix xref.
Glenn Morris [Tue, 24 May 2016 18:37:54 +0000 (14:37 -0400)]
* doc/misc/eww.texi (Advanced): Fix xref.

8 years agoFix cross-references between manuals
Eli Zaretskii [Tue, 24 May 2016 18:24:45 +0000 (21:24 +0300)]
Fix cross-references between manuals

* doc/misc/viper.texi (Viper Specials):
* doc/misc/url.texi (Tramp):
* doc/misc/sem-user.texi (Smart Jump):
* doc/lispintro/emacs-lisp-intro.texi (Finding More):
* doc/misc/efaq.texi (Replacing text across multiple files): Fix
cross-references between manuals.  (Bug#23612)
* doc/lispintro/emacs-lisp-intro.texi (etags): Node deleted: no
longer relevant to Emacs Lisp programming.

8 years ago* doc/misc/vhdl-mode.texi (Sample Init File): Rename node to avoid ".".
Glenn Morris [Tue, 24 May 2016 17:26:04 +0000 (13:26 -0400)]
* doc/misc/vhdl-mode.texi (Sample Init File): Rename node to avoid ".".

8 years ago; * admin/release-process: Move etc/HISTORY from here...
Glenn Morris [Tue, 24 May 2016 17:00:57 +0000 (13:00 -0400)]
; * admin/release-process: Move etc/HISTORY from here...
; * admin/make-tarball.txt: ... to here.

8 years ago* admin/admin.el (add-release-logs): Also update etc/HISTORY.
Glenn Morris [Tue, 24 May 2016 16:51:00 +0000 (12:51 -0400)]
* admin/admin.el (add-release-logs): Also update etc/HISTORY.

8 years ago; * CONTRIBUTE: Fix a typo.
Eli Zaretskii [Tue, 24 May 2016 16:06:20 +0000 (19:06 +0300)]
; * CONTRIBUTE: Fix a typo.

8 years agoAvoid aborting due to errors in arguments of 'set-face-attribute'
Eli Zaretskii [Tue, 24 May 2016 16:04:16 +0000 (19:04 +0300)]
Avoid aborting due to errors in arguments of 'set-face-attribute'

* src/xfaces.c (Finternal_set_lisp_face_attribute): Check the
FRAME argument before using it.  This avoids gratuitous aborts in
Emacs built with --enable-checking when the luser was unlucky
enough to get the argument list in wrong order.

8 years ago; * admin/release-process: Copyedits.
Glenn Morris [Tue, 24 May 2016 15:59:09 +0000 (08:59 -0700)]
; * admin/release-process: Copyedits.

8 years ago; * test/automated/data-tests.el: Standardize license notice.
Phillip Lord [Mon, 23 May 2016 15:59:24 +0000 (16:59 +0100)]
; * test/automated/data-tests.el: Standardize license notice.

8 years ago; * test/automated/viper-tests.el: Standardize license notice.
Glenn Morris [Mon, 23 May 2016 15:43:26 +0000 (08:43 -0700)]
; * test/automated/viper-tests.el: Standardize license notice.

8 years agoAdd automated test for viper-tests.el
Phillip Lord [Mon, 23 May 2016 09:39:26 +0000 (10:39 +0100)]
Add automated test for viper-tests.el

8 years agoFix viper undo breakage from undo-boundary changes
Phillip Lord [Sat, 21 May 2016 09:06:12 +0000 (10:06 +0100)]
Fix viper undo breakage from undo-boundary changes

* lisp/simple.el (undo-auto-disable-boundaries): New variable
* lisp/emulation/viper-init.el (viper-undo-in-complex-command,
  viper-undo-needs-adjustment): Rename
  variable to reflect new purpose,
  (viper-buffer-undo-list-mark): Remove
* lisp/emulation/viper-cmd.el (viper-set-complex-command-for-undo):
  Add undo using `undo-boundary', disable default undo-boundary
  addition.
* lisp/emulation/viper-cmd.el
  (viper-complete-complex-command-for-undo,viper-adjust-undo):
  Change function name, remove old undo list manipulation.
* lisp/emulation/viper-cmd.el (viper-undo,viper-repeat,
  viper-change-state-to-vi,viper-change-state):
  Update for function name change.

Addresses Bug #22295

8 years agoFix reference to obsolete fn ps-eval-switch
Kaushal Modi [Mon, 23 May 2016 00:48:33 +0000 (17:48 -0700)]
Fix reference to obsolete fn ps-eval-switch

lpr-eval-switch is functionally the same as ps-eval-switch,
which was obsoleted in 2cdeb903c57126d3ad5f0cbd72e182584b76ee29.
So use that instead (Bug#19717).
* lisp/printing.el (pr-switches): Use lpr-eval-switch instead of
ps-eval-switch.

8 years agoDo not trash symlinks to init file
Paul Eggert [Mon, 23 May 2016 00:29:58 +0000 (17:29 -0700)]
Do not trash symlinks to init file

If the user’s init file is a symbolic link, do not break the link
when initializing the package system.  Problem reported by Jackson
Hamilton (Bug#23050).
* lisp/emacs-lisp/package.el (package--ensure-init-file):
Bind find-file-visit-truename when visiting the init file, and
save and restore the buffer name the way cus-edit does in a
similar situation (Bug#454).

8 years agoDon't print the "decomposition" line for control chars in what-cursor-position
Alan Mackenzie [Sun, 22 May 2016 21:02:34 +0000 (21:02 +0000)]
Don't print the "decomposition" line for control chars in what-cursor-position

This is a temporary workaround for bug #23594, where the decomposition line
for linefeed corrupted the display on a Linux virtual terminal.

* lisp/descr-text.el (describe-char): Remove `decomposition' from the list of
character code properties printed for control characters.

8 years agoBring back xterm pasting with middle mouse
Paul Eggert [Sun, 22 May 2016 20:38:53 +0000 (13:38 -0700)]
Bring back xterm pasting with middle mouse

Problem reported by Jan Synáček.
Solution suggested by Stefan Monnier (Bug#23519).
* lisp/isearch.el (isearch-mode-map): Add a binding for xterm-paste.
(xterm--pasted-text): New decl.
(isearch-xterm-paste): New function.
* lisp/term/xterm.el (xterm--pasted-text): New function,
taken from xterm-paste internals.
(xterm-paste): Use it.

8 years agoProvide workaround for xftfont rendering problem
Eli Zaretskii [Sun, 22 May 2016 16:20:28 +0000 (19:20 +0300)]
Provide workaround for xftfont rendering problem

* src/xftfont.c (syms_of_xftfont) <xft-font-ascent-descent-override>:
New variable.
(xftfont_open): Use it to work around problems with rendering some
fonts.  (Bug#23360)

8 years ago* lisp/desktop.el: Disable restore frameset if in non-graphic display.
Jun Hao [Sat, 21 May 2016 19:34:20 +0000 (12:34 -0700)]
* lisp/desktop.el: Disable restore frameset if in non-graphic display.

Fixes: debbugs:17693
8 years agoMention GTK+ problems in etc/PROBLEMS
Eli Zaretskii [Sat, 21 May 2016 07:19:32 +0000 (10:19 +0300)]
Mention GTK+ problems in etc/PROBLEMS

* etc/PROBLEMS (GDK_SCALE, GDK_DPI_SCALE): Mention the possible
problems this could create and the workaround.  (Bug#23587)

8 years ago* lisp/emacs-lisp/package.el (package-refresh-contents):
Artur Malabarba [Wed, 18 May 2016 19:31:07 +0000 (16:31 -0300)]
* lisp/emacs-lisp/package.el (package-refresh-contents):

Don't change the value of `package-check-signature'.
(package-check-signature): Use `epg-find-configuration'
instead of `executable-find'.

8 years agoRevert "epg: Add a way to detect gpg1 executable for tests"
Daiki Ueno [Fri, 20 May 2016 10:34:06 +0000 (19:34 +0900)]
Revert "epg: Add a way to detect gpg1 executable for tests"

This reverts commit d4ae6d7033b34e8b75c59aaf1584131e439ef2d5.

8 years agoAvoid errors with Czech and Slovak input methods
Eli Zaretskii [Thu, 19 May 2016 19:57:53 +0000 (22:57 +0300)]
Avoid errors with Czech and Slovak input methods

* lisp/leim/quail/slovak.el (slovak, slovak-prog-1, slovak-prog-2)
(slovak-prog-3): Remove the kp-* key bindings, they are not needed
and cause errors in "C-u C-x =".
* lisp/leim/quail/czech.el (czech, czech-qwerty, czech-prog-1)
(czech-prog-2, czech-prog-3): Remove the kp-* key bindings.
(Bug#23559)

8 years agoepg: Add a way to detect gpg1 executable for tests
Daiki Ueno [Thu, 19 May 2016 09:05:19 +0000 (18:05 +0900)]
epg: Add a way to detect gpg1 executable for tests

Fixes bug#23561.

* test/automated/epg-tests.el
(epg-tests-program-alist-for-passphrase-callback): New
constant.
(epg-tests-find-usable-gpg-configuration): New function,
renamed from `epg-tests-gpg-usable'.  All callers changed.
(epg-tests-gpg-usable): Remove.

* lisp/epg-config.el (epg-config--program-alist): Factor out
constructor element to...
(epg-config--configuration-constructor-alist): ...here.
(epg-find-configuration): Rename FORCE argument to NO-CACHE,
and add PROGRAM-ALIST argument.

8 years ago* lisp/emacs-lisp/package.el: Fix free variable warnings.
Artur Malabarba [Wed, 18 May 2016 23:09:24 +0000 (20:09 -0300)]
* lisp/emacs-lisp/package.el: Fix free variable warnings.

(package--with-response-buffer): Replace two usages of
`macroexp-let2*' with `let'.

8 years ago* lisp/emacs-lisp/package.el (package--with-response-buffer):
Artur Malabarba [Wed, 18 May 2016 20:58:56 +0000 (17:58 -0300)]
* lisp/emacs-lisp/package.el (package--with-response-buffer):

Fix some macro locals leaking into body.  (Bug#22440)

* test/automated/package-test.el (package-test-signed):
Manually check all possible values of `package-check-signature'.

8 years agoImprove documentation of 'server-name'
Eli Zaretskii [Wed, 18 May 2016 19:50:45 +0000 (22:50 +0300)]
Improve documentation of 'server-name'

* doc/emacs/misc.texi (Emacs Server): Fix example of setting
'server-name'.  Mention how to do that with daemon sessions.
(Bug#23576)

8 years agoModernize ASLR advice in etc/PROBLEMS
Paul Eggert [Wed, 18 May 2016 08:05:00 +0000 (01:05 -0700)]
Modernize ASLR advice in etc/PROBLEMS

* etc/PROBLEMS (Segfault during 'make'): Modernize advice for
seccomp, Docker, and NetBSD (Bug#23529).

8 years ago* lisp/char-fold.el: Rename from character-fold.el.
Juri Linkov [Tue, 17 May 2016 20:55:38 +0000 (23:55 +0300)]
* lisp/char-fold.el: Rename from character-fold.el.

* lisp/replace.el (replace-char-fold): Rename from replace-character-fold.
* test/automated/char-fold-tests.el: Rename from character-fold-tests.el.
http://lists.gnu.org/archive/html/emacs-devel/2015-12/msg00529.html

8 years agoBump version to 25.0.94 emacs-25.0.94
Nicolas Petton [Tue, 17 May 2016 17:00:52 +0000 (19:00 +0200)]
Bump version to 25.0.94

* README:
* configure.ac:
* msdos/sed2v2.inp: Bump Emacs version to 25.0.94.

8 years agoetc/AUTHORS: Update the AUTHORS file
Nicolas Petton [Tue, 17 May 2016 17:00:47 +0000 (19:00 +0200)]
etc/AUTHORS: Update the AUTHORS file

8 years ago; Auto-commit of loaddefs files.
Nicolas Petton [Tue, 17 May 2016 16:59:48 +0000 (18:59 +0200)]
; Auto-commit of loaddefs files.

8 years agoFix bug#23462: Crash when iconifying frame on OS X.
Alan Third [Mon, 16 May 2016 18:37:23 +0000 (20:37 +0200)]
Fix bug#23462: Crash when iconifying frame on OS X.

* src/nsterm.m (x_iconify_frame): Block input while miniaturize is
running.

8 years agoAvoid shrinking windows with Gtk+ 3.20.3
Paul Eggert [Mon, 16 May 2016 17:05:19 +0000 (10:05 -0700)]
Avoid shrinking windows with Gtk+ 3.20.3

Problem reported by Matthias Clasen (Bug#23144).
This was fixed in a different way in master.
Do not merge to master.
* src/xterm.c (handle_one_xevent) [GTK_CHECK_VERSION (3, 20, 3)]:
Do not call xg_frame_resized in the MapNotify case.

8 years agoFix bug in default setting of 'ps-paper-type'
Eli Zaretskii [Mon, 16 May 2016 15:14:54 +0000 (18:14 +0300)]
Fix bug in default setting of 'ps-paper-type'

* lisp/international/mule-cmds.el (set-locale-environment): Don't
inherit the value of locale from previous examination of different
environment variables, which didn't look at LC_PAPER, and so using
that value would effectively ignore the setting of LC_PAPER.
(Bug#23544)

8 years agoProperly reject malformed or empty package sigs
Paul Eggert [Sat, 14 May 2016 01:23:05 +0000 (18:23 -0700)]
Properly reject malformed or empty package sigs

Problem report and fix by Lizzie Dixon (Bug#23513).
* lisp/emacs-lisp/package.el (package--check-signature-content):
Report an error if no good signatures OR if a fatal error.  Not AND.
Copyright-paperwork-exempt: yes

8 years agoRemove buggy non-native image scrolling
Paul Eggert [Fri, 13 May 2016 16:51:32 +0000 (09:51 -0700)]
Remove buggy non-native image scrolling

This never worked, and could cause infinite recursion.
Problem reported by Glenn Morris (Bug#22465).
* lisp/xwidget.el (xwidget-webkit-scroll-behavior): Remove.
All uses removed.

8 years ago* doc/misc/texinfo.tex: Sync from gnulib.
Paul Eggert [Fri, 13 May 2016 14:41:07 +0000 (07:41 -0700)]
* doc/misc/texinfo.tex: Sync from gnulib.

8 years ago* lisp/emacs-lisp/find-func.el (find-feature-regexp)
Glenn Morris [Thu, 12 May 2016 17:35:27 +0000 (10:35 -0700)]
* lisp/emacs-lisp/find-func.el (find-feature-regexp)
(find-alias-regexp): Fix :version.

8 years agoDo not mistake colon at the end of regexp for slash symbol
Dmitry Gutov [Thu, 12 May 2016 00:18:45 +0000 (03:18 +0300)]
Do not mistake colon at the end of regexp for slash symbol

* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize):
Check the parse state in the "Symbols with special characters"
rule (bug#23515).

8 years agoMake package-install-from-buffer not move point
Dmitry Gutov [Wed, 11 May 2016 22:29:03 +0000 (01:29 +0300)]
Make package-install-from-buffer not move point

* lisp/emacs-lisp/package.el (package-install-from-buffer):
Use save-excursion here (bug#22616).

8 years ago; Revert "* emacs-lisp/lisp-mnt.el (lm-header): save-excursion"
Dmitry Gutov [Wed, 11 May 2016 22:18:38 +0000 (01:18 +0300)]
; Revert "* emacs-lisp/lisp-mnt.el (lm-header): save-excursion"

This reverts commit bf3f6a961f378f35a292c41c0bfbdae88ee1b1b9.

(Bug#22616)

8 years agoRedo the fix for bug#21839
Dmitry Gutov [Wed, 11 May 2016 21:48:37 +0000 (00:48 +0300)]
Redo the fix for bug#21839

* lisp/help.el (help-add-fundoc-usage): Undo the previous change.
(help--make-usage-docstring): Escape newlines when printing.

* lisp/emacs-lisp/cl-macs.el (cl--transform-lambda):
Ditto (bug#21839).

8 years agoDon't treat JS spread as contination method call
Dmitry Gutov [Tue, 10 May 2016 23:26:54 +0000 (02:26 +0300)]
Don't treat JS spread as contination method call

* lisp/progmodes/js.el (js--indent-operator-re):
Allow only one dot (bug#23492).

* test/indent/js.js (default): Add a corresponding example.

8 years ago; Auto-commit of loaddefs files.
Glenn Morris [Tue, 10 May 2016 11:18:12 +0000 (07:18 -0400)]
; Auto-commit of loaddefs files.

8 years agoAllow newlines inside cl function arglists
Dmitry Gutov [Mon, 9 May 2016 23:53:20 +0000 (02:53 +0300)]
Allow newlines inside cl function arglists

* lisp/help.el (help-add-fundoc-usage): Allow newlines inside
ARGLIST (bug#21839).

8 years agoPublicize cl--generic-all-functions
Dmitry Gutov [Mon, 9 May 2016 22:15:12 +0000 (01:15 +0300)]
Publicize cl--generic-all-functions

* lisp/emacs-lisp/cl-generic.el (cl-generic-all-functions):
Rename from cl--generic-all-functions.  Update both callers.

* lisp/cedet/semantic/db-el.el
(semanticdb-find-tags-external-children-of-type-method):
And use it here (bug#23042).

8 years ago; Fix typo
Michael Albinus [Mon, 9 May 2016 18:39:36 +0000 (20:39 +0200)]
; Fix typo

8 years agoAdd some "safe-local-variable" declarations for compatibility with master.
Alan Mackenzie [Mon, 9 May 2016 18:12:52 +0000 (18:12 +0000)]
Add some "safe-local-variable" declarations for compatibility with master.

These enable C files from the master repository to be visited in Emacs 25
without generating irritating questions about configuration variable safety.

* lisp/progmodes/cc-vars.el: (c-string-list-p, c-string-or-string-list-p): New
functions.
(c-noise-macro-names, c-noise-macro-with-parens-names): give the
safe-local-variable property c-string-list-p.
(c-macro-names-with-semicolon): give the safe-local-variable property
c-string-or-string-list-p.

8 years agoFix doc string in `insert'
Lars Ingebrigtsen [Mon, 9 May 2016 15:08:58 +0000 (17:08 +0200)]
Fix doc string in `insert'

* src/editfns.c (Finsert_and_inherit): The before-insertion
markers do not move.
(Finsert): Ditto.

8 years ago* doc/misc/emacs-mime.texi (time-date): Document now-builtins better.
Paul Eggert [Sun, 8 May 2016 18:49:55 +0000 (11:49 -0700)]
* doc/misc/emacs-mime.texi (time-date): Document now-builtins better.

8 years agoSay 'All results processed' at the end
Dmitry Gutov [Sat, 7 May 2016 21:23:54 +0000 (00:23 +0300)]
Say 'All results processed' at the end

* lisp/progmodes/xref.el (xref--query-replace-1):
Say 'All results processed' at the end if the user hadn't
cancelled the process (bug#23284).

8 years agoDocument automatic adjustment of process' logical window dimensions
Eli Zaretskii [Sat, 7 May 2016 09:16:27 +0000 (12:16 +0300)]
Document automatic adjustment of process' logical window dimensions

* doc/lispref/processes.texi (Process Buffers): Document
'set-process-window-size' and
'window-adjust-process-window-size-function'.

* etc/NEWS: Mention the new functionality and variable.

* src/process.c (Fset_process_window_size): Improve the doc string.

8 years ago; Fix typos and stylistic glitches in NEWS
Michael Albinus [Fri, 6 May 2016 15:53:18 +0000 (17:53 +0200)]
; Fix typos and stylistic glitches in NEWS

8 years agotramp-sh.el: Work around a stat bug (backport from master)
Michael Albinus [Thu, 5 May 2016 08:23:06 +0000 (10:23 +0200)]
tramp-sh.el: Work around a stat bug (backport from master)

* lisp/net/tramp-sh.el (tramp-get-remote-stat): Do not use
stat versions which produce shell quoted output.  See also
coreutils Bug#23422.

(cherry picked from commit 6aad36ace9953b9672b13be68416d205532d5e59)

8 years agoDoc fixes for fclist and grep
Paul Eggert [Thu, 5 May 2016 19:48:33 +0000 (12:48 -0700)]
Doc fixes for fclist and grep

A newline is needed between two fc-list calls.
egrep and fgrep have been withdrawn from POSIX,
so document grep -E and grep -F instead.

8 years agoMinor doc fixes for quoting
Paul Eggert [Thu, 5 May 2016 13:39:17 +0000 (06:39 -0700)]
Minor doc fixes for quoting

* doc/lispref/control.texi (Signaling Errors):
* doc/lispref/display.texi (Displaying Messages):
Don’t say that formats “generate”.  Try to word more clearly.
* etc/NEWS: Coalesce near-duplicate entries.

8 years ago`nreverse' the marker pairs list
Dmitry Gutov [Thu, 5 May 2016 13:01:52 +0000 (16:01 +0300)]
`nreverse' the marker pairs list

* lisp/progmodes/xref.el (xref--buf-pairs-iterator): `nreverse'
the marker pairs list for each buffer before returning.

8 years agoUse save-excursion in xref-location-marker more
Dmitry Gutov [Thu, 5 May 2016 01:28:14 +0000 (04:28 +0300)]
Use save-excursion in xref-location-marker more

* lisp/progmodes/elisp-mode.el (xref-location-marker): Use
save-excursion, in order not to alter the value of point if the
buffer is currently open in the background (problem reported by
Robert Weiner).

* lisp/progmodes/etags.el (xref-location-marker): Same.

8 years agoshell-quote-argument DIR when appropriate
Dmitry Gutov [Thu, 5 May 2016 01:15:23 +0000 (04:15 +0300)]
shell-quote-argument DIR when appropriate

* lisp/progmodes/project.el (project-file-completion-table):
`shell-quote-argument' DIR as well.

* lisp/progmodes/xref.el (xref--rgrep-command): Pass DIR through
`shell-quote-argument' (bug#23453).  Thanks for Kaushal Modi for
pointing out the problem.  Assert that DIR doesn't start with `~'.

8 years agoRework xref-query-replace-in-results
Dmitry Gutov [Wed, 4 May 2016 23:52:34 +0000 (02:52 +0300)]
Rework xref-query-replace-in-results

* lisp/progmodes/xref.el (xref-query-replace-in-results): Collect
all xrefs from the buffer first, then delegate most of the
processing to the value returned by xref--buf-pairs-iterator.
(xref--buf-pairs-iterator): New function.  Return an "iterator"
which partitions returned markers into buffers, and only processes
markers from one buffer at a time.  When an xref is out of date,
skip it with a message instead of signaling error (bug#23284).
(xref--outdated-p): Extract from xref--buf-pairs-iterator.  Trim
CR from both strings before comparing.
(xref--query-replace-1): Remove the variable current-buf, no need
to track it anymore.  Simplify the filter-predicate and search
functions accordingly.  Iterate over buffer-markers pairs returned
by the iterator, and call `perform-replace' for each of them.  Use
multi-query-replace-map (bug#23284).  Use `switch-to-buffer' every
time after the first, in order not to jump between windows.

* test/automated/xref-tests.el
(xref--buf-pairs-iterator-groups-markers-by-buffers-1)
(xref--buf-pairs-iterator-groups-markers-by-buffers-2)
(xref--buf-pairs-iterator-cleans-up-markers): New tests.

8 years ago* lisp/replace.el (query-replace-read-from): Use minibuffer-with-setup-hook
Juri Linkov [Wed, 4 May 2016 20:05:33 +0000 (23:05 +0300)]
* lisp/replace.el (query-replace-read-from): Use minibuffer-with-setup-hook

to set minibuffer-local value of text-property-default-nonsticky.
(Bug#23418, bug#23127)

8 years agoFix todo-mode bug involving archived items (bug#23447)
Stephen Berman [Wed, 4 May 2016 19:52:32 +0000 (21:52 +0200)]
Fix todo-mode bug involving archived items (bug#23447)

* lisp/calendar/todo-mode.el (todo-jump-to-category): When jumping
from Todo Categories mode to a category with only archived items
and todo-skip-archived-categories is non-nil, make sure the
archive file buffer is in Todo Archive mode to prevent
todo-category-select from raising an error, and don't set
todo-current-todo-file, since that makes todo-show display the
archived category.  Remove a no-op call to kill-buffer, which is
already called in todo-insert-category-line.

8 years ago; * etc/NEWS: Tiny edit. (Bug#23432)
Glenn Morris [Wed, 4 May 2016 17:23:21 +0000 (13:23 -0400)]
; * etc/NEWS: Tiny edit. (Bug#23432)

8 years ago; * test/automated/xref-tests.el: Add copyright and license.
Glenn Morris [Wed, 4 May 2016 02:36:40 +0000 (19:36 -0700)]
; * test/automated/xref-tests.el: Add copyright and license.

8 years agoHandle "empty line" regexp in xref searches
Dmitry Gutov [Tue, 3 May 2016 22:59:29 +0000 (01:59 +0300)]
Handle "empty line" regexp in xref searches

* lisp/progmodes/xref.el (xref--collect-matches-1): Stop after one
match if re-search-forward doesn't move point (bug#23426).

* test/automated/xref-tests.el
(xref-collect-matches-finds-an-empty-line-regexp-match):
Uncomment test.

8 years agoAdd tests for xref-collect-matches
Dmitry Gutov [Tue, 3 May 2016 22:38:02 +0000 (01:38 +0300)]
Add tests for xref-collect-matches

* test/automated/xref-tests.el: New file.  Add tests for
xref-collect-matches.

8 years agoUse grep-find-ignored-directories instead of vc-directory-exclusion-list
Dmitry Gutov [Tue, 3 May 2016 22:02:43 +0000 (01:02 +0300)]
Use grep-find-ignored-directories instead of vc-directory-exclusion-list

* lisp/dired-aux.el (dired-do-find-regexp):
Use grep-find-ignored-directories instead of
vc-directory-exclusion-list.  The result should be functionally
similar (the former uses the latter as the default value), but it
should be more consistent and appropriate WRT user
customizations.
(dired-do-find-regexp-and-replace): Update the docstring.

* lisp/dired.el: Update the corresponding autoloads.

* doc/emacs/dired.texi (Operating on Files): Update the
documentation accordingly.

8 years agoClear buffer-undo-list when showing xrefs
Dmitry Gutov [Tue, 3 May 2016 21:42:43 +0000 (00:42 +0300)]
Clear buffer-undo-list when showing xrefs

* lisp/progmodes/xref.el (xref--show-xref-buffer): Clear
buffer-undo-list and temporarily bind it to t while rendering the
buffer contents.

8 years agoNote the quote translation in `message' in section "incompatible changes".
Alan Mackenzie [Tue, 3 May 2016 20:27:48 +0000 (20:27 +0000)]
Note the quote translation in `message' in section "incompatible changes".

* etc/NEWS: Note that `message' translates quotes, that the translation
cannot be disabled, and that `format' can be used to get the old
behavior back.

8 years ago* etc/NEWS: Mention (message "%s" (format ...)).
Paul Eggert [Tue, 3 May 2016 20:30:21 +0000 (13:30 -0700)]
* etc/NEWS: Mention (message "%s" (format ...)).

8 years ago(Common Keywords): Correct what missing :group means
Lars Ingebrigtsen [Tue, 3 May 2016 17:06:13 +0000 (19:06 +0200)]
(Common Keywords): Correct what missing :group means

* doc/lispref/customize.texi (Common Keywords): Correct what
missing :group means.

8 years agoImprove documentation of Dired's 'A' and 'Q' commands
Eli Zaretskii [Tue, 3 May 2016 16:14:31 +0000 (19:14 +0300)]
Improve documentation of Dired's 'A' and 'Q' commands

* lisp/dired-aux.el (dired-do-find-regexp)
(dired-do-find-regexp-and-replace): Mention
'grep-find-ignored-files' and 'vc-directory-exclusion-list', and
also the fact that REGEXP should be palatable by Grep.  (Bug#23426)
* lisp/dired.el: Update the corresponding autoload forms.

* doc/emacs/dired.texi (Operating on Files): Mention
'grep-find-ignored-files' and 'vc-directory-exclusion-list'.
(Bug#23429)

8 years agoDoc fixes for quoting
Paul Eggert [Tue, 3 May 2016 15:02:16 +0000 (08:02 -0700)]
Doc fixes for quoting

* doc/emacs/text.texi, doc/lispintro/emacs-lisp-intro.texi:
* doc/lispref/control.texi, doc/lispref/display.texi:
* doc/lispref/help.texi, doc/lispref/strings.texi, lisp/subr.el:
* src/callint.c, src/doprnt.c, src/editfns.c:
Document quoting a bit more systematically.
Problem reported by Alan Mackenzie (Bug#23425).

8 years agoposnp doc clarification
Lars Ingebrigtsen [Mon, 2 May 2016 22:08:31 +0000 (00:08 +0200)]
posnp doc clarification

* lisp/subr.el (posnp): Mention that a posn object is returned
from `event-start' (bug#18211).

8 years agoMention what a missing :group does
Lars Ingebrigtsen [Mon, 2 May 2016 22:02:50 +0000 (00:02 +0200)]
Mention what a missing :group does

* doc/lispref/customize.texi (Common Keywords): Document that
a missing :group reuses the group from the preceding item (bug#21601).

8 years agoFix documentation of dired-aux search/replace commands
Eli Zaretskii [Mon, 2 May 2016 19:57:06 +0000 (22:57 +0300)]
Fix documentation of dired-aux search/replace commands

* lisp/dired-aux.el (dired-do-find-regexp)
(dired-do-find-regexp-and-replace): Doc fixes.  (Bug#23429)
* lisp/dired.el: Update the corresponding autoload forms.