]> git.eshelyaron.com Git - emacs.git/log
emacs.git
3 years agoMerge branch 'emacs-28' of git.savannah.gnu.org:/srv/git/emacs into emacs-28
Eli Zaretskii [Mon, 25 Oct 2021 16:19:55 +0000 (19:19 +0300)]
Merge branch 'emacs-28' of git.savannah.gnu.org:/srv/git/emacs into emacs-28

3 years agoRevert "Fix a typo in emacs-lisp-intro.texi"
Eli Zaretskii [Mon, 25 Oct 2021 16:11:06 +0000 (19:11 +0300)]
Revert "Fix a typo in emacs-lisp-intro.texi"

This reverts commit 98eb6d783a482cd7ebca7ec656b0775b82c68e57.
I've consulted with Richard Stallman about this, and he says
that the original wording, "kinds of atom", is both correct
and more elegant writing.  So I'm restoring the original text.
* doc/lispintro/emacs-lisp-intro.texi (Lisp Atoms): Undo the
fix of a "typo" that wasn't a typo.  (Bug#51271)

3 years ago* doc/lispref/functions.texi (Mapping Functions): Use #' when mapping.
Robert Pluim [Mon, 25 Oct 2021 13:34:48 +0000 (15:34 +0200)]
* doc/lispref/functions.texi (Mapping Functions): Use #' when mapping.

3 years agoFix issue with interpreting ANSI codes in eshell
Miha Rihtaršič [Mon, 25 Oct 2021 13:24:29 +0000 (15:24 +0200)]
Fix issue with interpreting ANSI codes in eshell

* lisp/eshell/esh-mode.el (eshell-mode): Make window point advance on
insertion.
(eshell-output-filter): Don't use insert-before-markers (bug#45380).

3 years agoimage-dired: Doc fix to better explain thumbnail generation
Stefan Kangas [Mon, 25 Oct 2021 02:48:12 +0000 (04:48 +0200)]
image-dired: Doc fix to better explain thumbnail generation

* doc/emacs/dired.texi (Image-Dired): Improve description by
explaining that the generation of thumbnails is asynchronous.

3 years agoClarify two image-dired docstrings
Stefan Kangas [Mon, 25 Oct 2021 00:12:34 +0000 (02:12 +0200)]
Clarify two image-dired docstrings

* lisp/image-dired.el (image-dired-dir): Doc fix; clarify that
thumbnails will be saved in "$XDG_CACHE_HOME/thumbnails", as per the
Thumbnail Managing Standard.
(image-dired-thumb-size): Doc fix; clarify that this option will be
ignored when using the Thumbnail Managing Standard.

3 years agoFix flymake example backend conditions in the manual
Lars Ingebrigtsen [Sun, 24 Oct 2021 23:25:13 +0000 (01:25 +0200)]
Fix flymake example backend conditions in the manual

