]> git.eshelyaron.com Git - emacs.git/log
emacs.git
5 years ago* lisp/tab-bar.el: Don't use minibuffer buffer name as tab name.
Juri Linkov [Sat, 12 Oct 2019 21:41:39 +0000 (00:41 +0300)]
* lisp/tab-bar.el: Don't use minibuffer buffer name as tab name.

* lisp/tab-bar.el (tab-bar-tab-name-selected-window):
Use minibuffer-selected-window to get original window.

5 years agoMake Fadd_face_text_property even less destructive
Lars Ingebrigtsen [Sat, 12 Oct 2019 21:35:26 +0000 (23:35 +0200)]
Make Fadd_face_text_property even less destructive

* src/textprop.c (Fadd_face_text_property): We need to be
non-destructive in buffers, too, because face properties may have
been added with `put-text-property' as a list that's been reused.

5 years agoMention the Emacs exit code in batch mode
Lars Ingebrigtsen [Sat, 12 Oct 2019 21:15:43 +0000 (23:15 +0200)]
Mention the Emacs exit code in batch mode

* doc/lispref/os.texi (Batch Mode): Mention what the exit code is
if an error is signalled (bug#31552).

5 years agoDocument that variables should not be called -p
Kaushal Modi [Sat, 12 Oct 2019 20:26:50 +0000 (22:26 +0200)]
Document that variables should not be called -p

* doc/lispref/tips.texi (Coding Conventions): Document that
variables should now be called -p (bug#26564).

5 years agoMake the cl-letf doc string link to the manual
Lars Ingebrigtsen [Sat, 12 Oct 2019 20:21:11 +0000 (22:21 +0200)]
Make the cl-letf doc string link to the manual

* lisp/emacs-lisp/cl-macs.el (cl-letf): Add a link to the manual
from the doc string (bug#24459).

5 years agobutton-* function doc string clarifications
Jiajie Chen [Sat, 12 Oct 2019 19:47:47 +0000 (21:47 +0200)]
button-* function doc string clarifications

* lisp/button.el (button-start, button-end, button-get)
(button-put, button-label): Have the doc string mention that they
have to be called from the current buffer (bug#23909).

Copyright-paperwork-exempt: yes

5 years agoert-deftest macro doc string clarification
Lars Ingebrigtsen [Sat, 12 Oct 2019 19:34:56 +0000 (21:34 +0200)]
ert-deftest macro doc string clarification

* lisp/emacs-lisp/ert.el (ert-deftest): Mention that macros are
expanded when defined, not when tested (bug#21742).

5 years ago; Remove unneeded @samp from a @table
Eli Zaretskii [Sat, 12 Oct 2019 19:23:56 +0000 (22:23 +0300)]
; Remove unneeded @samp from a @table

* doc/lispref/objects.texi (Special Read Syntax): Remove @samp
from @item's.

5 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Sat, 12 Oct 2019 19:22:37 +0000 (22:22 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

5 years agoFix recent changes in ELisp manual
Eli Zaretskii [Sat, 12 Oct 2019 19:18:34 +0000 (22:18 +0300)]
Fix recent changes in ELisp manual

* doc/lispref/objects.texi (Special Read Syntax): Use @samp in
@table.

* doc/lispref/elisp.texi (Top): Update the detailed menu due
to a recent addition.

5 years agoDocument #$ in the overview
Lars Ingebrigtsen [Sat, 12 Oct 2019 19:14:42 +0000 (21:14 +0200)]
Document #$ in the overview

* doc/lispref/objects.texi (Special Read Syntax): Add #$.

5 years agoFix compilation-transform-file-match-alist failure
Lars Ingebrigtsen [Sat, 12 Oct 2019 18:57:37 +0000 (20:57 +0200)]
Fix compilation-transform-file-match-alist failure

* lisp/progmodes/compile.el (compilation-error-properties): Fix
thinko in compilation-transform-file-match-alist feature -- `file'
isn't a list of files after all.

5 years agoAdd a lispref node to list special read syntax forms
Lars Ingebrigtsen [Sat, 12 Oct 2019 18:56:52 +0000 (20:56 +0200)]
Add a lispref node to list special read syntax forms

