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

150798 commits

Author SHA1 Message Date
Stephen Gildea
efde024361 time-stamp-tests: improvements to test macros
test/lisp/time-stamp-tests.el: Update macro declarations.
(formatz-generate-tests): Don't nconc onto a constant list.
Tests now run 12% faster in batch mode.
2021-10-22 08:39:05 -07:00
Itai Y. Efrat
06c944cff1 Fix rfc6068-parse-mailto-url autoload
* lisp/net/browse-url.el (rfc6068-parse-mailto-url): Fix autoload
cookie (bug#51333).
2021-10-22 17:07:56 +02:00
Lars Ingebrigtsen
9b6b5e37ef Regexp-quote github domains in bug-reference
* lisp/progmodes/bug-reference.el
(bug-reference--build-forge-setup-entry): Regexp-quote the domain
(bug#51316).
2021-10-22 16:57:04 +02:00
Lars Ingebrigtsen
1f6cdeb12c Ensure valid end/beginning lines in message-mark-inserted-region
* lisp/gnus/message.el (message-mark-inserted-region): Ensure
there's a newline before inserting the end line (bug#51324).
2021-10-22 16:38:22 +02:00
Robert Pluim
9b46150ab0 * etc/NEWS: Improve 'repeat-mode' entry. 2021-10-22 12:16:34 +02:00
Robert Pluim
9c37b812da ; * lisp/repeat.el (repeat-mode): Fix docstring typo. 2021-10-22 12:15:06 +02:00
Robert Pluim
caf87d80fa * lisp/repeat.el (repeat-keep-prefix): Expand description. 2021-10-22 11:33:16 +02:00
Robert Pluim
24083c8d13 * lisp/net/eww.el (eww-retrieve-command): Add :tag. 2021-10-22 11:33:16 +02:00
Stefan Kangas
cf7d8fb1d7 Add description of cards to etc/refcards/README
* etc/refcards/README: List all the generated reference cards,
including their translations.  (Bug#8932)
2021-10-22 10:25:00 +02:00
Martin Rudalics
d2849cc645 Fix 'calculate-lisp-indent' when "[" starts containing sexp (Bug#51312)
* lisp/emacs-lisp/lisp-mode.el (calculate-lisp-indent): Handle
arbitrary paren syntax after skipping whitespace backwards within
containing sexp (Bug#51312).
2021-10-22 10:16:17 +02:00
Stefan Kangas
2a0a368ddc Fix typo in doc/emacs/anti.texi
* doc/emacs/anti.texi (Antinews): Fix typo.  (Bug#51325)
Reported by Po Lu <luangruo@yahoo.com>.
2021-10-22 05:28:21 +02:00
Stephen Gildea
9529e1d2fb Update doc of Edebug specification for macros
doc/lispref/edebug.texi:  Update documentation of Edebug specification:
- Do not document "0" as a recommended shortcut for non-instrumented
arguments; nobody knows about nor uses this, so don't encourage it.
- Add an example equivalent to (declare (debug (&rest sexp))).
2021-10-21 20:12:49 -07:00
Eli Zaretskii
5bc522b4f4 ; * lisp/simple.el (kill-region): A better fix for bug#51320. 2021-10-21 22:29:37 +03:00
Eli Zaretskii
ee6bdd6eef Fix non-interactive behavior of 'kill-region'
* lisp/simple.el (kill-region): Actually ignore BEG and END when
REGION is non-nil.  Doc fix.  (Bug#51320)
2021-10-21 22:13:09 +03:00
Eli Zaretskii
2b7655ca0e ; More accurate doc string for 'tab-bar-format'
* lisp/tab-bar.el (tab-bar-format): Make the doc string more
accurate.  (Bug#51247)
2021-10-21 21:09:03 +03:00
Juri Linkov
2841e26744 * test/lisp/dabbrev-tests.el: Use 'kbd' for readable keys.
(dabbrev-expand-test, dabbrev-completion-test)
(dabbrev-completion-test-with-argument):
Use 'kbd' to format keys for 'execute-kbd-macro'.
(dabbrev-expand-test): Fix docstring.
2021-10-21 20:22:15 +03:00
Juri Linkov
1cdb4d2077 * lisp/menu-bar.el (menu-bar-keymap): Add optional arg KEYMAP (bug#50067).
* lisp/mouse.el (context-menu-global): Use 'menu-bar-keymap' with
its arg KEYMAP set to 'global-map'.
2021-10-21 19:55:24 +03:00
Eli Zaretskii
0545c70c16 ; * src/keyboard.c (readable_events): Add a comment. 2021-10-21 10:53:20 +03:00
Lars Ingebrigtsen
805ed8d318 Fix todo-mode AOT test failures (bug#51308) 2021-10-21 06:26:30 +02:00
Lars Ingebrigtsen
8f42ff31f6 Fix hi-lock AOT test failures (bug#51308) 2021-10-21 06:24:35 +02:00
Lars Ingebrigtsen
8002fcd4b9 Fix socks test
* test/lisp/net/socks-tests.el (socks-tests-v4-basic): Fix failure
under native-comp (bug#51308).
2021-10-21 06:06:23 +02:00
Stefan Kangas
4540130312 ; Fix typo 2021-10-20 20:53:17 +02:00
Juri Linkov
59df93e2dd * lisp/help.el (help--analyze-key): Add new arg BUFFER (bug#51173).
* lisp/help.el (describe-key): Use BUFFER as arg for help--analyze-key.
(describe-key-briefly): Change arg UNTRANSLATED deprecated in 27.1
to BUFFER.

* lisp/gnus/gnus-art.el (gnus-article-describe-key)
(gnus-article-describe-key-briefly): Call describe-key and
describe-key-briefly with first arg as a cons with raw keys,
and the BUFFER arg set to the current buffer.
2021-10-20 20:54:57 +03:00
Juri Linkov
cb8b12b56d Improve docstrings and NEWS item of 'repeat-mode'
* lisp/repeat.el (repeat-exit-timeout, repeat-echo-function)
(repeat-in-progress, repeat-map): Update docstrings.
2021-10-20 20:16:57 +03:00
Juri Linkov
06fe499614 * lisp/tab-bar.el (tab-bar-menu-bar): New command (bug#51247).
(tab-bar-format): Rename option 'tab-bar-format-menu-global' to
'tab-bar-format-menu-bar'.
(tab-bar-format-menu-bar): Rename from 'tab-bar-format-menu-global'.
2021-10-20 19:50:29 +03:00
Po Lu
8358da9c4c Display a tab bar item as sunken when appropriate
When the mouse pointer is pressed on the tab bar, moved out of the tab
bar, and moved back in, it would be more appropriate to behave like
other programs by displaying the item as sunken.

* src/xdisp.c (note_tab_bar_highlight): Display item as sunken if the
mouse pointer returns to the tab bar down.
2021-10-20 19:42:14 +03:00
Po Lu
29fdc65860 Fix tab bar item highlight when a mouse click is dropped
* src/xdisp.c (note_mouse_highlight): Clear last_tab_bar_item if the
movement wasn't made on top of the tab bar.
2021-10-20 19:42:12 +03:00
Stefan Kangas
7236592668 Refer to mouse-highlight from make-pointer-invisible docstring
* src/frame.c (syms_of_frame) <Vmake_pointer_invisible>: Doc fix;
add reference to 'mouse-highlight'.  (Bug#42889)
2021-10-20 18:28:14 +02:00
Robert Pluim
cf4394a397 * etc/PROBLEMS: Add hex codepoint for NO-BREAK SPACE 2021-10-20 18:27:36 +02:00
Robert Pluim
2d647e88fa Describe how to debug fontconfig issues
* etc/PROBLEMS: Add FC_DEBUG usage pointers.
2021-10-20 18:23:51 +02:00
Michael Albinus
c916040921 Adapt Tramp tests
* test/lisp/net/tramp-archive-tests.el (tramp-archive-test45-auto-load):
Adapt code snippet.

* test/lisp/net/tramp-tests.el (tramp-test29-start-file-process)
(tramp-test30-make-process): Adapt tests.
(tramp--test-supports-set-file-modes-p): Renamed from
`tramp--test-supports-file-modes-p'.  Adapt all callees.
(tramp-test35-exec-path): Use it.
2021-10-20 18:14:00 +02:00
Jim Porter
1bb14f93f1 Convert ANSI color definitions in themes to use faces (e.g. 'ansi-color-red')
* etc/themes/dichromacy-theme.el:
* etc/themes/leuven-theme.el:
* etc/themes/misterioso-theme.el:
* etc/themes/tango-theme.el:
* etc/themes/tango-dark-theme.el:
* etc/themes/wombat-theme.el: Convert ANSI color definitions to
use faces.
2021-10-20 10:28:19 +02:00
Lars Ingebrigtsen
8e7cd29712 Revert "Revert back to using ESC as viper-ESC-key again"
This reverts commit 5d522b430b.

The change led to M-x not working in non-gui Emacsen (bug#51253).
2021-10-20 10:05:04 +02:00
Alan Third
91d71b38a3 Fix inset rectangle corners when sides aren't drawn (bug#51251)
* src/nsterm.m (ns_draw_relief): Make the inner rectangle line up with
the outer rectangle's edges where the edges aren't drawn.
2021-10-19 21:25:01 +01:00
Jan Synacek
5c1a575ef4 Don't use color escape sequences in vc-git-expanded-log-entry
* lisp/vc/vc-git.el (vc-git-expanded-log-entry): Use '--no-color' flag
in git invocation.  (Bug#51262)

Copyright-paperwork-exempt: yes
2021-10-19 19:45:25 +02:00
Michael Albinus
d7f595cc89 Code cleanup in tramp-tests.el
* test/lisp/net/tramp-tests.el (tramp-test29-start-file-process)
(tramp-test30-make-process): Extend tests.
(tramp--test-out-of-band-p): New defun.
(tramp--test-windows-nt-and-out-of-band-p)
(tramp-test42-utf8-with-stat, tramp-test42-utf8-with-perl)
(tramp-test42-utf8-with-ls): Use it.
(tramp--test-windows-nt-or-smb-p): Use `tramp--test-windows-nt-p'.
2021-10-19 18:50:12 +02:00
Michael Albinus
548a5db611 ; etc/NEWS fix wording 2021-10-19 18:49:38 +02:00
Michael Albinus
d742cc3c20 ; etc/NEWS: Fix typos 2021-10-19 15:06:30 +02:00
Robert Pluim
28db29590f * admin/notes/unicode: Refer to Unicode's emoji-style.txt 2021-10-19 14:40:26 +02:00
Robert Pluim
9bd2f59db6 Handle VS-16 correctly for non-emoji codepoints
* admin/unidata/blocks.awk: Remove emoji overrides for codepoints with
Emoji_Presentation = No, they're no longer necessary.
* lisp/composite.el: Remove #xFE0F (VS-16) from the range handled by
`compose-gstring-for-variation-glyph' so it can be handled by
`font_range'.
* src/composite.c (syms_of_composite): New variable
`auto-composition-emoji-eligible-codepoints'.
* admin/unidata/emoji-zwj.awk: Generate value for
`auto-composition-emoji-eligible-codepoints'.  Add
`composition-function-table' entries for 'codepoint + U+FE0F' for
them.
* src/font.c (codepoint_is_emoji_eligible): New function to check if
we should try to use the emoji font for a codepoint.
(font_range): Use it.
2021-10-19 14:40:26 +02:00
Eli Zaretskii
e55e2d4a11 ; * etc/NEWS: Minor copyedit about 'repeat-mode'. 2021-10-19 15:12:43 +03:00
Tassilo Horn
380981ddb5 Adjust bug-reference-bug-regexp default values to match only at beg of word
Previously, the "bug 1" in "(debug 1)" has also been highlighted.

* lisp/progmodes/bug-reference.el (bug-reference-bug-regexp)
(bug-reference--setup-from-vc-alist,bug-reference-setup-from-mail-alist)
(bug-reference-setup-from-irc-alist): Adjust bug-reference-bug-regexp
default values to match only at the beginning of a word.
2021-10-19 07:05:18 +02:00
Pedro Mauro
c1cf95a0e1 ; * doc/emacs/windows.texi: Doc fix.
* doc/emacs/windows.texi (Window Choice): Make example a valid
alist (bug#51274).
2021-10-19 05:14:15 +02:00
Stefan Kangas
98eb6d783a Fix a typo in emacs-lisp-intro.texi
* doc/lispintro/emacs-lisp-intro.texi (Lisp Atoms): Fix typo.
Reported by Mor Zahavi <morzahavi@me.com>.  (Bug#51271)
2021-10-19 02:39:00 +02:00
Michael Albinus
f5b8f626e3 Fix some Tramp problems
* lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist):
Use `tramp-adb-handle-file-executable-p' and
`tramp-adb-handle-file-readable-p'.
(tramp-adb-handle-file-executable-p)
(tramp-adb-handle-file-readable-p): New defuns.
(tramp-adb-handle-file-writable-p): Simplify.
(tramp-adb-handle-make-process): Handle :filter being t.
(tramp-adb-find-test-command): Remove.

* lisp/net/tramp-sh.el (tramp-sh-handle-file-readable-p):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-file-readable-p):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
Use `tramp-handle-file-readable-p'.
(tramp-gvfs-handle-file-executable-p): Do not check whether file
exists, this is done in `tramp-check-cached-permissions'.
(tramp-gvfs-handle-file-readable-p): Remove.

* lisp/net/tramp.el (tramp-error): Move binding of `inhibit-message' ...
(tramp-signal-hook-function): ... here.
(tramp-handle-access-file): Rewrite.
(tramp-handle-file-readable-p): New defun.
(tramp-handle-make-process): Setting :filter to t works since
Emacs 29.1 only.

* test/lisp/net/tramp-tests.el (tramp-test17-insert-directory)
(tramp-test18-file-attributes): Extend tests.
2021-10-18 19:54:13 +02:00
Michael Albinus
fc988a7113 Adapt Tramp manual
* doc/misc/tramp.texi: Use @uref instead of @url.
(Frequently Asked Questions): Adapt ELPA references.
2021-10-18 19:53:34 +02:00
Martin Rudalics
0c241043a8 Further fixes to Elisp manual
* doc/lispref/frames.texi (Frame Layout): Index "tab bar" instead
of "internal tab bar".
(Implied Frame Resizing): Remove irritating hyphens.
* doc/lispref/windows.texi (Windows and Frames): Remove paragraph
relating 'minibuffer-window' to 'window-list'.
2021-10-18 19:18:42 +02:00
Alan Mackenzie
8e8a920246 * lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): check type-start
Check type-start is non-nil at L659 of the function.
2021-10-18 16:53:19 +00:00
Juri Linkov
5a3242301d Rename tab-bar-drag-maybe to tab-bar--dragging-in-progress
* lisp/tab-bar.el (tab-bar--event-to-item, tab-bar-mouse-down-1)
(tab-bar-mouse-move-tab): Rename tab-bar-drag-maybe to
tab-bar--dragging-in-progress.

* src/xdisp.c (note_mouse_highlight): Rename tab_bar_drag_maybe to
tab_bar__dragging_in_progress.
2021-10-18 19:52:29 +03:00
Mattias Engdegård
bb4209a5a5 Fix xref elisp identifier namespace mistake
Pressing `M-.` on ALPHA in

  (let ((ALPHA BETA)) ...)

would incorrectly search for ALPHA as a function rather than a variable.

* lisp/progmodes/elisp-mode.el (elisp--xref-infer-namespace): Fix logic.
* test/lisp/progmodes/elisp-mode-tests.el
(elisp-mode-infer-namespace): Add test case.
2021-10-18 17:26:45 +02:00