1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-30 09:00:31 -08:00
Commit graph

145063 commits

Author SHA1 Message Date
Stefan Kangas
c7a86cb7ec Use lexical-binding in sasl.el and add tests
* lisp/net/sasl.el:
* lisp/net/sasl-digest.el:
* lisp/net/sasl-cram.el:
* lisp/net/sasl-ntlm.el: Use lexical-binding.

* test/lisp/net/sasl-tests.el:
* test/lisp/net/sasl-cram-tests.el: New files.
2021-01-29 20:11:38 +01:00
Dmitry Gutov
e86b30d6fd (xref-revert-buffer): Also 'erase-buffer' when handling a user-error
* lisp/progmodes/xref.el (xref-revert-buffer):
Also 'erase-buffer' when handling a user-error (bug#46042).
2021-01-29 15:53:28 +02:00
Eli Zaretskii
75eb2d0e85 Support 'operating-system-release' on MS-Windows
* src/w32fns.c (w32_version_string) [WINDOWSNT]: New function.
* src/w32common.h (w32_version_string) [WINDOWSNT]: Add prototype.
* src/editfns.c (init_editfns) [WINDOWSNT]: Produce a non-nil
string with the OS version.
2021-01-29 13:52:31 +02:00
Michael Albinus
83591e1aec * test/lisp/net/tramp-tests.el (tramp--test-special-characters):
Adapt test for docker.
2021-01-29 12:25:36 +01:00
Juri Linkov
840b1c66b4 Use save-mark-and-excursion in query-replace-read-args (bug#45617) 2021-01-29 10:55:16 +02:00
Michael Albinus
4ce5646d59 Fix Bug#45518 in compile.el
* lisp/progmodes/compile.el (compilation-get-file-structure):
Avoid call of `file-truename' for remote files.  (Bug#45518)
2021-01-29 09:44:31 +01:00
Eli Zaretskii
ae2e2b6acd Improve doc string of 'operating-system-release'
* src/editfns.c (syms_of_editfns) <operating-system-release>: Doc
fix.  (Bug#39940)
2021-01-29 09:45:13 +02:00
Sean Whitton
19afd6de25 Fix previous commit regarding revert-buffer-function
* simple.el (shell-command, shell-command-on-region): Set
revert-buffer-function buffer-locally, not globally.  Also, avoid an
unnecessary call to (current-buffer) by taking advantage of the
closure (bug#46151).
2021-01-29 08:18:52 +01:00
Lars Ingebrigtsen
4e27a260e5 Describe pointer shapes in the manual
* doc/lispref/frames.texi (Pointer Shape): Describe what the
typical pointer shapes are (and add `nhdrag') (bug#39246).
2021-01-29 08:16:04 +01:00
Marco Wahl
d4e9d191ae Add a command for redisplay during keyboard macros
* doc/emacs/kmacro.texi (Basic Keyboard Macro): Document it
(bug#39252).

* lisp/kmacro.el (kdb-macro-redisplay): New function.
(kmacro-keymap): Bind it.
2021-01-29 08:01:12 +01:00
Lars Ingebrigtsen
1275dc4711 Improve fontifying of #| ... |# in `lisp-mode'
* lisp/emacs-lisp/lisp-mode.el (lisp-mode): Fontify the end
delimiter in #| ... |# correctly (bug#39820).
2021-01-29 07:40:06 +01:00
Lars Ingebrigtsen
3f92d00932 operating-system-release doc string improvement
* src/editfns.c (syms_of_editfns): Be more precise about what
`operating-system-release' is (bug#39940).
2021-01-29 07:22:14 +01:00
Lars Ingebrigtsen
9fb859010f flymake-diagnostic-beg/end doc string and error reporting improvement
* lisp/progmodes/flymake.el (flymake-diagnostic-beg):
(flymake-diagnostic-end): Improve doc string and error reporting
(bug#39971).
2021-01-29 07:15:35 +01:00
Lars Ingebrigtsen
0b80935d37 Fix position in empty buffers in checkdoc-file-comments-engine
* lisp/emacs-lisp/checkdoc.el (checkdoc-file-comments-engine):
Don't give invalid positions on empty buffers (bug#39987).
2021-01-29 07:04:47 +01:00
Sean Whitton
5f650422e4 Set revert-buffer-function in shell command output buffers
* simple.el (shell-command, shell-command-on-region): Set
revert-buffer-function in shell command output buffers (bug#46151).
2021-01-29 07:04:47 +01:00
Lars Ingebrigtsen
de51d94721 Mention using buffer-list-update-hook in recentf-mode
* lisp/recentf.el (recentf-mode): Mention using
`buffer-list-update-hook' (bug#46153).
2021-01-29 07:04:47 +01:00
Stefan Kangas
e52f2ec968 Remove Emacs 21 compat code from sasl.el
* lisp/net/sasl.el (sasl-read-passphrase): Remove compat code;
'read-passwd' is preloaded since Emacs 22.
2021-01-29 06:19:06 +01:00
Stefan Kangas
a27512e21c * lisp/flow-ctrl.el: Use lexical-binding.
* lisp/flow-ctrl.el (enable-flow-control): Minor cleanup.
2021-01-29 06:19:06 +01:00
Stefan Kangas
bab133e6d0 Use lexical-binding in find-cmd.el and add tests
* lisp/find-cmd.el: Use lexical-binding.
* test/lisp/find-cmd-tests.el: New file.
2021-01-29 06:19:06 +01:00
Lars Ingebrigtsen
3ddea271cc Slight gravatar.el code clean up
* lisp/image/gravatar.el (gravatar--service-libravatar): Clean the
code up slightly.
2021-01-29 05:52:51 +01:00
Stefan Monnier
887b03386f Merge branch 'master' of git+ssh://git.sv.gnu.org/srv/git/emacs into trunk 2021-01-28 18:10:29 -05:00
Stefan Kangas
cb97581870 Use lexical-binding in nroff-mode.el
* lisp/textmodes/nroff-mode.el: Use lexical-binding.  Remove
redundant :group args.
2021-01-28 22:06:35 +01:00
Stefan Kangas
a50fe43337 * lisp/progmodes/bat-mode.el: Use lexical-binding. 2021-01-28 21:57:51 +01:00
Stefan Kangas
ae7fe263b2 ; Fix my previous commit
* lisp/generic-x.el (generic-mode-ini-file-find-file-hook): Fix my
previous commit; for some reason 'function' produces a warning here
while 'quote' does not.
2021-01-28 21:57:51 +01:00
Stefan Kangas
554ec932ba Use lexical-binding in generic-x.el
* lisp/generic-x.el: Use lexical-binding.  Remove redundant :groups.
(generic-rul-mode-setup-function): Prefer setq-local.
2021-01-28 21:35:34 +01:00
Stefan Kangas
11c504c9d2 Define compat alias obsolete
* lisp/generic-x.el (generic-mode-ini-file-find-file-hook): Define
compat alias introduced after rename in 22.1 obsolete.
2021-01-28 21:34:31 +01:00
Stefan Monnier
991c8946b6 Use lexical-binding in all of lisp/emacs-lisp
* lisp/emacs-lisp/bindat.el: Use lexical-binding.
(bindat--unpack-group, bindat--length-group, bindat--pack-group):
Declare `last` and `tag` as dyn-scoped.
(bindat-unpack, bindat-pack): Bind `bindat-raw` and `bindat-idx` via
`let` rather than via the formal arglist.

* lisp/emacs-lisp/package-x.el:
* lisp/emacs-lisp/generic.el:
* lisp/emacs-lisp/eieio-opt.el:
* lisp/emacs-lisp/derived.el:
* lisp/emacs-lisp/crm.el: Use lexical-binding.

* lisp/emacs-lisp/helper.el: Use lexical-binding.
(Helper-help-map): Move initialization into declaration.

* lisp/emacs-lisp/regi.el: Use lexical-binding.
(regi-interpret): Remove unused var `tstart`.
Declare `curframe`, `curentry` and `curline` as dyn-scoped.

* lisp/emacs-lisp/shadow.el: Use lexical-binding.
(load-path-shadows-find): Remove unused var `file`.
Tighten a regexp, use `push`.

* lisp/emacs-lisp/tcover-ses.el: Use lexical-binding.  Require `ses`.
Remove correspondingly redundant declarations.
(ses--curcell-overlay): Declare.
(ses-exercise): Use `dlet` and use a properly-prefixed var name.
Fix name of `curcell-overlay` variable.

* lisp/emacs-lisp/unsafep.el: Use lexical-binding.
(unsafep): Bind `unsafep-vars` via `let` rather than via the formal arglist.
2021-01-28 14:42:21 -05:00
Juri Linkov
c8c4d65d65 Use isearch-tmm-menubar when tmm-menubar is called in isearch-mode (bug#43966)
* lisp/isearch.el (isearch-menu-bar-commands): Add tmm-menubar to defaults.
(isearch-mode-map): Remove remapping of tmm-menubar to isearch-tmm-menubar.

* lisp/tmm.el (tmm-menubar): Call isearch-tmm-menubar in isearch-mode.
2021-01-28 21:27:26 +02:00
Stefan Kangas
50c7de093a * lisp/wdired.el: Minor doc fixes. 2021-01-28 19:36:24 +01:00
Stefan Kangas
a8caa66906 Avoid recommending Google
* doc/misc/org.texi (Link Abbreviations):
* lisp/net/webjump.el (webjump-sample-sites):
* lisp/org/ol.el (org-link-shell-confirm-function)
(org-link-elisp-confirm-function):
* lisp/org/org.el (org-highlight-links):
* lisp/wdired.el: Avoid recommending Google.

squash! Avoid recommending Google
2021-01-28 19:36:12 +01:00
Stefan Kangas
aca93f6723 * lisp/leim/quail/viqr.el: Use lexical-binding. 2021-01-28 18:49:29 +01:00
Stefan Kangas
f782f1a8e0 * lisp/leim/quail/compose.el: Use lexical-binding. 2021-01-28 18:49:17 +01:00
Stefan Kangas
c407b54cf3 * lisp/ezimage.el: Use lexical-binding. 2021-01-28 18:43:15 +01:00
Stefan Monnier
592a230832 * src/fns.c (hash_string): Fix bug#46111
Use `memcpy` instead of an unaligned memory access.  On x86 at least,
GCC turns this `memcpy` into a single `mov`, so it's about as fast.
2021-01-28 12:27:27 -05:00
Stefan Kangas
b04f1c0cec Add cross-reference to with-eval-after-load
* lisp/subr.el (eval-after-load): Doc fix; add cross-reference to
'with-eval-after-load'.
2021-01-28 18:24:45 +01:00
Stefan Kangas
4cded88b0e * lisp/generic-x.el (hosts-generic-mode): Support IPv6 addresses. 2021-01-28 18:24:45 +01:00
Stefan Kangas
80d964ec8b Add missing file systems to etc-fstab-generic-mode
* lisp/generic-x.el (etc-fstab-generic-mode): Add entries for missing
file systems.
2021-01-28 18:24:45 +01:00
Stefan Kangas
6c601689a4 ; * lisp/dired-aux.el (dired-compress-files-alist): Minor doc fix. 2021-01-28 18:24:45 +01:00
Stefan Monnier
91f9d6788e * test/Makefile.in (emacs): Use the C locale
This fixes spurious test failures in my environment for
`diff-mode-test-font-lock-syntax-one-line` (where my `diff` otherwise
returns "No newline at end of file" in French) and for
various tests in `emacs-module-tests` because errors signal
"Abandon" instead of "Abort".
2021-01-28 12:13:43 -05:00
Michael Albinus
ac102bb966 * lisp/net/ange-ftp.el (ange-ftp-ls): Handle several "--dired" switches. 2021-01-28 15:09:29 +01:00
Michael Albinus
a8c4f8041c Simplify auto-revert buffer list by watch descriptor (Bug#44639)
* lisp/autorevert.el (auto-revert--buffer-by-watch-descriptor):
Rename from `auto-revert--buffers-by-watch-descriptor'.  Make it
an assoc list.
(auto-revert-notify-rm-watch, auto-revert-notify-add-watch)
(auto-revert-notify-handler): Adapt accordingly.  Based on a
patch provided by Spencer Baugh <sbaugh@catern.com>.  (Bug#44639)
2021-01-28 15:09:18 +01:00
Stefan Monnier
62233c9824 Use lexical-binding in lisp/{term,nxml,language}
* test/lisp/electric-tests.el:
* lisp/term/w32console.el:
* lisp/nxml/rng-util.el:
* leim/leim-ext.el: Use lexical-binding.

* lisp/international/titdic-cnv.el (tit-process-header)
(miscdic-convert):
* lisp/international/mule-cmds.el (leim-list-header):
* lisp/international/ja-dic-cnv.el (skkdic-convert):
Use lexical-binding in the generated file.
2021-01-28 08:43:15 -05:00
Lars Ingebrigtsen
0120f45db6 Protect against bad results from libravatar
* lisp/image/gravatar.el (gravatar--service-libravatar): Don't
have (gravatar-retrieve "foobar@zjp.codes" 'ignore) (which returns
a CNAME) bug out.
2021-01-28 13:10:45 +01:00
Lars Ingebrigtsen
64d4648869 Fix numerical `comment-padding' value
* lisp/newcomment.el (comment-padright): Allow using a number for
`comment-padding', like the doc string says (bug#40056).
2021-01-28 09:57:48 +01:00
Lars Ingebrigtsen
8992f8abf3 Make the default whitespace-enable-predicate' use derived-mode-p'
* lisp/whitespace.el (whitespace-enable-predicate): Use
`derived-mode-p' to check modes instead of `eq' (bug#40481).
2021-01-28 08:40:15 +01:00
Mattias M
e7e7ef1588 Fix fill-paragraph in asm-mode
* lisp/progmodes/asm-mode.el: The value of fill-prefix ought to be nil
not "\t" so that fill-context-prefix can do its thing. In fact,
fill-prefix does not have to be set at all becuase asm-mode derives
from prog-mode and fill-prefix is set in simple.el.

* test/lisp/progmodes/asm-mode-tests.el: Add relevant test (bug#41064).

Copyright-paperwork-exempt: yes
2021-01-28 07:34:10 +01:00
Lars Ingebrigtsen
0870ebb3cb Allow commenting out white space lines in latex-mode
* lisp/newcomment.el (comment-region-default-1): Allow commenting
out whitespace-only regions (bug#41793).

* lisp/textmodes/tex-mode.el (latex--comment-region): Use it.
(latex-mode): Set a comment style shim.
2021-01-28 07:09:18 +01:00
Lars Ingebrigtsen
e4c6670790 Fix Gnus icalendar button navigation
* lisp/gnus/gnus-icalendar.el (gnus-icalendar-insert-button): Mark
buttons correctly for TAB navigation (bug#46135).
2021-01-28 06:21:40 +01:00
Harald Jörg
9b01bc5682 perl-mode.el: Eliminate keywords which are not in Perl.
* lisp/progmodes/perl-mode.el (perl-imenu-generic-expression):
Remove keywords which are not part of Perl.
(perl-font-lock-keywords-2): Remove keywords which are not part of
Perl (bug#46024).  (These keywords are part of Raku; aka. Perl 6.)
2021-01-28 04:22:21 +01:00
João Távora
2a71831eb3 Allow project/xref packages to be used in Emacs 26.1
* lisp/progmodes/project.el: Change Package-Requires to Emacs 26.1
(bug#44671).

* lisp/progmodes/xref.el: Ditto.
2021-01-28 04:18:12 +01:00