* doc/lispref/objects.texi (Special Read Syntax): Add a node to
list all the special read syntax forms (bug#18957).

5 years ago; Improve a doc string in etags.el
Eli Zaretskii [Sat, 12 Oct 2019 18:55:59 +0000 (21:55 +0300)]
; Improve a doc string in etags.el

* lisp/progmodes/etags.el (tags-complete-tags-table-file):
Improve the doc string.  (Bug#37538)

5 years agoAdapt some Tramp tests
Michael Albinus [Sat, 12 Oct 2019 10:20:55 +0000 (12:20 +0200)]
Adapt some Tramp tests

* test/lisp/net/tramp-archive-tests.el
(tramp-archive-test17-insert-directory): Adapt regexp of summary line.

* test/lisp/net/tramp-tests.el (tramp-test21-file-links):
Extend test for symlinked directories.

5 years agoFix google-drive handling in tramp-gvfs
Michael Albinus [Sat, 12 Oct 2019 10:20:30 +0000 (12:20 +0200)]
Fix google-drive handling in tramp-gvfs

* lisp/net/tramp-gvfs.el (tramp-gvfs-file-attributes):
Add "standard::is-volatile".
(tramp-gvfs-get-directory-attributes)
(tramp-gvfs-handle-file-attributes): Handle "gdrive" special.
(tramp-gvfs-send-command): Ignore nil arguments.

5 years ago* lisp/net/tramp.el (tramp-handle-access-file): Use `file-truename'.
Michael Albinus [Sat, 12 Oct 2019 10:19:59 +0000 (12:19 +0200)]
* lisp/net/tramp.el (tramp-handle-access-file): Use `file-truename'.

5 years agoCC-Mode: Remove unneeded backslashes from doc strings and regular expressions
Alan Mackenzie [Sat, 12 Oct 2019 09:30:23 +0000 (09:30 +0000)]
CC-Mode: Remove unneeded backslashes from doc strings and regular expressions

Also make miscellaneous amendments.

* lisp/progmodes/cc-align.el, lisp/progmodes/cc-cmds.el
* lisp/progmodes/cc-defs.el, lisp/progmodes/cc-engine.el
* lisp/progmodes/cc-langs.el, lisp/progmodes/cc-vars.el: Remove lots of
unneeded backslashes.

* lisp/progmodes/cc-langs.el (c-string-innards-re-alist): Remove redundant
"\\|\r" from regular expression.

* lisp/progmodes/cc-mode.el (c-make-mode-syntax-table): Correct the name of
the hook normal-erase-is-backspace-MODE-hook from a non-existant hook name.

5 years ago; * lisp/progmodes/grep.el (lgrep, rgrep, zrgrep): Fix doc wording.
Eli Zaretskii [Sat, 12 Oct 2019 06:52:03 +0000 (09:52 +0300)]
; * lisp/progmodes/grep.el (lgrep, rgrep, zrgrep): Fix doc wording.

5 years agotool-bar-map doc string clarification
Lars Ingebrigtsen [Sat, 12 Oct 2019 05:30:36 +0000 (07:30 +0200)]
tool-bar-map doc string clarification

* lisp/tool-bar.el (tool-bar-map): Try to clarify how this
variable is used (bug#17709).

5 years agoFix `shell' doc keymap expansions
David Röthlisberger [Sat, 12 Oct 2019 05:10:27 +0000 (07:10 +0200)]
Fix `shell' doc keymap expansions

* lisp/shell.el (shell): Make the commands be expanded in the
correct keymap (bug#11202).

Copyright-paperwork-exempt: yes

5 years agodiary-mark-entries-hook doc string clarification
Lars Ingebrigtsen [Sat, 12 Oct 2019 05:06:54 +0000 (07:06 +0200)]
diary-mark-entries-hook doc string clarification

* lisp/calendar/diary-lib.el (diary-mark-entries-hook): Mention
dynamically bound variables (bug#9287).

5 years agoDocument :match-inline widget elements
Lars Ingebrigtsen [Sat, 12 Oct 2019 04:40:49 +0000 (06:40 +0200)]
Document :match-inline widget elements

* doc/lispref/customize.texi (Type Keywords): Document
:match-inline (bug#8716).
(Splicing into Lists): Mention :match-inline.

5 years agoUpdate from Gnulib
Paul Eggert [Sat, 12 Oct 2019 01:23:47 +0000 (18:23 -0700)]
Update from Gnulib

This incorporates:
2019-10-11 Simplify and regularize regex use of ‘assert’
2019-10-09 regex: omit debug assignment when not debugging
2019-10-09 regex: tell compiler there’s at most 256 arcs out
2019-10-09 regex: simplify by assuming C99
2019-10-09 regex: avoid copying of uninitialized storage
2019-09-29 fbufmode: Fix compilation error on glibc >= 2.28 systems
2019-09-28 Update comments that refer to POSIX
2019-09-23 Update URLs and associated text
* doc/misc/texinfo.tex, lib/open.c, lib/regcomp.c:
* lib/regex_internal.c, lib/regex_internal.h, lib/regexec.c:
* lib/stdio-impl.h:
Copy from Gnulib.

5 years agoDocument REAL-BINDING more extensively in Extended Menu Items
Lars Ingebrigtsen [Fri, 11 Oct 2019 20:28:27 +0000 (22:28 +0200)]
Document REAL-BINDING more extensively in Extended Menu Items

* doc/lispref/keymaps.texi (Extended Menu Items): Document that
REAL-BINDING can be other things than a real command (bug#7755).

5 years agoMinor grep.el doc string clarifications
Lars Ingebrigtsen [Fri, 11 Oct 2019 20:13:43 +0000 (22:13 +0200)]
Minor grep.el doc string clarifications

* lisp/progmodes/grep.el (grep-find-ignored-directories)
(grep-compute-defaults, grep, grep-expand-template)
(grep-highlight-matches, grep-use-null-device)
(grep-find-command, grep-find-template, grep-expand-template)
(rgrep): Minor doc string clarifications.

5 years agoFactor out the lambda from help-function-def
Lars Ingebrigtsen [Fri, 11 Oct 2019 19:58:26 +0000 (21:58 +0200)]
Factor out the lambda from help-function-def

* lisp/help-mode.el (help-function-def--button-function): Factor
out into own function for easier reuse.
(help-function-def): ... from the lambda here.

5 years agoMake << shell heredoc expansion less enthusiastic
Lars Ingebrigtsen [Fri, 11 Oct 2019 19:36:32 +0000 (21:36 +0200)]
Make << shell heredoc expansion less enthusiastic

* lisp/progmodes/sh-script.el (sh--maybe-here-document): Require a
space before expanding a heredoc (bug#3226).  This allows the user
to insert a bash <<< "herestring", which was previously difficult.

5 years agoC++ Mode: Correctly handle <:, <::, <::>, etc, according to the C++ standard
Alan Mackenzie [Fri, 11 Oct 2019 19:10:11 +0000 (19:10 +0000)]
C++ Mode: Correctly handle <:, <::, <::>, etc, according to the C++ standard

* lisp/progmodes/cc-engine.el (c-before-change-check-<>-operators): Perform
checking now on an insertion, should point be inside a critical token.
(c-forward-<>-arglist-recur, c-guess-continued-construct): Check for <::, etc.

* lisp/progmodes/cc-langs.el (c-<-pseudo-digraph-cont-regexp)
(c-<-pseudo-digraph-cont-len): New lang variables/constants.

5 years ago* lisp/cedet/mode-local.el (define-overload): Declare obsolete
Stefan Monnier [Fri, 11 Oct 2019 17:54:30 +0000 (13:54 -0400)]
* lisp/cedet/mode-local.el (define-overload): Declare obsolete

* lisp/cedet/srecode/ctxt.el (srecode-calculate-context):
* lisp/cedet/srecode/semantic.el (srecode-semantic-apply-tag-to-dict)
(srecode-semantic-find-template): Use define-overloadable-function instead.

5 years ago* lisp/emacs-lisp/map.el (map-into) <hash-table>: Allow keyword args
Andrea Corallo [Fri, 11 Oct 2019 16:18:21 +0000 (12:18 -0400)]
* lisp/emacs-lisp/map.el (map-into) <hash-table>: Allow keyword args

(map--into-hash): New function, extracted from `map-into <hash-table>`.
Speed it up a bit by using gethash instead of map-elt when we know
we're accessing a hash table.

* test/lisp/emacs-lisp/map-tests.el (test-map-into): Add corresponding test.

5 years agoRemove reference to obsolete package gnuserv from FAQ
Stefan Kangas [Fri, 11 Oct 2019 13:59:42 +0000 (15:59 +0200)]
Remove reference to obsolete package gnuserv from FAQ

On visiting http://meltin.net/hacks/emacs/, we now find:
"I used to have some Emacs and Haskell hacks on my previous
sites. However, these hacks are now old and un-maintained. I don’t
think there is enough interest to keep them around."

* doc/misc/efaq.texi (Using an already running Emacs process):
Remove reference to obsolete package 'gnuserv'.  (Bug#37574)

5 years agoCorrect some more custom type specs
Robert Pluim [Wed, 9 Oct 2019 13:28:47 +0000 (15:28 +0200)]
Correct some more custom type specs

* lisp/winner.el (winner-boring-buffers-regexp):
* lisp/progmodes/js.el (js-jsx-indent-level):
* lisp/image-dired.el (image-dired-external-viewer):
* lisp/gnus/nnir.el (nnir-notmuch-filter-group-names-function):
Correct custom type specification.

* lisp/textmodes/bibtex.el (bibtex-string-file-path):
(bibtex-file-path): Correct custom type specification and document
source of initial value.

5 years agoCleanup Tramp
Michael Albinus [Fri, 11 Oct 2019 11:50:34 +0000 (13:50 +0200)]
Cleanup Tramp

* lisp/net/tramp-archive.el (tramp-archive-gvfs-host): Fix docstring.

* lisp/net/tramp.el: Remove :group from all defcustoms.
(tramp-encoding-shell): Fix docstring.
(tramp-error): Remove text properties from error message.

5 years agoSupport showing directory in shell command prompt
Stefan Kangas [Fri, 11 Oct 2019 11:01:13 +0000 (13:01 +0200)]
Support showing directory in shell command prompt

* lisp/simple.el (shell-command-prompt-show-cwd): New defcustom.
(async-shell-command, shell-command): Show current directory in prompt
when above option is non-nil.  (Bug#4987)
* etc/NEWS: Announce it.

5 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Martin Rudalics [Fri, 11 Oct 2019 07:27:55 +0000 (09:27 +0200)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

5 years agoMinor fixes for switching to previous and next buffers (Bug#37514)
Martin Rudalics [Fri, 11 Oct 2019 07:26:41 +0000 (09:26 +0200)]
Minor fixes for switching to previous and next buffers (Bug#37514)

* lisp/window.el (switch-to-prev-buffer)
(switch-to-next-buffer): In doc-strings add links to
'prev-buffer' and 'next-buffer'.
(next-buffer, previous-buffer): Signal 'user-error' instead of
'error'.  In doc-strings link to 'switch-to-prev-buffer' and
'switch-to-next-buffer'.

5 years agoNew variable amalgamating-undo-limit
Lars Ingebrigtsen [Fri, 11 Oct 2019 07:24:26 +0000 (09:24 +0200)]
New variable amalgamating-undo-limit

* doc/lispref/text.texi (Undo): Document it.

* lisp/simple.el (amalgamating-undo-limit): New variable (bug#31658).

5 years agoCorrect .dir-locals-2.el description
Robert Pluim [Thu, 10 Oct 2019 06:24:48 +0000 (08:24 +0200)]
Correct .dir-locals-2.el description

* doc/lispref/variables.texi (Directory Local Variables): Correct
description of .dir-locals-2.el functioning.  (Bug#37640)

5 years agoExpand the documentation of --no-build-details
Lars Ingebrigtsen [Fri, 11 Oct 2019 07:05:20 +0000 (09:05 +0200)]
Expand the documentation of --no-build-details

* doc/emacs/cmdargs.texi (Initial Options): Mention that
--no-build-details shouldn't be used in regular usage (bug#34448).

5 years agoFixes for fitting windows and frames to their buffers (Bug#37563)
Martin Rudalics [Fri, 11 Oct 2019 06:46:52 +0000 (08:46 +0200)]
Fixes for fitting windows and frames to their buffers (Bug#37563)

* lisp/window.el (window-default-font-height)
(window-default-line-height): New functions.
(fit-frame-to-buffer): Interpret values of MAX-HEIGHT and
MIN-HEIGHT arguments in terms of WINDOW's default line height
(Bug#37563).
(fit-window-to-buffer): Obey size restricting arguments even
when size of WINDOW's text does not change.  Do not
temporarily select WINDOW and perform height/width related
calculations if and only if WINDOW is accordingly combined.
Interpret values of MAX-HEIGHT and MIN-HEIGHT arguments in
terms of WINDOW's default line height.

5 years agoMake nntp.el use new setq-local syntax
Lars Ingebrigtsen [Fri, 11 Oct 2019 06:28:20 +0000 (08:28 +0200)]
Make nntp.el use new setq-local syntax

* lisp/gnus/nntp.el (nntp-make-process-buffer): Convert to new
setq-local syntax (as a test case).

5 years agoEnsure that setq-local take an even number of symbol/value pairs
Lars Ingebrigtsen [Fri, 11 Oct 2019 06:27:50 +0000 (08:27 +0200)]
Ensure that setq-local take an even number of symbol/value pairs

* doc/lispref/variables.texi (Creating Buffer-Local): Document the
new syntax for setq-local.

* lisp/subr.el (setq-local): Ensure that there's an even number of
variable/value pairs, and expand the doc string by taking some
text from `setq'.

5 years agoAllow setq-local to set more than one variable
Jordon Biondo [Fri, 11 Oct 2019 05:58:42 +0000 (07:58 +0200)]
Allow setq-local to set more than one variable

* lisp/subr.el (setq-local): Allow taking pairs of values (bug#26923).

5 years agoRemove two checkdoc tests checked in by mistake
Lars Ingebrigtsen [Fri, 11 Oct 2019 05:46:41 +0000 (07:46 +0200)]
Remove two checkdoc tests checked in by mistake

* test/lisp/emacs-lisp/checkdoc-tests.el: Remove &aux and &context
checks mistakenly checked in (as these aren't implemented) (bug#37697).

5 years agoChange font size in correct window using mouse wheel
Stefan Kangas [Fri, 11 Oct 2019 00:15:24 +0000 (02:15 +0200)]
Change font size in correct window using mouse wheel

* lisp/mwheel.el (mouse-wheel-follow-mouse): Doc fix.
(mouse-wheel--get-scroll-window): New function extracted from...
(mwheel-scroll): ...here.
(mouse-wheel-text-scale): New function to change face height in
the correct window, depending on the value of
'mouse-wheel-follows-mouse'.  (Bug#28182)
(mouse-wheel-mode): Bind 'mouse-wheel-text-scale' instead of
'text-scale-increase' and 'text-scale-decrease'.

5 years ago* lisp/subr.el (ctl-x-t-prefix): Bind new alias or ctl-x-6-map to 'C-x t'.
Juri Linkov [Thu, 10 Oct 2019 22:45:54 +0000 (01:45 +0300)]
* lisp/subr.el (ctl-x-t-prefix): Bind new alias or ctl-x-6-map to 'C-x t'.

5 years ago* lisp/tree-widget.el: Use lexical-binding
Stefan Monnier [Thu, 10 Oct 2019 21:44:45 +0000 (17:44 -0400)]
* lisp/tree-widget.el: Use lexical-binding

Remove redundant `:group`s.
(tree-widget--locate-sub-directory): Rewrite.

5 years ago* lisp/progmodes/compile.el
Andreas Schwab [Thu, 10 Oct 2019 16:29:03 +0000 (18:29 +0200)]
* lisp/progmodes/compile.el
(compilation-transform-file-match-alist): Remove bogus Makefile match.

5 years agoRemove tabs from time-stamp-format documentation
Stephen Gildea [Thu, 10 Oct 2019 16:21:38 +0000 (09:21 -0700)]
Remove tabs from time-stamp-format documentation

* time-stamp.el (time-stamp-format): Untabify the doc string, so
the two-column layout displays consistently in several contexts,
in particular when displayed by customize-variable.

5 years agoFix initial value of frame-inhibit-implied-resize
Eli Zaretskii [Thu, 10 Oct 2019 11:50:11 +0000 (14:50 +0300)]
Fix initial value of frame-inhibit-implied-resize

* src/frame.c (syms_of_frame): Update doc string and default
value of frame-inhibit-implied-resize in GTK builds to include
'tab-bar-lines.

5 years agoPort time-stamp-test-time-zone to macOS
Paul Eggert [Thu, 10 Oct 2019 07:15:24 +0000 (00:15 -0700)]
Port time-stamp-test-time-zone to macOS

Problem reported by Stefan Kangas in:
https://lists.gnu.org/r/emacs-devel/2019-10/msg00360.html
* test/lisp/time-stamp-tests.el (time-stamp-test-time-zone):
Don’t assume (format-time-string "%Z" 0 t) returns "GMT".

5 years agoidentity, ignore: Make arg names more consistent with docs
Juanma Barranquero [Thu, 10 Oct 2019 04:00:20 +0000 (06:00 +0200)]
identity, ignore: Make arg names more consistent with docs

* lisp/subr.el (ignore): Rename argument IGNORE to ARGUMENTS.

* src/fns.c (Fidentity): Rename ARG to ARGUMENT.

* doc/lispref/functions.texi (Calling Functions): Fix references.

5 years agocheckdoc CL tests
Damien Cassou [Thu, 10 Oct 2019 00:19:10 +0000 (02:19 +0200)]
checkdoc CL tests

* test/lisp/emacs-lisp/checkdoc-tests.el: Add cl-lib-related tests
(bug#37063).

5 years agoMake checkdoc work better with cl-lib functions
dick r. chiang [Thu, 10 Oct 2019 00:18:20 +0000 (02:18 +0200)]
Make checkdoc work better with cl-lib functions

* lisp/emacs-lisp/checkdoc.el (checkdoc-defun-info): Make checkdoc
work for cl-lib methods with more complex parameter lists
(bug#37063).

Copyright-paperwork-exempt: yes

5 years agoFix formatting of (file-size-human-readable 2047)
Lars Ingebrigtsen [Wed, 9 Oct 2019 23:57:54 +0000 (01:57 +0200)]
Fix formatting of (file-size-human-readable 2047)

* lisp/files.el (file-size-human-readable): Don't format
slightly-less numbers as X.0k, but just Xk instead (bug#36329).

5 years agoWork around bad interaction between dired-omit-mode and recover-session
Lars Ingebrigtsen [Wed, 9 Oct 2019 23:34:14 +0000 (01:34 +0200)]
Work around bad interaction between dired-omit-mode and recover-session

* lisp/files.el (recover-session): Add ugly hack to try to ensure
that we're actually showing the session files (bug#36223).

5 years agoAllow filtering out warnings/errors from compile.el detection
Lars Ingebrigtsen [Wed, 9 Oct 2019 23:19:33 +0000 (01:19 +0200)]
Allow filtering out warnings/errors from compile.el detection

* lisp/progmodes/compile.el
(compilation-transform-file-match-alist): New variable (bug#32968).
(compilation-error-properties): Use it to remove known false
positives.
(compilation-error-regexp-alist): Mention it in this doc string.

5 years agoClarify documentation of show-help-function slightly
Lars Ingebrigtsen [Wed, 9 Oct 2019 22:51:50 +0000 (00:51 +0200)]
Clarify documentation of show-help-function slightly

* doc/lispref/text.texi (Special Properties): Clarify where the
example in Tooltip mode is (bug#35392).

5 years ago* lisp/tab-bar.el: Don't show window count for one window.
Juri Linkov [Wed, 9 Oct 2019 22:42:56 +0000 (01:42 +0300)]
* lisp/tab-bar.el: Don't show window count for one window.

* lisp/tab-bar.el (tab-bar-tab-name-selected-window): Don't show the number
of windows when there is only one window in the window configuration.
(tab-bar-close-other-tabs): Rename from tab-close-other.
Take into account tab-bar-show to turn off when needed.
(tab-close-other): Alias to tab-bar-close-other-tabs.

5 years agoFix nnimap tick/readedness thinko introduced some weeks back
Lars Ingebrigtsen [Wed, 9 Oct 2019 20:46:05 +0000 (22:46 +0200)]
Fix nnimap tick/readedness thinko introduced some weeks back

* lisp/gnus/nnimap.el (nnimap-request-set-mark): Fix thinko in the
tick/read change: Unticking a message shouldn't make it unread,
but ticking it should make it read.

5 years agoMake mml-secure-epg-sign bug out if we can't find an identity
Lars Ingebrigtsen [Wed, 9 Oct 2019 19:55:41 +0000 (21:55 +0200)]
Make mml-secure-epg-sign bug out if we can't find an identity

* lisp/gnus/mml-sec.el (mml-secure-epg-sign): Bug out if we
couldn't find anything to sign with instead of silently pretending
to sign.
* lisp/gnus/mml-smime.el (mml-smime-epg-sign): Don't bind
inhibit-display because that makes debugging impossible.

5 years agoRemove XEmacs compat code from edt.el (Bug#37621)
Stefan Kangas [Wed, 9 Oct 2019 18:10:09 +0000 (20:10 +0200)]
Remove XEmacs compat code from edt.el (Bug#37621)

* lisp/emulation/edt.el (top-level, edt-emacs-variant)
(edt-window-system, edt-xserver, edt-page-backward)
(edt-beginning-of-line, edt-end-of-line-forward)
(edt-end-of-line-backward, edt-one-word-forward)
(edt-one-word-backward, edt-character, edt-line-forward)
(edt-next-line, edt-previous-line, edt-top, edt-find-forward)
(edt-find-backward, edt-find-next-forward)
(edt-find-next-backward, edt-reset, edt-advance, edt-backup)
(edt-define-key, edt-bottom-check, edt-sentence-forward)
(edt-sentence-backward, edt-paragraph-forward)
(edt-paragraph-backward, edt-restore-key, edt-window-top)
(edt-window-bottom, edt-scroll-window-backward-line)
(edt-line-to-bottom-of-window, edt-line-to-middle-of-window)
(edt-goto-percentage, edt-display-the-time, edt-remember)
(edt-split-window, edt-load-keys, edt-emulation-on)
(edt-emulation-off, edt-default-emulation-setup)
(edt-user-emulation-setup, edt-select-default-global-map)
(edt-select-user-global-map): Remove XEmacs compat code.

5 years agoMove the "Skeleton Language" node to later in the manual
Lars Ingebrigtsen [Wed, 9 Oct 2019 18:07:56 +0000 (20:07 +0200)]
Move the "Skeleton Language" node to later in the manual

* doc/misc/autotype.texi (Skeleton Language): Move this low-level
node to after the more user-facing nodes (bug#20780).

5 years agoAdd a letrec example to the manuel
Lars Ingebrigtsen [Wed, 9 Oct 2019 17:27:17 +0000 (19:27 +0200)]
Add a letrec example to the manuel

* doc/lispref/variables.texi (Local Variables): Add a letrec example.

5 years agoTweak letrec documentation
Lars Ingebrigtsen [Wed, 9 Oct 2019 16:42:36 +0000 (18:42 +0200)]
Tweak letrec documentation

* doc/lispref/variables.texi (Local Variables): Compare letrec to
let* instead of let.

5 years agotime-stamp: revert recent change to "%04y"
Stephen Gildea [Wed, 9 Oct 2019 16:19:10 +0000 (09:19 -0700)]
time-stamp: revert recent change to "%04y"

* time-stamp.el (time-stamp-string-preprocess): Revert change to "%04y"
format made 2 weeks ago by commit 0e56883878 (the previous commit to
this file).  Although undocumented, "%04y" was discovered to be in use
in the wild (2016) and had not issued a warning that it would change.
Add a warning that it will change.

* time-stamp-tests.el (time-stamp-test-year-2digit): add test of "%04y"

5 years agoWarn about missing executables in RST PDF preview
Simen Heggestøyl [Sat, 27 Jan 2018 11:18:40 +0000 (12:18 +0100)]
Warn about missing executables in RST PDF preview

* lisp/textmodes/rst.el (rst-compile-pdf-preview): Warn about missing
executables when attempting to compile and preview an RST file as PDF.
(Bug#30063)

5 years agoExpand testing of time-stamp format "%y"
Stephen Gildea [Wed, 9 Oct 2019 16:06:23 +0000 (09:06 -0700)]
Expand testing of time-stamp format "%y"

* time-stamp-tests.el (time-stamp-test-year): break into two tests,
time-stamp-test-year-2digit and time-stamp-test-year-4digit.  Expand
time-stamp-test-year-2digit to look more like tests for other 2-digit
conversions.

5 years agoSilence compiler warning
Juanma Barranquero [Wed, 9 Oct 2019 13:43:07 +0000 (15:43 +0200)]
Silence compiler warning

* src/w32.c (acl_to_text): Add ATTRIBUTE_MALLOC.

5 years ago; Fix typo in previous commit
Robert Pluim [Wed, 9 Oct 2019 13:16:07 +0000 (15:16 +0200)]
; Fix typo in previous commit

* lisp/replace.el (query-replace-read-from): Fix typo in docstring.

5 years agoExpand documentation on Lisp variables defined in C sources
Robert Pluim [Wed, 9 Oct 2019 13:12:18 +0000 (15:12 +0200)]
Expand documentation on Lisp variables defined in C sources

* doc/lispref/internals.texi (Writing Emacs Primitives): Add
description of DEFVAR_* arguments.  Describe variable naming
conventions.  Explain how to express quoting of symbols in C, plus
'specbind' and how to create buffer-local variables.

5 years ago* doc/misc/tramp.texi (Remote shell setup): Howto configure local shell.
Michael Albinus [Wed, 9 Oct 2019 11:56:58 +0000 (13:56 +0200)]
* doc/misc/tramp.texi (Remote shell setup): Howto configure local shell.

5 years agoSupport zsh as local shell in Tramp (Bug#31924)
Michael Albinus [Wed, 9 Oct 2019 10:58:43 +0000 (12:58 +0200)]
Support zsh as local shell in Tramp (Bug#31924)

* lisp/net/tramp-sh.el (tramp-sh-extra-args): Extend zsh
arguments.  Add :version.
(tramp-maybe-open-connection): Use extra args for
`tramp-encoding-shell'.  (Bug#31924)

5 years agoImplement offsets for absolute line numbers
Juanma Barranquero [Wed, 9 Oct 2019 10:49:39 +0000 (12:49 +0200)]
Implement offsets for absolute line numbers

* src/xdisp.c (syms_of_xdisp) <display-line-numbers-offset>:
New variable to add an offset to absolute line numbers.
(syms_of_xdisp) <display-line-numbers>: Mention it in docstring.
(maybe_produce_line_number): Use it.

* doc/emacs/display.texi (Display Custom): Document it.

* etc/NEWS (value): Announce it.

* lisp/frame.el: Add `display-line-numbers-offset' to list of
variables which should trigger redisplay of the current buffer.

5 years agoDo not use tick faces beyond ZV (bug#37641)
Juanma Barranquero [Wed, 9 Oct 2019 10:36:57 +0000 (12:36 +0200)]
Do not use tick faces beyond ZV (bug#37641)

* src/xdisp.c (maybe_produce_line_number): Check beyond_zv
before using a tick face for the line number.  Move all face
selection code outside the loop that draws the line number.

5 years agoImprove doc strings in replace.el
Eli Zaretskii [Wed, 9 Oct 2019 10:08:01 +0000 (13:08 +0300)]
Improve doc strings in replace.el

* lisp/replace.el (query-replace-read-from)
(query-replace-compile-replacement, query-replace-read-to)
(replace-string, replace-regexp, occur-mode-goto-occurrence)
(occur-next-error, occur-rename-buffer, multi-occur)
(multi-occur-in-matching-buffers): Describe all arguments in
doc strings.  (Bug#31207)

5 years agoFix minor Texinfo errors in ELisp manual
Eli Zaretskii [Wed, 9 Oct 2019 09:29:21 +0000 (12:29 +0300)]
Fix minor Texinfo errors in ELisp manual

* doc/lispref/errors.texi (Standard Errors): Fix incorrect
usage of @xref commands.  (Bug#37660)
* doc/lispref/internals.texi (Buffer Internals): Fix markup.
(Bug#37639)

5 years agoEnsure that the pulse overlay is visible
Lars Ingebrigtsen [Wed, 9 Oct 2019 08:41:27 +0000 (10:41 +0200)]
Ensure that the pulse overlay is visible

* lisp/cedet/pulse.el (pulse-momentary-highlight-overlay): Make
the pulse overlay have priority over the marked-region overlay
(bug#29173).

5 years agoProtect against unlikely case of [menu-bar] not being bound
Lars Ingebrigtsen [Wed, 9 Oct 2019 07:45:07 +0000 (09:45 +0200)]
Protect against unlikely case of [menu-bar] not being bound

* lisp/recentf.el (recentf-show-menu):
(recentf-hide-menu): The [menu-bar] key may be unbound (bug#25191).

5 years agoAdd some sanity checks to dired-x.el key bindings
Lars Ingebrigtsen [Wed, 9 Oct 2019 07:38:11 +0000 (09:38 +0200)]
Add some sanity checks to dired-x.el key bindings

* lisp/dired-x.el: Ensure that prefix keys haven't be rebound to
commands before adding keystrokes (bug#25190).

5 years agoAllow global-edebug-prefix to be nil
Lars Ingebrigtsen [Wed, 9 Oct 2019 07:26:58 +0000 (09:26 +0200)]
Allow global-edebug-prefix to be nil

* lisp/emacs-lisp/edebug.el (global-edebug-prefix): Allow
global-edebug-prefix to be nil (if the user doesn't want that
prefix) (bug#25188).

5 years agoFix possible initialisation error in shell-mode-map
Lars Ingebrigtsen [Wed, 9 Oct 2019 07:22:38 +0000 (09:22 +0200)]
Fix possible initialisation error in shell-mode-map

* lisp/shell.el (shell-mode-map): Comint is the parent mode, so
there's no need to explicitly make it a parent map here (bug#25187).

5 years agoUpcase parameters in things like "&optional (arg 3)"
Lars Ingebrigtsen [Wed, 9 Oct 2019 07:06:33 +0000 (09:06 +0200)]
Upcase parameters in things like "&optional (arg 3)"

* lisp/help.el (help--make-usage): Upcase cl-defgeneric (etc)
parameter names (bug#23517).

5 years agoBury the help buffer after sending a bug report
Lars Ingebrigtsen [Wed, 9 Oct 2019 05:31:24 +0000 (07:31 +0200)]
Bury the help buffer after sending a bug report

* lisp/mail/emacsbug.el (report-emacs-bug-hook): Bury the help
buffer after sending the bug report (bug#22712).

5 years agoFix up previous visit-tags-table change
Hong Xu [Wed, 9 Oct 2019 05:03:33 +0000 (07:03 +0200)]
Fix up previous visit-tags-table change

* lisp/progmodes/etags.el (visit-tags-table): Reimplement
`tags--find-default-tags-dir-recursively' using the much simpler
`locate-dominating-file'. Following up bug#37518.

5 years agoMove point in the dired buffer with `n'/`p' in an image-mode buffer
Lars Ingebrigtsen [Wed, 9 Oct 2019 05:00:34 +0000 (07:00 +0200)]
Move point in the dired buffer with `n'/`p' in an image-mode buffer

* lisp/image-mode.el (image-next-file): If the image is in a dired
buffer, then move point in that buffer when advancing
(bug#21752).  This makes it easier to select images.

5 years agoFix typos in lisp/*.el
Juanma Barranquero [Wed, 9 Oct 2019 04:15:29 +0000 (06:15 +0200)]
Fix typos in lisp/*.el

* lisp/emacs-lisp/generator.el (cps--with-value-wrapper)
(cps-inhibit-atomic-optimization, iter-close):
* lisp/gnus/nnir.el (nnir-imap-search-arguments)
(nnir-imap-search-argument-history, nnir-categorize)
(nnir-ignored-newsgroups)
(nnir-retrieve-headers-override-function)
(nnir-imap-default-search-key, nnir-namazu-additional-switches)
(gnus-group-make-nnir-group, nnir-add-result)
(nnir-compose-result, nnir-run-imap, nnir-imap-make-query)
(nnir-imap-query-to-imap, nnir-imap-expr-to-imap)
(nnir-imap-next-term, nnir-run-swish-e, nnir-run-namazu)
(nnir-read-parm, nnir-read-server-parm, nnir-search-thread):
Trivial doc fixes.

5 years agoDocument `letrec'
Lars Ingebrigtsen [Wed, 9 Oct 2019 04:06:24 +0000 (06:06 +0200)]
Document `letrec'

* doc/lispref/variables.texi (Local Variables): Document letrec
(bug#21048).

* lisp/subr.el (letrec): Expand the doc string slightly.

5 years agoMake menu bar entries only point to named functions, not lambdas
Lars Ingebrigtsen [Wed, 9 Oct 2019 03:27:03 +0000 (05:27 +0200)]
Make menu bar entries only point to named functions, not lambdas

* lisp/menu-bar.el ()
(menu-bar--display-line-numbers-mode-visual)
(menu-bar--display-line-numbers-mode-relative)
(menu-bar--display-line-numbers-mode-absolute)
(menu-bar--display-line-numbers-mode-none)
(menu-bar--visual-line-mode-enable)
(menu-bar--toggle-truncate-long-lines)
(menu-bar--wrap-long-lines-window-edge): Make lambdas into trivial
wrapper functions so that `C-h k' on the menu items work (bug#13841).
(menu-bar-showhide-line-numbers-menu)
(menu-bar-line-wrapping-menu): Use them.

5 years agoAdd more sanity checks to help-fns--globalized-minor-mode
Lars Ingebrigtsen [Wed, 9 Oct 2019 03:13:07 +0000 (05:13 +0200)]
Add more sanity checks to help-fns--globalized-minor-mode

* lisp/help-fns.el (help-fns--globalized-minor-mode): FUNCTION can
be a lambda, so protect against that.

5 years agoMake add-face-text-property not be destructive on strings
Lars Ingebrigtsen [Wed, 9 Oct 2019 03:08:32 +0000 (05:08 +0200)]
Make add-face-text-property not be destructive on strings

* src/textprop.c (add_properties): Take a parameter to say whether
it's allowed to be destructive or not (bug#20153).
(add_text_properties_1): Ditto.
(Fadd_face_text_property): Use this to say that it shouldn't
modify face properties on strings destructively.  This avoids
altering the face properties of one string when altering them on a
copy of the string.

5 years agoMake `info-display-manual' pop up the correct frame
Lars Ingebrigtsen [Wed, 9 Oct 2019 02:10:41 +0000 (04:10 +0200)]
Make `info-display-manual' pop up the correct frame

* lisp/info.el (info-display-manual): If the buffer is already in
a window, use that window (bug#20020).

5 years agoMake a nil parameter switch variable-pitch-mode on
Lars Ingebrigtsen [Wed, 9 Oct 2019 01:55:09 +0000 (03:55 +0200)]
Make a nil parameter switch variable-pitch-mode on

* lisp/face-remap.el (variable-pitch-mode): Make a nil parameter
switch the mode on instead of toggling (bug#19384).

5 years agoRemove XEmacs compat code from prolog.el
Lars Ingebrigtsen [Wed, 9 Oct 2019 01:11:15 +0000 (03:11 +0200)]
Remove XEmacs compat code from prolog.el

* lisp/progmodes/prolog.el (prolog-mode-syntax-table)
(prolog-help-info, prolog-Info-follow-nearest-node)
(prolog-menu-help, prolog-edit-menu-runtime)
(prolog-inferior-menu-all): Remove XEmacs compat code.

5 years agoRemove some XEmacs compat code from tree-widget.el
Lars Ingebrigtsen [Wed, 9 Oct 2019 00:53:11 +0000 (02:53 +0200)]
Remove some XEmacs compat code from tree-widget.el

* lisp/tree-widget.el (tree-widget-themes-load-path)
(tree-widget-use-image-p, tree-widget-create-image)
(tree-widget-image-formats, tree-widget-image-properties)
(tree-widget-lookup-image): Remove XEmacs compat code.

5 years agoRemove some XEmacs compat code from newst*.el
Lars Ingebrigtsen [Wed, 9 Oct 2019 00:46:17 +0000 (02:46 +0200)]
Remove some XEmacs compat code from newst*.el

* lisp/net/newst-plainview.el
(newsticker--plainview-tool-bar-map): Remove XEmacs support.

* lisp/net/newst-treeview.el (newsticker-treeview-tool-bar-map):

5 years agoFilter packages by name in list-packages. (Bug#36981)
Federico Tedin [Thu, 26 Sep 2019 17:18:58 +0000 (19:18 +0200)]
Filter packages by name in list-packages. (Bug#36981)

* lisp/emacs-lisp/package.el (package-menu-filter-by-name): New
function to filter packages by name.
(package-menu-clear-filter): New function to clear applied filters.
(package-menu-filter-by-keyword): Rename function from
package-menu-filter.
(package-menu--generate): Don't change 'q' binding anymore.
(package-menu-mode-map): Bind '/ n' to package-menu-filter-by-name, '/
k' to package-menu-filter-by-keyword and '/ /' to
package-menu-clear-filter.
(package-menu-mode-menu): Update menu entries for the three functions.
* test/lisp/emacs-lisp/package-tests.el (package-test-list-filter-by-name)
(package-test-list-clear-filter): New tests.
* doc/emacs/package.texi: Document usage of
package-menu-filter-by-name, package-menu-clear-filter and update
reference to package-menu-filter-by-keyword.
* etc/NEWS: Announce changes.

5 years agoSearch upward from current dir for the default TAGS file
Hong Xu [Tue, 8 Oct 2019 16:43:47 +0000 (18:43 +0200)]
Search upward from current dir for the default TAGS file

* doc/emacs/maintaining.texi (Select Tags Table): Update the doc
of `visit-tags-table' (bug#37518).
* lisp/progmodes/etags.el (tags--find-default-tags-dir-recursively)
(visit-tags-table): Search upward from current dir for the default
TAGS file.

5 years agoFix title inconsistencies in elisp intro book
Stefan Kangas [Tue, 8 Oct 2019 16:30:39 +0000 (18:30 +0200)]
Fix title inconsistencies in elisp intro book

* doc/lispintro/emacs-lisp-intro.texi: Fix title
inconsistencies.  (Bug#31037)