1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-14 09:39:42 +00:00
Commit Graph

150156 Commits

Author SHA1 Message Date
Mattias Engdegård
5252c45850 Initialise unread buffer
The reader has an extra 1-char unread buffer that was incorrectly
initialised to 0, which means that the first character read would
always be NUL.  As this is often the code that looks for the
lexical-binding cookie, the first loaded source module would be
treated as dynamically bound.  During bootstrapping this is loadup.el
and so its local variables got dumped into the global environment.

* src/lread.c (unread_char): Initialise to empty.
(Fload): Initialise here too just in case.
2021-09-19 16:22:29 +02:00
Stefan Kangas
83508013a8 checkdoc: Verify format of yes-or-no-p and format-message
* lisp/emacs-lisp/checkdoc.el (checkdoc-message-text-next-string):
Check also for "yes-or-no-p" and "format-message".  Convert regexps to
use rx.
2021-09-19 15:55:06 +02:00
Stefan Kangas
8772d81966 ; Some more docfixes for erc/*.el 2021-09-19 13:21:56 +02:00
Stefan Kangas
17e8c34273 ; Stylistic docfixes in language/*.el found by checkdoc 2021-09-19 13:15:41 +02:00
Stefan Kangas
222a7a1a8a Flag checkdoc-symbol-words as a :safe variable
* lisp/emacs-lisp/checkdoc.el (checkdoc-symbol-words): Flag as a safe
file local variable.
2021-09-19 13:13:56 +02:00
Stefan Kangas
4fdb150769 ; Stylistic docfixes in erc/*.el found by checkdoc 2021-09-19 12:59:55 +02:00
Stefan Kangas
434c176e06 ; Stylistic docfixes in eshell/*.el found by checkdoc 2021-09-19 12:59:55 +02:00
Phil Sainty
68b190c8b4 ; * lisp/subr.el (setq-local): Fix docstring quotes (bug#50646) 2021-09-19 22:40:12 +12:00
Eli Zaretskii
fe4a26d896 Teach Mail mode to request Disposition Notifications
* lisp/mail/sendmail.el (mail-insert-disposition-notification-to):
New function.
(mail-mode-map): Add it to key bindings and menu bar.
2021-09-19 11:44:22 +03:00
Mattias Engdegård
7880d3079d ; * lisp/cedet/semantic/symref/grep.el: Use grep quoting, not egrep.
Kindly noticed by Dmitry Gutov.
2021-09-19 09:33:21 +02:00
Amin Bandali
bc59c98f09
Add new '/opme' and '/deopme' convenience ERC commands
* lisp/erc/erc.el (erc-cmd-OPME, erc-cmd-DEOPME): Add convenience
commands for setting and unsetting the operator status on the current
nick in the current channel.  'erc-cmd-OPME' relies on ChanServ for
obtaining the operator status (see doc string for more details).

* etc/NEWS: Announce the addition of the commands.
2021-09-18 23:37:37 -04:00
Stefan Kangas
fc8df2561b Revert previous mode-line-modes change to unbreak bootstrap
* lisp/bindings.el (mode-line-modes): Revert previous change to
unbreak bootstrap.
2021-09-19 01:17:16 +02:00
Lars Ingebrigtsen
252d06dd5d Viper doc string fix
* lisp/emulation/viper-keym.el (viper-want-ctl-h-help): Fold
over-long first line.
2021-09-19 00:14:42 +02:00
Lars Ingebrigtsen
155dba9432 Fix viper-util compilation warning
* lisp/emulation/viper-util.el (cl-lib): Require for cl-subseq.
2021-09-19 00:13:21 +02:00
Stefan Kangas
a602d548df ; Stylistic docfixes in emulation/*.el found by checkdoc 2021-09-18 23:42:24 +02:00
Stefan Kangas
dd3f6b13f6 * etc/NEWS: Shorten entry on move to Libera.Chat. 2021-09-18 23:26:25 +02:00
Stefan Kangas
c1e45419c7 Use command substitution in checkdoc-recursive-edit
* lisp/emacs-lisp/checkdoc.el (checkdoc-recursive-edit): Use command
substitution.
(checkdoc--help-buffer): New variable.  Use it instead of hard-coded
string.
2021-09-18 23:26:25 +02:00
Stefan Kangas
ec0527d8e9 Use command substitution for exit-recursive-edit
* lisp/bindings.el (mode-line-modes):
* lisp/emacs-lisp/checkdoc.el (checkdoc-recursive-edit): Use command
substitution for 'exit-recursive-edit'.
2021-09-18 23:26:18 +02:00
Juri Linkov
4b3dc7a139 * lisp/subr.el (string-replace): Add dashes to arg names (bug#50644)
* lisp/net/tramp-compat.el (tramp-compat-string-replace): Idem.
* doc/lispref/searching.texi (Search and Replace): Idem.
2021-09-18 21:43:18 +03:00
Eli Zaretskii
acba74a395 ; Clarify recently added documentation
* etc/NEWS:
* doc/emacs/help.texi (Name Help): Clarify documentation of
'help-enable-symbol-autoload'.
2021-09-18 21:04:07 +03:00
Arthur Miller
c53aff5de7 Add new help-enable-symbol-autoload user option
* lisp/help-fns.el (help-fns--analyze-function): Use it.
* lisp/help-fns.el (help-enable-symbol-autoload): New user option.
* doc/emacs/help.texi (Name Help): Document it.
2021-09-18 19:51:47 +02:00
Lars Ingebrigtsen
32d85f7b89 Mention xref-quit-and-pop-marker-stack in the manual
* doc/emacs/maintaining.texi (Xref Commands): Mention
xref-quit-and-pop-marker-stack in the manual.
2021-09-18 18:32:22 +02:00
Lars Ingebrigtsen
bd6dca038e Do some xwidget NEWS markup (and adjust doc string)
* lisp/xwidget.el (xwidget-webkit-bookmark-make-record): Mention
`xwidget-webkit-bookmark-jump-new-session' in the doc string.
2021-09-18 18:18:13 +02:00
Lars Ingebrigtsen
c19576759f Make argument optional in pulse-momentary-highlight-one-line
* lisp/cedet/pulse.el (pulse-momentary-highlight-one-line): Make
POINT optional (bug#50642) so that the function can be used more
easily from some hook functions.
2021-09-18 18:18:13 +02:00
Phil Sainty
045a4fe94c ; * lisp/so-long.el (so-long-mode): Use `so-long-mode-line-active' face 2021-09-19 03:46:39 +12:00
Phil Sainty
bda9abb680 ; * lisp/so-long.el: Documentation
Clarify things which are only relevant to 'global-so-long-mode', and
not when the 'so-long' command, or one of its actions, is invoked
directly.

Use the new "customization group" hyperlink syntax.

Only quote 'so-long' as a symbol when it specifically refers to the
command (or will otherwise generate a hyperlink which is appropriate
to the context).  When referring to the library more generally, leave
it unquoted.

Changes from commit 63f419f133 are
reverted or improved.
2021-09-19 03:46:39 +12:00
Dan Ports
5444f607a6 Use the newest gcc installed by Macports
* configure.ac: There may be more than one gcc version installed
in Macports (bug#50649).  Use the newest.

Copyright-paperwork-exempt: yes
2021-09-18 16:04:38 +02:00
Basil L. Contovounesios
1b623d0fbf Fontify Libtool macros in autoconf-mode
* lisp/progmodes/autoconf.el (autoconf-font-lock-keywords): Apply
font-lock-keyword-face also to Libtool's LT_* macros (bug#50659).
2021-09-18 13:12:32 +01:00
Eli Zaretskii
83e3d8d879 Improve doc strings of a recent commit
* lisp/emacs-lisp/generator.el (iter-defun):
* lisp/emacs-lisp/comp.el (comp-clean-up-stale-eln):
* lisp/emacs-lisp/bytecomp.el (byte-compile-lapcode):
* lisp/emacs-lisp/autoload.el (autoload-insert-section-header):
Include description of arguments in the doc string's first line.
2021-09-18 14:56:55 +03:00
Mattias Engdegård
031e1c28f9 Regexp-quote literal symbols when grepping
`xref-find-references` was unable to find symbols like
`backquote-list*-macro`.

* lisp/cedet/semantic/symref/grep.el
(semantic-symref-grep--quote-extended): New function.
(semantic-symref-perform-search): Call it.
2021-09-18 13:45:03 +02:00
Stefan Kangas
dd1220b969 ; More stylistic docfixes in emacs-lisp/*.el found by checkdoc 2021-09-18 13:14:50 +02:00
Eli Zaretskii
11d6d6c3ea Fix performance degradation in commands that describe key bindings
* src/keymap.c (syms_of_keymap)
<describe-bindings-check-shadowing-in-ranges>: New variable.
(describe_vector): Check shadowing of consecutive keys only if
'describe-bindings-check-shadowing-in-ranges' is non-nil.  Remove
redundant second loop when VECTOR is a char-table.  Improve
comments.  Patch by Stefan Kangas <stefan@marxist.se>.  (Bug#45379)

* test/src/keymap-tests.el
(help--describe-vector/bug-9293-one-shadowed-in-range): Adapt the
test case for the new variable.
2021-09-18 13:23:48 +03:00
Stefan Kangas
c1356d3a05 * lisp/emacs-lisp/checkdoc.el: Doc fix; mention flymake. 2021-09-18 11:24:31 +02:00
Stefan Kangas
00b6a56f0a Do interactive mode tagging for checkdoc.el 2021-09-18 11:21:32 +02:00
Stefan Kangas
6084c7e0f4 checkdoc: Only look for commonly used modifier keys
* lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
Search for the modifier key "s-", but not the modifier key "A-".
The latter is very uncommon and leads to false positives.
2021-09-18 10:44:32 +02:00
Michael Albinus
2557c009bb Skip "fast" tests on emba CI
* test/infra/gitlab-ci.yml (stages): Comment "fast" stage out.
(test-fast-inotify): Comment out.
2021-09-18 10:23:32 +02:00
Eli Zaretskii
0788ab9e5c ; * lisp/loadup.el: Fix "Eager macro-expansion error" on w32. 2021-09-18 10:56:05 +03:00
Stefan Kangas
dc0f1eddd4 Add indent declaration to emerge-defvar-local
* lisp/vc/emerge.el (emerge-defvar-local): Add indent declaration
for docstring.  Fix wrongly indented callers.
2021-09-18 09:40:29 +02:00
Stefan Kangas
e0726bca40 Make doc argument of emerge-defvar-local optional
* lisp/vc/emerge.el (emerge-defvar-local): Make doc argument
optional.
2021-09-18 09:40:24 +02:00
Stefan Kangas
4dcbdb90d5 Make doc argument of ediff-defvar-local optional
* lisp/vc/ediff-init.el (ediff-defvar-local): Make DOC argument
optional.  Update callers passing the empty string to not use it.
2021-09-18 09:35:39 +02:00
Stefan Kangas
b2164df86b ; More stylistic docfixes in vc/*.el found by checkdoc 2021-09-18 09:35:29 +02:00
Eli Zaretskii
3e13433ea9 ; Improve the last change in NEWS. 2021-09-18 09:40:55 +03:00
Federico Tedin
4e21c5f451 Check for null bytes in filenames in 'expand-file-name' (bug#49723)
* src/fileio.c (expand-file-name): Check for null bytes for both
NAME and DEFAULT-DIRECTORY arguments.  Also check for null bytes
in buffer-local default-directory, assuming it is used.
* src/coding.c (encode_file_name): Use CHECK_STRING_NULL_BYTES.
* src/lisp.h (CHECK_STRING_NULL_BYTES): Add function for checking
for null bytes in Lisp strings.
* test/src/fileio-tests.el (fileio-test--expand-file-name-null-bytes):
Add test for new changes to expand-file-name.
* etc/NEWS: Announce changes.
2021-09-18 09:36:26 +03:00
Amin Bandali
62e870691d
* lisp/erc/erc.el: Add Package-Requires and URL headers. 2021-09-17 21:54:15 -04:00
Amin Bandali
931a898776
* etc/NEWS: Announce update of IRC-related references to point to Libera.Chat.
Also remove the note about freenode subdomain change, as it's not
relevant anymore.
2021-09-17 21:31:26 -04:00
Stefan Kangas
93731cdae0 ; * etc/NEWS: Fix typos. 2021-09-18 01:17:50 +02:00
Stefan Kangas
fe22e3b52c Update refcard to mention iconify before suspend
* etc/refcards/refcard.tex (section{Leaving Emacs}): Put iconify
Emacs ahead of suspend.
2021-09-17 22:57:53 +02:00
Stefan Kangas
b6bff3ba79 checkdoc: 'y-or-n-p' no longer needs space
* lisp/emacs-lisp/checkdoc.el (checkdoc-message-text-engine):
Change 'y-or-n-p' check to accept prompt ending with both "? " or "?",
that is, it no longer needs the space.  (Bug#50621)
(checkdoc--fix-y-or-n-p): New helper function.
* test/lisp/emacs-lisp/checkdoc-tests.el (checkdoc-tests-fix-y-or-n-p)
(checkdoc-tests-fix-y-or-n-p/no-change)
(checkdoc-tests-fix-y-or-n-p/with-space): New tests.
2021-09-17 22:24:12 +02:00
Robert Pluim
174430e351 ; Fix etc/NEWS merge error
* etc/NEWS: fix merge error
2021-09-17 20:56:33 +02:00
Robert Pluim
45989b0172 Move emoji fontset addition later
* lisp/international/fontset.el (setup-default-fontset): Move the
fontset addition for emoji script after that for various graphic-like
characters, since they overlap, and we want the emoji setting to win.
2021-09-17 20:56:33 +02:00