Lars Ingebrigtsen
2daffe3550
Adjust defvar-keymap' and define-keymap' to the new syntax
...
* lisp/vc/smerge-mode.el (smerge-basic-map):
* lisp/vc/pcvs.el (cvs-mode-map):
(cvs-minor-mode-prefix):
* lisp/vc/log-view.el (log-view-mode-map):
* lisp/vc/log-edit.el (log-edit-mode-map):
* lisp/vc/diff-mode.el (diff-mode-shared-map):
(diff-minor-mode-prefix):
* lisp/vc/cvs-status.el (cvs-status-mode-map):
* lisp/simple.el (special-mode-map):
* lisp/outline.el (outline--insert-open-button):
(outline--insert-close-button):
* lisp/net/shr.el (shr-map):
* lisp/net/eww.el (eww-link-keymap):
(eww-mode-map):
(eww-submit-map):
(eww-bookmark-mode-map):
(eww-history-mode-map):
(eww-buffers-mode-map):
* lisp/mh-e/mh-speed.el (:keymap):
* lisp/mh-e/mh-show.el (:keymap):
* lisp/mh-e/mh-search.el (:keymap):
* lisp/mh-e/mh-letter.el (:keymap):
* lisp/mh-e/mh-folder.el (:keymap):
* lisp/international/emoji.el (emoji-list-mode-map):
* lisp/gnus/spam.el (:keymap):
* lisp/gnus/mml.el (mml-mode-map):
* lisp/gnus/message.el (message-mode-map):
* lisp/gnus/gnus-undo.el (gnus-undo-mode-map):
* lisp/gnus/gnus-topic.el (gnus-topic-mode-map):
* lisp/gnus/gnus-sum.el (:keymap):
* lisp/gnus/gnus-srvr.el (gnus-server-mode-map):
(gnus-browse-mode-map):
* lisp/gnus/gnus-salt.el (gnus-pick-mode-map):
(gnus-tree-mode-map):
* lisp/gnus/gnus-msg.el (:prefix):
* lisp/gnus/gnus-ml.el (gnus-mailing-list-mode-map):
* lisp/gnus/gnus-kill.el (gnus-kill-file-mode-map):
* lisp/gnus/gnus-html.el (gnus-html-displayed-image-map):
* lisp/gnus/gnus-group.el (:keymap):
* lisp/gnus/gnus-eform.el (gnus-edit-form-mode-map):
* lisp/gnus/gnus-draft.el (gnus-draft-mode-map):
* lisp/gnus/gnus-dired.el (gnus-dired-mode-map):
* lisp/gnus/gnus-bookmark.el (gnus-bookmark-bmenu-mode-map):
* lisp/gnus/gnus-art.el (:keymap):
(gnus-article-edit-mode-map):
* lisp/gnus/gnus-agent.el (gnus-agent-group-mode-map):
(gnus-agent-summary-mode-map):
(gnus-agent-server-mode-map):
(gnus-category-mode-map): Adjust `defvar-keymap' and
`define-keymap' to the new syntax.
2021-11-16 08:26:24 +01:00
Lars Ingebrigtsen
de477ec683
Add new 'keymap-*' functions
...
* lisp/keymap.el: New file with all the new keymap-* functions.
* lisp/loadup.el ("keymap"): Load.
* lisp/subr.el (kbd): Refactor out all the code to key-parse.
(define-key-after, keyboard-translate, global-set-key)
(local-set-key, global-unset-key, local-unset-key)
(local-key-binding, global-key-binding)
(substitute-key-definition): Note in doc strings that these are
legacy functions.
(define-keymap--define): Use keymap-set.
* lisp/emacs-lisp/byte-opt.el: Remove the optimizations for
defvar-keymap and define-keymap since the macros now only
understand the kbd syntax.
* lisp/emacs-lisp/bytecomp.el (byte-compile-define-keymap)
(byte-compile-define-keymap--define): Warn about invalid key
definitions in all keymap-* functions.
* lisp/emacs-lisp/shortdoc.el (keymaps): Add shortdocs form
keymap* functions.
* src/keymap.c (possibly_translate_key_sequence): Adjust callers
to key-valid-p and key-parse.
(syms_of_keymap): Adjust defs.
2021-11-16 08:26:24 +01:00
Lars Ingebrigtsen
560c921ed8
Allow removing keymap definitions
...
* src/keymap.c (initial_define_lispy_key): Adjust caller.
(store_in_keymap): Allow removing definitions in addition to
setting them to nil.
(Fdefine_key): Ditto.
(define_as_prefix): Adjust caller.
* src/term.c (term_get_fkeys_1): Adjust caller.
2021-11-16 08:26:24 +01:00
Lars Ingebrigtsen
aa4cffccac
Make erc-mode noninteractive
...
* lisp/erc/erc.el (erc-mode): Mark it as noninteractive, because
using it from `M-x' will only lead to problems (bug#51841).
2021-11-16 08:26:24 +01:00
Stefan Kangas
e0abd83b49
Merge from origin/emacs-28
...
e852822f3d Fix removal of fringe marks of deleted bookmarks
b418aad85a * lisp/repeat.el (repeat-echo-message): Bind message-log-m...
fe2ac7cb7c * lisp/repeat.el (describe-repeat-maps): Use help-fns--ana...
c840bfe7e1 * lisp/repeat.el: Detect changes in the minibuffer state (...
5044151486 Avoid segfaults due to freed face cache
199e2468d3 Doc fix; change recommended file name of custom-file
2021-11-16 07:18:19 +01:00
Mike Kupfer
d89d5e0f94
Fix handling of folder "+/" in MH-E
...
* lisp/mh-e/mh-utils.el (mh-sub-folders): Fix handling of "+/".
* test/lisp/mh-e/mh-utils-tests.el
(mh-folder-completion-function-08-plus-slash)
(mh-folder-completion-function-09-plus-slash-tmp):
Fix errors made importing tests from mh-unit.el; remove declaration
that these tests are expected to fail.
2021-11-15 22:03:54 -08:00
Mike Kupfer
cb0aa89bcf
Fix checkdoc complaints in MH-E
...
* lisp/mh-e/mh-compat.el (mh-flet): Rewrite most of the docstring.
(mh-write-file-functions): Remove trailing space.
* lisp/mh-e-mh-scan.el (mh-scan-cmd-note-width): Break up a
line that was too long.
2021-11-15 21:59:48 -08:00
Stefan Kangas
1d3381ae35
Fix recently changed wdired test on MS-Windows
...
* test/lisp/wdired-tests.el (wdired-test-bug34915): Don't try to
create a local socket on MS-Windows, as it is not supported on that
platform. Problem reported by Robert Pluim <rpluim@gmail.com>.
2021-11-16 05:07:32 +01:00
Po Lu
7cfc3f34bb
Prevent xwidget windows from obscuring child frames
...
* src/xwidget.c (x_draw_xwidget_glyph_string): Lower view window
when creating it.
2021-11-16 09:32:37 +08:00
Po Lu
a17e3976a8
Fix xwidget isearch for queries that look like format strings
...
* lisp/xwidget.el (xwidget-webkit-isearch--update): Give special
treatment to messages.
2021-11-16 09:32:37 +08:00
Po Lu
367cf464a1
Fix documentation string
...
* src/xwidget.c (Vxwidget_list, Vxwidget_views_list): Fix
horrid doc string.
2021-11-16 09:32:37 +08:00
Eli Zaretskii
e852822f3d
Fix removal of fringe marks of deleted bookmarks
...
* lisp/bookmark.el (bookmark--remove-fringe-mark): The fringe
overlay is at BOL, not at POS. (Bug#51233)
2021-11-15 20:20:30 +02:00
Juri Linkov
b418aad85a
* lisp/repeat.el (repeat-echo-message): Bind message-log-max to nil.
...
Don't insert messages about repeatable keys in the *Messages* buffer.
2021-11-15 19:53:29 +02:00
Robert Pluim
fe2ac7cb7c
* lisp/repeat.el (describe-repeat-maps): Use help-fns--analyze-function.
...
Print keys bound to commands in every keymap (bug#49265)
2021-11-15 19:50:30 +02:00
Juri Linkov
c840bfe7e1
* lisp/repeat.el: Detect changes in the minibuffer state (bug#47566)
...
(repeat--prev-mb): New internal variable.
(repeat-post-hook): Check the property 'repeat-map' on the symbol
from 'this-command' in addition to 'real-this-command'. Don't allow
repeatable maps in the activated minibuffer or in the minibuffer
from another command. Set 'repeat--prev-mb' at the end.
2021-11-15 19:39:37 +02:00
Michael Albinus
5b250ca79b
Fix minor problems resulting from Tramp regression tests
...
* lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist):
* lisp/net/tramp-archive.el (tramp-archive-file-name-handler-alist):
* lisp/net/tramp-crypt.el (tramp-crypt-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
* lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler-alist):
* lisp/net/tramp-sshfs.el (tramp-sshfs-file-name-handler-alist):
Add comment.
* lisp/net/tramp-cache.el (tramp-flush-file-upper-properties):
FILE can be "~".
* lisp/net/tramp.el ('tramp-ensure-dissected-file-name):
Add `tramp-suppress-trace' property.
(tramp-get-debug-buffer): Add local key for debugging.
(tramp-handle-abbreviate-file-name): Adapt implementation.
* test/lisp/net/tramp-tests.el
(tramp-test07-abbreviate-file-name):
Adapt test.
(tramp-test17-insert-directory-one-file)
(tramp--test-check-files): Use proper `no-dir' argument for
`dired-get-filename'.
2021-11-15 17:50:15 +01:00
Eli Zaretskii
5044151486
Avoid segfaults due to freed face cache
...
* src/xfaces.c (face_at_buffer_position): Make sure DEFAULT_FACE
is usable. (Bug#51864)
2021-11-15 15:35:31 +02:00
Jim Porter
83023117de
Add another 'abbreviate-file-name' test
...
* test/lisp/files-tests.el
(files-tests-file-name-non-special-abbreviate-file-name): New test.
2021-11-15 13:34:00 +01:00
Jim Porter
bf505a63f9
Support abbreviating home directory of Tramp filenames
...
* doc/lispref/files.texi (Magic File Names): Mention
'abbreviate-file-name' in the list of magic file name handlers.
* etc/NEWS: Announce the change.
* lisp/files.el (file-name-non-special):
* lisp/net/tramp.el (tramp-file-name-for-operation):
* lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-handler-alist):
Add 'abbreviate-file-name'.
* lisp/files.el (directory-abbrev-make-regexp):
(directory-abbrev-apply): New functions.
(abbreviate-file-name): Check for file name handler.
* test/lisp/net/tramp-tests.el (tramp-test07-abbreviate-file-name):
New test.
2021-11-15 13:33:07 +01:00
Stefan Kangas
199e2468d3
Doc fix; change recommended file name of custom-file
...
* lisp/cus-edit.el (custom-file): Change file name recommendation to
match Info node '(emacs) Saving Customizations'.
2021-11-15 11:00:37 +01:00
Stefan Kangas
cff1702a52
Fix hanging wdired test
...
* test/lisp/wdired-tests.el (wdired-test-bug34915): Fix hanging
test. Don't start the Emacs Server just to create a socket; just
create the socket manually.
2021-11-15 09:45:01 +01:00
Lars Ingebrigtsen
2a3c8f3d2e
Fix outline-cycle-buffer issue in `C-h b' buffers
...
* lisp/outline.el (outline--fix-up-all-buttons): Fix issue when
called after collapsing a buffer (bug#51855).
2021-11-15 07:38:21 +01:00
Lars Ingebrigtsen
6aeaf12551
Allow mm-external-terminal-program to be a list of strings
...
* doc/misc/emacs-mime.texi (Display Customization): Document it.
* lisp/gnus/mm-decode.el (mm-external-terminal-program): Allow
being a list.
2021-11-15 07:38:21 +01:00
Basil L. Contovounesios
a7c9695835
Fix handling of changed prefix keys in tutorial
...
* lisp/tutorial.el (tutorial--find-changed-keys): Use keymapp to
detect prefix definitions rather than hard-coding them. A notable
omission from the hard-coded list was mode-specific-command-prefix,
whose subcommands are often rebound (bug#40725).
2021-11-15 07:38:21 +01:00
Stefan Kangas
e7d64300aa
Merge from origin/emacs-28
...
044dd1e210 * rcirc.el (rcirc-define-command): Fix interactive-spec ge...
2021-11-15 07:00:24 +01:00
Stefan Kangas
7f85e1017d
; Merge from origin/emacs-28
...
The following commit was skipped:
97059bcdff Fix `C-h k' in gnus-article-mode (don't merge)
2021-11-15 07:00:24 +01:00
Stefan Kangas
fba537cebc
Merge from origin/emacs-28
...
85ac0efe7c Fix semantic-symref-perform-search doc string
2021-11-15 07:00:24 +01:00
Po Lu
d5a4772712
Fix xwidget-webkit-back-forward-list
...
* src/xwidget.c (Fxwidget_webkit_back_forward_list): Use correct
list variable in loop.
2021-11-15 13:43:55 +08:00
Po Lu
d9e91da769
Stop assuming xwidget views will only be displayed in TEXT_AREA
...
* src/xterm.c (x_scroll_run): Use view->area when calculating
xwidget view clipping.
* src/xwidget.c (x_draw_xwidget_glyph_string): Set view->area
to s->area and use that instead.
* src/xwidget.h (struct xwidget_view): Add glyph row area field.
2021-11-15 09:27:31 +08:00
Ken Brown
364cf2494c
Prefer POSIX timers to timerfd timers
...
* src/atimer.c (set_alarm): Try to start a POSIX timer before
starting a timerfd timer. On Cygwin, return if the POSIX timer is
started successfully. (Bug#51734)
2021-11-14 14:06:55 -05:00
Philip Kaludercic
044dd1e210
* rcirc.el (rcirc-define-command): Fix interactive-spec generation
...
* rcirc.el (rcirc-define-command): Wrap interactive spec in a list call.
2021-11-14 19:41:31 +01:00
Juri Linkov
e6df5a32d0
* lisp/tab-line.el (tab-line-mode): Preserve existing value of tab-line-format
...
Keep the old value of tab-line-format when enabling tab-line-mode
and don't overwrite it with nil when disabling tab-line-mode (bug#51830).
2021-11-14 20:35:42 +02:00
Stefan Monnier
572eed83fc
* src/lread.c (read_escape): Fix handling of ?\C-<char> for chars 128-255
2021-11-14 12:56:11 -05:00
Lars Ingebrigtsen
97059bcdff
Fix `C-h k' in gnus-article-mode (don't merge)
...
* lisp/gnus/gnus-art.el (gnus-article-describe-key):
(gnus-article-describe-key-briefly): Fix `describe-key' calling
convention (bug#51796).
2021-11-14 18:49:22 +01:00
Eli Zaretskii
d75ba220e0
; Revert "* lisp/progmodes/python.el (python-forward-sexp-function): :version fix."
...
This reverts commit e6e29b4352 .
The commit was a mistake.
2021-11-14 19:42:37 +02:00
Eli Zaretskii
e6e29b4352
; * lisp/progmodes/python.el (python-forward-sexp-function): :version fix.
2021-11-14 18:58:57 +02:00
Eli Zaretskii
acbc723902
Fix recent documentation updates
...
* doc/lispref/text.texi (Special Properties): Improve wording.
Add cross-reference and index entry.
(Sticky Properties): Add indexing.
2021-11-14 18:55:37 +02:00
Daniel Martín
85ac0efe7c
Fix semantic-symref-perform-search doc string
...
* lisp/cedet/semantic/symref/cscope.el (semantic-symref-perform-search):
Fix the docstring to refer to the correct tool (bug#51846).
2021-11-14 15:30:58 +01:00
Michael Albinus
8aba549263
Improve Tramp error handling
...
* doc/misc/tramp.texi (Frequently Asked Questions): Add another
`remote-file-error'.
* lisp/net/tramp.el (tramp-find-foreign-file-name-handler):
Improve error handling.
2021-11-14 14:41:58 +01:00
Eli Zaretskii
091a6126ac
; Merge from origin/emacs-28
...
The following commit was skipped:
289f3a9 Add more files to be natively-compiled AOT
2021-11-14 15:02:45 +02:00
Eli Zaretskii
5660ae795b
Merge from origin/emacs-28
...
5dbad52 gnus-summary-line-format doc string clarification
d4536ff Fix follow-scroll-down in a small buffer which starts slightl...
2021-11-14 15:02:43 +02:00
Eli Zaretskii
80d23e4438
; Merge from origin/emacs-28
...
The following commits were skipped:
4802419 Fix compilation on MS-Windows
cc4edea Use posix_spawn if possible.
2021-11-14 15:02:42 +02:00
Eli Zaretskii
96806a22fb
Merge from origin/emacs-28
...
a56dd60 Improve style and comments in font-related sources
2021-11-14 15:02:40 +02:00
Eli Zaretskii
289f3a9e5f
Add more files to be natively-compiled AOT
...
* src/Makefile.in (elnlisp): Add emacs-lisp/gv.eln and other
missing dependencies of comp.el.
2021-11-14 14:46:27 +02:00
Po Lu
c3f53d2604
Expose xwidget navigation history to Lisp code
...
* doc/lispref/display.texi (Xwidgets): Document changes.
* etc/NEWS: Announce new function.
* src/xwidget.c (Fxwidget_webkit_back_forward_list): New
function.
(syms_of_xwidget): Define new subr.
2021-11-14 17:45:23 +08:00
Po Lu
609bc1d33a
Add `kill-xwidget'
...
* doc/lispref/display.texi (Xwidgets): Document 'kill-xwidget'.
* src/xwidget.c (kill_xwidget, Fkill_xwidget): New function.
(syms_of_xwidget): Define new subr.
(kill_buffer_xwidgets): Use `kill_xwidget' instead.
2021-11-14 17:42:16 +08:00
Lars Ingebrigtsen
06632fbaf8
Fix previous -responsible-p change
...
* lisp/vc/vc-sccs.el (vc-sccs-responsible-p):
* lisp/vc/vc-rcs.el (vc-rcs-responsible-p):
* lisp/vc/vc-cvs.el (vc-cvs-responsible-p): Make the previous
change work with relative file names, too.
2021-11-14 09:41:22 +01:00
Lars Ingebrigtsen
5dbad52cbf
gnus-summary-line-format doc string clarification
...
* lisp/gnus/gnus.el (gnus-summary-line-format): Clarify the Date
part of the doc string (bug#51823).
2021-11-14 04:54:48 +01:00
Lars Ingebrigtsen
370d4038c5
Explain in the manual how to make `cursor-intangible' work
...
* doc/lispref/text.texi (Special Properties): Explain how to make
`cursor-intangible' work (bug#51095).
2021-11-14 03:14:39 +01:00
Po Lu
9627b731c0
Fix crash in xwidget_end_redisplay
...
* src/xwidget.c (xwidget_end_redisplay): Always test if xv is
NULL.
2021-11-14 10:00:40 +08:00