Eli Zaretskii
bb652f68fd
New Rmail option 'rmail-show-message-set-modified'
...
* lisp/mail/rmail.el (rmail-show-message-set-modified): New
option.
(rmail-show-message-1): If 'rmail-show-message-set-modified' is
non-nil, don't reset the buffer's modified state. (Bug#45941)
* etc/NEWS: Announce the new option.
2021-01-30 11:26:07 +02:00
Lars Ingebrigtsen
32dc433dbb
Fix vc-hg-rename-file on file names like ~/foo/bar
...
* lisp/vc/vc-hg.el (vc-hg-rename-file): Use absolute file names,
because hg doesn't like getting file names like "~/foo/bar"
(bug#36932).
2021-01-30 08:59:48 +01:00
Jeff Spencer
cc2d3a62c2
Fix interaction between two dired cleanup variables
...
* lisp/dired.el (dired-clean-up-after-deletion): Kill the buffers
if you have `dired-clean-up-buffers-too' set and
`dired-clean-confirm-killing-deleted-buffers' nil (bug#38037).
Copyright-paperwork-exempt: yes
2021-01-30 08:12:57 +01:00
Lars Ingebrigtsen
0fa2a715d4
Improve :foreground description in the manual
...
* doc/lispref/frames.texi (Font and Color Parameters): Make the
description less confusing (bug#38710).
2021-01-30 07:59:30 +01:00
Mauro Aranda
5644ac41c4
Add source to sgml-empty-tags
...
* lisp/textmodes/sgml-mode.el (html-mode): Add "source" as an empty
tag to fix indentation when this element is present (bug#46181).
2021-01-30 07:47:34 +01:00
Lars Ingebrigtsen
90ce2b8034
rmail-summary-mark-deleted optional argument fix
...
* lisp/mail/rmailsum.el (rmail-summary-mark-deleted): Argument N
is optional, so don't assume that it's a number (bug#39076).
2021-01-30 06:58:49 +01:00
Dmitry Gutov
bbad7904e2
vc-dir-mode-map: Remove the mouse-2 binding
...
* lisp/vc/vc-dir.el (vc-dir-mode-map):
Remove the mouse-2 binding (bug#13692).
(vc-dir-mode): Update the docstring accordingly.
(vc-dir-status-mouse-map): New variable.
(vc-default-dir-printer): Use it on the state buttons.
* lisp/vc/vc-git.el (vc-git-dir-printer): Same.
2021-01-30 03:56:47 +02:00
Stefan Kangas
f3f6e84ca6
Use lexical-binding in mpuz.el
...
* lisp/play/mpuz.el: Use lexical-binding. Remove redundant :group
args.
(mpuz-switch-to-window): Minor cleanup.
2021-01-30 00:33:15 +01:00
Stefan Kangas
1a4bb1e2f2
Use lexical-binding in handwrite.el
...
* lisp/play/handwrite.el: Use lexical-binding. Remove redundant
:group args. Minor cleanups.
(handwrite): Minor cleanups.
(handwrite-set-pagenumber-off, handwrite-set-pagenumber-on): Make
comments into docstrings.
2021-01-30 00:32:52 +01:00
Stefan Monnier
295de50329
* test/lisp/electric-tests.el: Fix switch to lexical-binding.
...
(define-electric-pair-test): Don't presume that function values are
self-evaluating.
2021-01-29 16:49:12 -05:00
Mattias Engdegård
7415c66d8b
; * src/process.c (child_signal_read): Don't report EAGAIN as error
2021-01-29 22:28:41 +01:00
Stefan Kangas
47147db9b0
; Silence byte-compiler
...
* lisp/net/sasl-ntlm.el (sasl-ntlm-request):
* lisp/net/sasl.el (sasl-plain-response, sasl-login-response-1)
(sasl-login-response-2, sasl-anonymous-response): Fix warnings
introduced by my previous commit.
2021-01-29 21:06:02 +01:00
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