* doc/misc/flymake.texi (An annotated example backend): Also react
to `signal' process statuses (bug#51380).

3 years ago* etc/PROBLEMS: Mention problems with regexp matcher. (Bug#18577)
Stefan Kangas [Sun, 24 Oct 2021 21:56:46 +0000 (23:56 +0200)]
* etc/PROBLEMS: Mention problems with regexp matcher.  (Bug#18577)

3 years ago* test/lisp/repeat-tests.el: New file.
Juri Linkov [Sun, 24 Oct 2021 19:21:31 +0000 (22:21 +0300)]
* test/lisp/repeat-tests.el: New file.

3 years ago* lisp/tab-bar.el (tab-bar-move-repeat-map): Fix alias binding of tab-move.
Juri Linkov [Sun, 24 Oct 2021 19:20:15 +0000 (22:20 +0300)]
* lisp/tab-bar.el (tab-bar-move-repeat-map): Fix alias binding of tab-move.

(tab-bar-move-tab-backward): Put 'repeat-map' symbol property.

3 years agoUse restrictive umask when creating image-dired data
Stefan Kangas [Sun, 24 Oct 2021 19:20:16 +0000 (21:20 +0200)]
Use restrictive umask when creating image-dired data

* lisp/image-dired.el (image-dired-dir)
(image-dired-sane-db-file): Create thumbnail directory and
.image-dired_db with umask 077.  This avoids creating world readable
copies of private data, and is in fact mandated by the Thumbnail
Managing Standard that we aim to support.

3 years ago; lisp/transient.el: Revert some misguided stylistic fixes.
Jonas Bernoulli [Sun, 24 Oct 2021 13:35:05 +0000 (15:35 +0200)]
; lisp/transient.el: Revert some misguided stylistic fixes.

These aren't actual modes.  Set checkdoc-symbol-words to avoid
false-positives.  The first line of doc-strings of methods do
not need to end with period.

3 years agoFix compilation errors with MinGW64 GCC 11
Eli Zaretskii [Sun, 24 Oct 2021 17:19:47 +0000 (20:19 +0300)]
Fix compilation errors with MinGW64 GCC 11

* lib-src/ntlib.c (_GL_ATTRIBUTE_MALLOC)
(_GL_ATTRIBUTE_DEALLOC_FREE): Define to avoid compilation errors
with MinGW64 GCC 11.  Suggested by Andy Moreton
<andrewjmoreton@gmail.com>.  Do not merge to master.

3 years agoDoc fix for concat
Ihor Radchenko [Thu, 24 Jun 2021 14:33:08 +0000 (22:33 +0800)]
Doc fix for concat

* src/fns.c (Fconcat): Note that composition values may not remain eq
in return value of concat.  (Bug#48740)

3 years ago* lisp/image-dired.el (image-dired-external-viewer): Support feh.
Stefan Kangas [Sun, 24 Oct 2021 10:20:35 +0000 (12:20 +0200)]
* lisp/image-dired.el (image-dired-external-viewer): Support feh.

3 years agoUpdate publicsuffix.txt from upstream
Stefan Kangas [Sun, 24 Oct 2021 08:37:57 +0000 (10:37 +0200)]
Update publicsuffix.txt from upstream

* etc/publicsuffix.txt: Update from
https://publicsuffix.org/list/public_suffix_list.dat
dated 2021-10-16 16:33:47 GMT.

3 years ago; * doc/lispref/modes.texi (Hooks): Clarify wording. (Bug#34588)
Eli Zaretskii [Sun, 24 Oct 2021 06:44:18 +0000 (09:44 +0300)]
; * doc/lispref/modes.texi (Hooks): Clarify wording.  (Bug#34588)

3 years agoRefer to the info node on keymaps in map-keymap docstring
Stefan Kangas [Sun, 24 Oct 2021 06:08:09 +0000 (08:08 +0200)]
Refer to the info node on keymaps in map-keymap docstring

* src/keymap.c (Fmap_keymap): Doc fix; add a reference to the Info
node '(elisp) Keymaps'.  (Bug#30958)

3 years agoClarify abnormal hook documentation
Stefan Kangas [Sat, 23 Oct 2021 18:03:34 +0000 (20:03 +0200)]
Clarify abnormal hook documentation

* doc/lispref/hooks.texi (Standard Hooks):
* doc/lispref/modes.texi (Hooks): Clarify wording of "abnormal
hook" documentation.  (Bug#34588)

3 years agoUpdate to Org 9.5-59-g52e6f1
Kyle Meyer [Sat, 23 Oct 2021 17:34:28 +0000 (13:34 -0400)]
Update to Org 9.5-59-g52e6f1

3 years ago; * doc/lispref/functions.texi (Calling Functions): Fix last change.
Eli Zaretskii [Sat, 23 Oct 2021 17:44:26 +0000 (20:44 +0300)]
; * doc/lispref/functions.texi (Calling Functions): Fix last change.

3 years agoImprove documentation of cl-reduce
Stefan Kangas [Sat, 23 Oct 2021 17:20:31 +0000 (19:20 +0200)]
Improve documentation of cl-reduce

* doc/misc/cl.texi (Mapping over Sequences): Change the
explanation of 'cl-reduce' so you don't need to have a major in
mathematics to understand it.  (Bug#24014)

3 years agoImprove documentation of apply-partially
Stefan Kangas [Sat, 23 Oct 2021 16:42:14 +0000 (18:42 +0200)]
Improve documentation of apply-partially

* doc/lispref/functions.texi (Calling Functions): Improve
documentation of 'apply-partially' to be slightly more clear with
regards to function arity.  (Bug#17623)

3 years agoFix typos
Michael Albinus [Sat, 23 Oct 2021 13:21:33 +0000 (15:21 +0200)]
Fix typos

* doc/emacs/cmdargs.texi:
* etc/DEBUG:
* etc/NEWS: Fix typos.

3 years agoRevert commit 225ca617b7, and apply another fix
Michael Albinus [Sat, 23 Oct 2021 13:21:14 +0000 (15:21 +0200)]
Revert commit 225ca617b7, and apply another fix

* lisp/minibuffer.el (read-file-name-default): Revert commit
225ca617b7.  (Bug#50976).

* lisp/shell.el (shell): Remove volume letter for remote shell
file name.  (Bug#49229)

3 years agoFix documentation of posn-at-x-y
Stefan Kangas [Sat, 23 Oct 2021 07:45:23 +0000 (09:45 +0200)]
Fix documentation of posn-at-x-y

* doc/lispref/commands.texi (Accessing Mouse): Fix documentation of
'posn-at-x-y' to match docstring.  (Bug#15783)

3 years ago; * src/vm-limit.c (get_lim_data): Fix a typo. (Bug#18238)
Eli Zaretskii [Sat, 23 Oct 2021 06:15:40 +0000 (09:15 +0300)]
; * src/vm-limit.c (get_lim_data): Fix a typo.  (Bug#18238)

3 years ago; * etc/refcards/README: Prefer HTTPS in link.
Stefan Kangas [Fri, 22 Oct 2021 23:19:04 +0000 (01:19 +0200)]
; * etc/refcards/README: Prefer HTTPS in link.

3 years agoImprove some NEWS entries
Robert Pluim [Fri, 22 Oct 2021 16:03:00 +0000 (18:03 +0200)]
Improve some NEWS entries

* etc/NEWS: Improve some NEWS entries.

3 years agoImprove documentation of syntax-ppss-context slightly
Robert Pluim [Fri, 22 Oct 2021 15:51:56 +0000 (17:51 +0200)]
Improve documentation of syntax-ppss-context slightly

* doc/lispref/syntax.texi (Parser State): Document all possible return
values from 'syntax-ppss-context'.

3 years ago; * test/lisp/mh-e/mh-utils-tests.el: Update macro declarations.
Stephen Gildea [Fri, 22 Oct 2021 15:45:57 +0000 (08:45 -0700)]
; * test/lisp/mh-e/mh-utils-tests.el: Update macro declarations.

3 years agoMove some xwidget entries
Robert Pluim [Fri, 22 Oct 2021 15:42:57 +0000 (17:42 +0200)]
Move some xwidget entries

* etc/NEWS: Move xwidget entries to correct location.

3 years agotime-stamp-tests: improvements to test macros
Stephen Gildea [Fri, 22 Oct 2021 15:38:17 +0000 (08:38 -0700)]
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.

3 years agoFix rfc6068-parse-mailto-url autoload
Itai Y. Efrat [Fri, 22 Oct 2021 15:07:56 +0000 (17:07 +0200)]
Fix rfc6068-parse-mailto-url autoload

* lisp/net/browse-url.el (rfc6068-parse-mailto-url): Fix autoload
cookie (bug#51333).

3 years agoRegexp-quote github domains in bug-reference
Lars Ingebrigtsen [Fri, 22 Oct 2021 14:57:04 +0000 (16:57 +0200)]
Regexp-quote github domains in bug-reference

* lisp/progmodes/bug-reference.el
(bug-reference--build-forge-setup-entry): Regexp-quote the domain
(bug#51316).

3 years agoEnsure valid end/beginning lines in message-mark-inserted-region
Lars Ingebrigtsen [Fri, 22 Oct 2021 14:38:11 +0000 (16:38 +0200)]
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).

3 years ago* etc/NEWS: Improve 'repeat-mode' entry.
Robert Pluim [Fri, 22 Oct 2021 10:16:34 +0000 (12:16 +0200)]
* etc/NEWS: Improve 'repeat-mode' entry.

3 years ago; * lisp/repeat.el (repeat-mode): Fix docstring typo.
Robert Pluim [Fri, 22 Oct 2021 10:15:06 +0000 (12:15 +0200)]
; * lisp/repeat.el (repeat-mode): Fix docstring typo.

3 years ago* lisp/repeat.el (repeat-keep-prefix): Expand description.
Robert Pluim [Thu, 21 Oct 2021 14:22:48 +0000 (16:22 +0200)]
* lisp/repeat.el (repeat-keep-prefix): Expand description.

3 years ago* lisp/net/eww.el (eww-retrieve-command): Add :tag.
Robert Pluim [Thu, 21 Oct 2021 13:53:35 +0000 (15:53 +0200)]
* lisp/net/eww.el (eww-retrieve-command): Add :tag.

3 years agoAdd description of cards to etc/refcards/README
Stefan Kangas [Fri, 22 Oct 2021 08:22:08 +0000 (10:22 +0200)]
Add description of cards to etc/refcards/README

* etc/refcards/README: List all the generated reference cards,
including their translations.  (Bug#8932)

3 years agoFix 'calculate-lisp-indent' when "[" starts containing sexp (Bug#51312)
Martin Rudalics [Fri, 22 Oct 2021 08:16:17 +0000 (10:16 +0200)]
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).

3 years agoFix typo in doc/emacs/anti.texi
Stefan Kangas [Fri, 22 Oct 2021 03:28:21 +0000 (05:28 +0200)]
Fix typo in doc/emacs/anti.texi

* doc/emacs/anti.texi (Antinews): Fix typo.  (Bug#51325)
Reported by Po Lu <luangruo@yahoo.com>.

3 years agoUpdate doc of Edebug specification for macros
Stephen Gildea [Fri, 22 Oct 2021 03:10:53 +0000 (20:10 -0700)]
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))).

3 years ago; * lisp/simple.el (kill-region): A better fix for bug#51320.
Eli Zaretskii [Thu, 21 Oct 2021 19:29:37 +0000 (22:29 +0300)]
; * lisp/simple.el (kill-region): A better fix for bug#51320.

3 years agoFix non-interactive behavior of 'kill-region'
Eli Zaretskii [Thu, 21 Oct 2021 19:13:09 +0000 (22:13 +0300)]
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)

3 years ago; More accurate doc string for 'tab-bar-format'
Eli Zaretskii [Thu, 21 Oct 2021 18:09:03 +0000 (21:09 +0300)]
; More accurate doc string for 'tab-bar-format'

* lisp/tab-bar.el (tab-bar-format): Make the doc string more
accurate.  (Bug#51247)

3 years ago* test/lisp/dabbrev-tests.el: Use 'kbd' for readable keys.
Juri Linkov [Thu, 21 Oct 2021 17:22:15 +0000 (20:22 +0300)]
* 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.

3 years ago* lisp/menu-bar.el (menu-bar-keymap): Add optional arg KEYMAP (bug#50067).
Juri Linkov [Thu, 21 Oct 2021 16:55:24 +0000 (19:55 +0300)]
* 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'.

3 years ago; * src/keyboard.c (readable_events): Add a comment.
Eli Zaretskii [Thu, 21 Oct 2021 07:53:20 +0000 (10:53 +0300)]
; * src/keyboard.c (readable_events): Add a comment.

3 years agoFix todo-mode AOT test failures (bug#51308)
Lars Ingebrigtsen [Thu, 21 Oct 2021 04:26:30 +0000 (06:26 +0200)]
Fix todo-mode AOT test failures (bug#51308)

3 years agoFix hi-lock AOT test failures (bug#51308)
Lars Ingebrigtsen [Thu, 21 Oct 2021 04:24:35 +0000 (06:24 +0200)]
Fix hi-lock AOT test failures (bug#51308)

3 years agoFix socks test
Lars Ingebrigtsen [Thu, 21 Oct 2021 04:06:13 +0000 (06:06 +0200)]
Fix socks test

* test/lisp/net/socks-tests.el (socks-tests-v4-basic): Fix failure
under native-comp (bug#51308).

3 years ago; Fix typo
Stefan Kangas [Wed, 20 Oct 2021 18:52:43 +0000 (20:52 +0200)]
; Fix typo

3 years ago* lisp/help.el (help--analyze-key): Add new arg BUFFER (bug#51173).
Juri Linkov [Wed, 20 Oct 2021 17:54:57 +0000 (20:54 +0300)]
* 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.

3 years agoImprove docstrings and NEWS item of 'repeat-mode'
Juri Linkov [Wed, 20 Oct 2021 17:16:57 +0000 (20:16 +0300)]
Improve docstrings and NEWS item of 'repeat-mode'

* lisp/repeat.el (repeat-exit-timeout, repeat-echo-function)
(repeat-in-progress, repeat-map): Update docstrings.

3 years ago* lisp/tab-bar.el (tab-bar-menu-bar): New command (bug#51247).
Juri Linkov [Wed, 20 Oct 2021 16:50:29 +0000 (19:50 +0300)]
* 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'.

3 years agoDisplay a tab bar item as sunken when appropriate
Po Lu [Wed, 20 Oct 2021 07:55:10 +0000 (15:55 +0800)]
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.

3 years agoFix tab bar item highlight when a mouse click is dropped
Po Lu [Wed, 20 Oct 2021 07:36:59 +0000 (15:36 +0800)]
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.

3 years agoRefer to mouse-highlight from make-pointer-invisible docstring
Stefan Kangas [Wed, 20 Oct 2021 14:53:44 +0000 (16:53 +0200)]
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)

3 years ago* etc/PROBLEMS: Add hex codepoint for NO-BREAK SPACE
Robert Pluim [Wed, 20 Oct 2021 16:27:36 +0000 (18:27 +0200)]
* etc/PROBLEMS: Add hex codepoint for NO-BREAK SPACE

3 years agoDescribe how to debug fontconfig issues
Robert Pluim [Wed, 20 Oct 2021 16:22:40 +0000 (18:22 +0200)]
Describe how to debug fontconfig issues

* etc/PROBLEMS: Add FC_DEBUG usage pointers.

3 years agoAdapt Tramp tests
Michael Albinus [Wed, 20 Oct 2021 16:14:00 +0000 (18:14 +0200)]
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.

3 years agoConvert ANSI color definitions in themes to use faces (e.g. 'ansi-color-red')
Jim Porter [Tue, 19 Oct 2021 23:01:15 +0000 (16:01 -0700)]
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.

3 years agoRevert "Revert back to using ESC as viper-ESC-key again"
Lars Ingebrigtsen [Wed, 20 Oct 2021 08:05:04 +0000 (10:05 +0200)]
Revert "Revert back to using ESC as viper-ESC-key again"

This reverts commit 5d522b430bd5ecfb8f082906cd634883dbb68f3e.

The change led to M-x not working in non-gui Emacsen (bug#51253).

3 years agoFix inset rectangle corners when sides aren't drawn (bug#51251)
Alan Third [Sun, 17 Oct 2021 18:30:59 +0000 (19:30 +0100)]
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.

3 years agoDon't use color escape sequences in vc-git-expanded-log-entry
Jan Synacek [Mon, 18 Oct 2021 10:34:38 +0000 (12:34 +0200)]
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

3 years agoCode cleanup in tramp-tests.el
Michael Albinus [Tue, 19 Oct 2021 16:50:12 +0000 (18:50 +0200)]
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'.

3 years ago; etc/NEWS fix wording
Michael Albinus [Tue, 19 Oct 2021 16:49:38 +0000 (18:49 +0200)]
; etc/NEWS fix wording

3 years ago; etc/NEWS: Fix typos
Michael Albinus [Tue, 19 Oct 2021 13:06:30 +0000 (15:06 +0200)]
; etc/NEWS: Fix typos

3 years ago* admin/notes/unicode: Refer to Unicode's emoji-style.txt
Robert Pluim [Mon, 18 Oct 2021 12:52:49 +0000 (14:52 +0200)]
* admin/notes/unicode: Refer to Unicode's emoji-style.txt

3 years agoHandle VS-16 correctly for non-emoji codepoints
Robert Pluim [Mon, 18 Oct 2021 09:51:10 +0000 (11:51 +0200)]
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.

3 years ago; * etc/NEWS: Minor copyedit about 'repeat-mode'.
Eli Zaretskii [Tue, 19 Oct 2021 12:12:43 +0000 (15:12 +0300)]
; * etc/NEWS: Minor copyedit about 'repeat-mode'.

3 years agoAdjust bug-reference-bug-regexp default values to match only at beg of word
Tassilo Horn [Tue, 19 Oct 2021 05:05:18 +0000 (07:05 +0200)]
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.

3 years ago; * doc/emacs/windows.texi: Doc fix.
Pedro Mauro [Tue, 19 Oct 2021 03:14:07 +0000 (05:14 +0200)]
; * doc/emacs/windows.texi: Doc fix.

* doc/emacs/windows.texi (Window Choice): Make example a valid
alist (bug#51274).

3 years agoFix a typo in emacs-lisp-intro.texi
Stefan Kangas [Tue, 19 Oct 2021 00:36:06 +0000 (02:36 +0200)]
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)

3 years agoFix some Tramp problems
Michael Albinus [Mon, 18 Oct 2021 17:54:13 +0000 (19:54 +0200)]
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.

3 years agoAdapt Tramp manual
Michael Albinus [Mon, 18 Oct 2021 17:53:34 +0000 (19:53 +0200)]
Adapt Tramp manual

* doc/misc/tramp.texi: Use @uref instead of @url.
(Frequently Asked Questions): Adapt ELPA references.

3 years agoFurther fixes to Elisp manual
Martin Rudalics [Mon, 18 Oct 2021 17:18:42 +0000 (19:18 +0200)]
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'.

3 years ago* lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): check type-start
Alan Mackenzie [Mon, 18 Oct 2021 16:49:19 +0000 (16:49 +0000)]
* 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.

3 years agoRename tab-bar-drag-maybe to tab-bar--dragging-in-progress
Juri Linkov [Mon, 18 Oct 2021 16:52:29 +0000 (19:52 +0300)]
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.

3 years agoFix xref elisp identifier namespace mistake
Mattias Engdegård [Mon, 18 Oct 2021 15:06:22 +0000 (17:06 +0200)]
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.

3 years agoMinor fixes for recent changes in ELisp manual
Eli Zaretskii [Mon, 18 Oct 2021 14:13:18 +0000 (17:13 +0300)]
Minor fixes for recent changes in ELisp manual

* doc/lispref/windows.texi (Basic Windows, Windows and Frames)
(Selecting Windows):
* doc/lispref/objects.texi (Window Type):
* doc/lispref/frames.texi (Input Focus, Frame Layout): Fix
wording, punctuation, and indexing.

3 years agoFix example in calc manual
Lars Ingebrigtsen [Mon, 18 Oct 2021 13:56:51 +0000 (15:56 +0200)]
Fix example in calc manual

* doc/misc/calc.texi (Arithmetic Tutorial): Fix sign in the
example (bug#51265).

3 years agoRewrites of Elisp manual including tab-bar and tab-line changes
Martin Rudalics [Mon, 18 Oct 2021 07:58:48 +0000 (09:58 +0200)]
Rewrites of Elisp manual including tab-bar and tab-line changes

* doc/lispref/buffers.texi (Current Buffer, Buffer List): Update
references to 'selected-window'.
* doc/lispref/elisp.texi (Top): Move up Selecting Windows section
in front of Window Sizes section.
* doc/lispref/frames.texi (Creating Frames): Say window system
instead of windowing system.
(Frame Layout): Add Tab Bar to layout.
(Layout Parameters): Add 'tab-bar-lines'.
(Input Focus): Say window system window instead of window
manager window.  Fix reference to 'selected-window'.
* doc/lispref/objects.texi (Window Type): Minor rewrite.
* doc/lispref/windows.texi (Basic Windows): Rewrite.  Settle on
term 'window system window' for disambiguation with our windows.
Move 'selected-window' description to Selecting Windows section.
Move schematic of window structure here.  Use 'decorations' for
objects outside the window body.  Say that the areas reserved
for continuation and truncation glyphs, vertical dividers and
line numbers are part of the window body.
(Windows and Frames): Minor rewrite, adding and fixing some
cross references.  Move live window schematic to 'Basic Windows'
section.
(Selecting Windows): Move section in front of Window Sizes
section.  Move description of 'selected-window' here.  Move up
description of 'frame-selected-window' and
'set-frame-selected-window'.  Update and move description of
'window-bump-use-time' here.
(Window Sizes): Throughout use the term 'decorations' instead of
enumerating them individually.  Add 'window-tab-line-height'
description.
(Resizing Windows): Again use the term 'decorations' instead of
enumerating them individually.
(Splitting Windows): Minor fix.
(Cyclic Window Ordering): Improve descriptions of 'get-lru-window'
and 'get-mru-window'.  Move 'window-bump-use-time' to Selecting
Windows section.
(Coordinates and Windows, Window Configurations): Once more use
the term 'decorations' instead of enumerating them individually.
* src/window.c (Fwindow_bump_use_time): Move after
'window-use-time'.  Make it work for live windows only.  Make
WINDOW argument optional.  Update doc-string.

3 years ago; * INSTALL: Fix typo.
Stefan Kangas [Mon, 18 Oct 2021 00:35:33 +0000 (02:35 +0200)]
; * INSTALL: Fix typo.

3 years ago* lisp/tab-bar.el: Improve docstrings (bug#51247)
Juri Linkov [Sun, 17 Oct 2021 18:28:54 +0000 (21:28 +0300)]
* lisp/tab-bar.el: Improve docstrings (bug#51247)

* lisp/tab-bar.el (tab-bar--key-to-number)
(tab-bar--event-to-item, tab-bar--format-tab-group)
(tab-bar--current-tab-make): Improve docstrings.
(switch-to-buffer-other-tab): Obsolete the arg NORECORD.

3 years ago* lisp/tab-bar.el (tab-bar-mouse-move-tab): Don't drag tab to itself.
Juri Linkov [Sun, 17 Oct 2021 18:03:27 +0000 (21:03 +0300)]
* lisp/tab-bar.el (tab-bar-mouse-move-tab): Don't drag tab to itself.

3 years agoAdd tab-bar-drag-maybe for indication of tab dragging (bug#50993)
Martin Rudalics [Sun, 17 Oct 2021 17:48:45 +0000 (20:48 +0300)]
Add tab-bar-drag-maybe for indication of tab dragging (bug#50993)

* lisp/tab-bar.el (tab-bar--event-to-item)
(tab-bar-mouse-move-tab): Set tab-bar-drag-maybe to nil.
(tab-bar-mouse-down-1): Set tab-bar-drag-maybe to t.

* src/xdisp.c (note_mouse_highlight): Set cursor to 'hand_cursor'
when tab_bar_drag_maybe is true.
(syms_of_xdisp): New variable tab-bar-drag-maybe.

3 years ago* lisp/tab-bar.el: Add a new tab on [mouse-1] instead of [down-mouse-1]
Juri Linkov [Sun, 17 Oct 2021 17:27:16 +0000 (20:27 +0300)]
* lisp/tab-bar.el: Add a new tab on [mouse-1] instead of [down-mouse-1]

* lisp/tab-bar.el (tab-bar-mouse-down-1): Rename from
tab-bar-mouse-select-tab.  Ignore 'add-tab'.
(tab-bar-mouse-1): Rename from tab-bar-mouse-close-tab-from-button.
Use binding of 'add-tab'.
(tab-bar-map): Rebind [down-mouse-1] from tab-bar-mouse-select-tab to
tab-bar-mouse-down-1, and [mouse-1] from tab-bar-mouse-close-tab-from-button
to tab-bar-mouse-1 (bug#51246).

3 years agoAdd new and fix existing docstrings in tab-bar.el and tab-line.el (bug#51247)
Juri Linkov [Sun, 17 Oct 2021 17:09:29 +0000 (20:09 +0300)]
Add new and fix existing docstrings in tab-bar.el and tab-line.el (bug#51247)

* lisp/tab-bar.el (tab-bar--key-to-number)
(tab-bar--event-to-item, tab-bar--format-tab)
(tab-bar--format-tab-group, tab-bar--tab, tab-bar--current-tab)
(tab-bar--current-tab-make): Add/fix docstrings.

3 years agoAdd tab bar support to the nextstep port
Po Lu [Fri, 15 Oct 2021 18:02:54 +0000 (19:02 +0100)]
Add tab bar support to the nextstep port

* src/nsfns.m (ns_change_tab_bar_height): New function.
(ns_set_tab_bar_lines): Check tab bar height and set tab bar
accordingly.
* src/nsterm.m (ns_clear_under_internal_border): Clear internal border
correctly when there is a tab bar.
(ns_create_terminal): Add ns_change_tab_bar_height.
(mouseDown): Handle tab bar mouse click events.

3 years agoFix potential buffer overflow (bug#50767)
Alan Third [Mon, 4 Oct 2021 21:35:41 +0000 (22:35 +0100)]
Fix potential buffer overflow (bug#50767)

* src/image.c (svg_load_image): Check how many bytes were actually
written to the buffer.  Don't check xmalloc return value as xmalloc
doesn't return if it fails.

3 years agoImprove doc strings in tab-line.el
Eli Zaretskii [Sun, 17 Oct 2021 09:49:04 +0000 (12:49 +0300)]
Improve doc strings in tab-line.el

* lisp/tab-line.el (tab-line-tab-name-function)
(tab-line-tab-name-truncated-buffer, tab-line-tabs-mode-buffers)
(tab-line-tabs-buffer-group-function)
(tab-line-tabs-buffer-group-sort-function)
(tab-line-tabs-buffer-groups, tab-line-tab-name-format-function)
(tab-line-tab-name-format-default, tab-line-format-template)
(tab-line-tab-face-inactive-alternating)
(tab-line-tab-face-special, tab-line-tab-face-modified)
(tab-line-format, tab-line-auto-hscroll, tab-line-hscroll-right)
(tab-line-hscroll-left, tab-line-new-tab, tab-line-select-tab)
(tab-line-switch-to-prev-tab, tab-line-switch-to-next-tab)
(tab-line-close-tab-function, tab-line-close-tab)
(tab-line-tab-context-menu, tab-line-context-menu)
(tab-line-mode, tab-line-exclude-modes, tab-line-mode--turn-on):
Add or fix doc strings.

3 years agoMore documentation fixes in tab-bar.el
Eli Zaretskii [Sun, 17 Oct 2021 08:42:23 +0000 (11:42 +0300)]
More documentation fixes in tab-bar.el

* lisp/tab-bar.el (tab-bar-detach-tab, tab-bar-move-window-to-tab)
(tab-bar-new-tab-to, tab-bar-new-tab, tab-bar-close-tab-select)
(tab-bar-close-last-tab-choice, tab-bar-tab-pre-close-functions)
(tab-bar-close-tab, tab-bar-close-tab-by-name)
(tab-bar-close-other-tabs, tab-bar-rename-tab)
(tab-bar-rename-tab-by-name, tab-bar-move-tab-to-group)
(tab-bar-change-tab-group, tab-bar-close-group-tabs)
(tab-switcher-next-line, tab-switcher-prev-line)
(tab-switcher-unmark, tab-switcher-delete, tab-switcher-select)
(tab-bar-get-buffer-tab, display-buffer-in-tab)
(display-buffer-in-new-tab, switch-to-buffer-other-tab)
(find-file-other-tab, find-file-read-only-other-tab): Doc fixes.

3 years agoImprove doc strings of tab-bar commands
Eli Zaretskii [Sun, 17 Oct 2021 07:33:34 +0000 (10:33 +0300)]
Improve doc strings of tab-bar commands

* lisp/tab-bar.el (tab-bar-mouse-select-tab)
(tab-bar-mouse-move-tab, tab-bar-mouse-close-tab-from-button)
(tab-bar-mouse-close-tab, tab-bar-mouse-context-menu)
(tab-bar-switch-to-next-tab, tab-bar-switch-to-prev-tab)
(tab-bar-switch-to-last-tab, tab-bar-switch-to-recent-tab)
(tab-bar-move-tab-backward, tab-bar-move-tab)
(tab-bar-move-tab-to-frame): Add/fix doc strings.

3 years agoFix a semantic test on some macOS machines
Stefan Kangas [Sun, 17 Oct 2021 01:00:10 +0000 (03:00 +0200)]
Fix a semantic test on some macOS machines

* test/lisp/cedet/semantic/bovine/gcc-tests.el
(semantic-gcc-test-output-parser-this-machine): Fix test on some macOS
machines where running "gcc" runs "llvm" instead.

3 years agoUpdate to Org 9.5-57-g9bc3a2
Kyle Meyer [Sat, 16 Oct 2021 18:01:34 +0000 (14:01 -0400)]
Update to Org 9.5-57-g9bc3a2

3 years agoRecommend against using uce.el
Stefan Kangas [Tue, 12 Oct 2021 04:30:20 +0000 (06:30 +0200)]
Recommend against using uce.el

* lisp/mail/uce.el: Recommend against its use.  (Bug#46472)
Do not merge to master.

3 years agoAvoid aborts when a thread is signaled while "waiting for input".
Eli Zaretskii [Sat, 16 Oct 2021 11:47:32 +0000 (14:47 +0300)]
Avoid aborts when a thread is signaled while "waiting for input".

* src/process.c (kbd_is_ours): New function.
(wait_reading_process_output): Set 'waiting_for_input' only if the
current thread is monitoring the keyboard descriptor.  See also
https://lists.gnu.org/archive/html/emacs-devel/2021-10/msg01180.html.
(Bug#51229)