1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-19 01:10:57 -08:00
Commit graph

139572 commits

Author SHA1 Message Date
Lars Ingebrigtsen
193ece8d32 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).
2019-10-12 20:57:43 +02:00
Eli Zaretskii
7d3404d34d ; Improve a doc string in etags.el
* lisp/progmodes/etags.el (tags-complete-tags-table-file):
Improve the doc string.  (Bug#37538)
2019-10-12 21:55:59 +03:00
Michael Albinus
15ed1598b5 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.
2019-10-12 12:20:55 +02:00
Michael Albinus
251c215f65 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.
2019-10-12 12:20:30 +02:00
Michael Albinus
9c30c3bee0 * lisp/net/tramp.el (tramp-handle-access-file): Use `file-truename'. 2019-10-12 12:19:59 +02:00
Alan Mackenzie
55fdbec443 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.
2019-10-12 09:30:23 +00:00
Eli Zaretskii
933c0bb96e ; * lisp/progmodes/grep.el (lgrep, rgrep, zrgrep): Fix doc wording. 2019-10-12 09:52:03 +03:00
Lars Ingebrigtsen
32c500df99 tool-bar-map doc string clarification
* lisp/tool-bar.el (tool-bar-map): Try to clarify how this
variable is used (bug#17709).
2019-10-12 07:30:36 +02:00
David Röthlisberger
f2c5ba71e4 Fix `shell' doc keymap expansions
* lisp/shell.el (shell): Make the commands be expanded in the
correct keymap (bug#11202).

Copyright-paperwork-exempt: yes
2019-10-12 07:10:27 +02:00
Lars Ingebrigtsen
e03afa50ee diary-mark-entries-hook doc string clarification
* lisp/calendar/diary-lib.el (diary-mark-entries-hook): Mention
dynamically bound variables (bug#9287).
2019-10-12 07:06:54 +02:00
Lars Ingebrigtsen
adb9dc4bff Document :match-inline widget elements
* doc/lispref/customize.texi (Type Keywords): Document
:match-inline (bug#8716).
(Splicing into Lists): Mention :match-inline.
2019-10-12 06:40:49 +02:00
Paul Eggert
4b60e0722d 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.
2019-10-11 18:24:19 -07:00
Lars Ingebrigtsen
f9d8babe6a 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).
2019-10-11 22:28:27 +02:00
Lars Ingebrigtsen
6f66d813ba 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.
2019-10-11 22:13:43 +02:00
Lars Ingebrigtsen
3f8885638a 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.
2019-10-11 21:58:26 +02:00
Lars Ingebrigtsen
8e4a090ff7 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.
2019-10-11 21:36:38 +02:00
Alan Mackenzie
255c892b48 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.
2019-10-11 19:10:11 +00:00
Stefan Monnier
a93dceda3f * 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.
2019-10-11 13:54:30 -04:00
Andrea Corallo
421db07d06 * 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.
2019-10-11 12:18:21 -04:00
Stefan Kangas
65cda95be4 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)
2019-10-11 15:59:42 +02:00
Robert Pluim
de063da61b 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.
2019-10-11 14:17:08 +02:00
Michael Albinus
b259bf63c7 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.
2019-10-11 13:50:34 +02:00
Stefan Kangas
552c20ce39 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.
2019-10-11 13:01:13 +02:00
Martin Rudalics
505550ba7b Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs 2019-10-11 09:27:55 +02:00
Martin Rudalics
64b80b42c6 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'.
2019-10-11 09:26:41 +02:00
Lars Ingebrigtsen
85b3d56276 New variable amalgamating-undo-limit
* doc/lispref/text.texi (Undo): Document it.

* lisp/simple.el (amalgamating-undo-limit): New variable (bug#31658).
2019-10-11 09:24:30 +02:00
Robert Pluim
49614ec800 Correct .dir-locals-2.el description
* doc/lispref/variables.texi (Directory Local Variables): Correct
description of .dir-locals-2.el functioning.  (Bug#37640)
2019-10-11 09:19:59 +02:00
Lars Ingebrigtsen
17fea5ba38 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).
2019-10-11 09:05:25 +02:00
Martin Rudalics
e3f97d7365 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.
2019-10-11 08:46:52 +02:00
Lars Ingebrigtsen
fcfe6e2797 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).
2019-10-11 08:28:20 +02:00
Lars Ingebrigtsen
df713b9344 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'.
2019-10-11 08:27:50 +02:00
Jordon Biondo
88f0c5662d Allow setq-local to set more than one variable
* lisp/subr.el (setq-local): Allow taking pairs of values (bug#26923).
2019-10-11 07:58:42 +02:00
Lars Ingebrigtsen
b5d2c6ee01 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).
2019-10-11 07:46:41 +02:00
Stefan Kangas
ffb7100750 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'.
2019-10-11 02:16:11 +02:00
Juri Linkov
bb392a9c8d * lisp/subr.el (ctl-x-t-prefix): Bind new alias or ctl-x-6-map to 'C-x t'. 2019-10-11 01:45:54 +03:00
Stefan Monnier
e776ba66a3 * lisp/tree-widget.el: Use lexical-binding
Remove redundant `:group`s.
(tree-widget--locate-sub-directory): Rewrite.
2019-10-10 17:44:59 -04:00
Andreas Schwab
19e0a28c4e * lisp/progmodes/compile.el
(compilation-transform-file-match-alist): Remove bogus Makefile match.
2019-10-10 18:29:43 +02:00
Stephen Gildea
fc7b20056a 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.
2019-10-10 09:22:52 -07:00
Eli Zaretskii
d129c10302 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.
2019-10-10 14:50:11 +03:00
Paul Eggert
288e00d69a 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".
2019-10-10 00:16:21 -07:00
Juanma Barranquero
b3314ac5c4 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.
2019-10-10 06:00:20 +02:00
Damien Cassou
46d11bcfa3 checkdoc CL tests
* test/lisp/emacs-lisp/checkdoc-tests.el: Add cl-lib-related tests
(bug#37063).
2019-10-10 02:19:10 +02:00
dick r. chiang
b9211d0bc2 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
2019-10-10 02:18:20 +02:00
Lars Ingebrigtsen
9ab3f16c46 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).
2019-10-10 01:57:54 +02:00
Lars Ingebrigtsen
ccea37f6ac 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).
2019-10-10 01:34:14 +02:00
Lars Ingebrigtsen
3f594fef9e 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.
2019-10-10 01:19:33 +02:00
Lars Ingebrigtsen
e4efab3f03 Clarify documentation of show-help-function slightly
* doc/lispref/text.texi (Special Properties): Clarify where the
example in Tooltip mode is (bug#35392).
2019-10-10 00:51:55 +02:00
Juri Linkov
235b8b3a6d * 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.
2019-10-10 01:42:56 +03:00
Lars Ingebrigtsen
4d6c1260ea 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.
2019-10-09 22:46:05 +02:00
Lars Ingebrigtsen
9c81149ae9 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.
2019-10-09 21:55:45 +02:00