]> git.eshelyaron.com Git - emacs.git/log
emacs.git
2 years agoAvoid duplicates in `package-activated-list'
Sam Steingold [Thu, 26 May 2022 20:18:09 +0000 (16:18 -0400)]
Avoid duplicates in `package-activated-list'

* lisp/emacs-lisp/package.el (package-quickstart-refresh): Calling
`package-activate-all' twice leads to duplicates in
`package-activated-list' - avoid that.

2 years agoTest suite for Completions UI (bug#54374)
Juri Linkov [Thu, 26 May 2022 16:26:10 +0000 (19:26 +0300)]
Test suite for Completions UI (bug#54374)

* test/lisp/minibuffer-tests.el (completing-read-with-minibuffer-setup):
New macro based on xdisp-tests--in-minibuffer.
(completion-auto-help-test, completion-auto-select-test)
(completion-auto-wrap-test, completions-header-format-test)
(completions-affixation-navigation-test): New tests.

2 years ago* test/lisp/files-resources/compile-utf8.el: Use lexical-binding
Stefan Monnier [Thu, 26 May 2022 16:16:04 +0000 (12:16 -0400)]
* test/lisp/files-resources/compile-utf8.el: Use lexical-binding

2 years ago* etc/themes/leuven-dark-theme.el: Use lexical-binding
Stefan Monnier [Thu, 26 May 2022 16:15:06 +0000 (12:15 -0400)]
* etc/themes/leuven-dark-theme.el: Use lexical-binding

2 years agoAdd support for the Balinese script (bug#55648)
समीर सिंह Sameer Singh [Thu, 26 May 2022 00:04:30 +0000 (05:34 +0530)]
Add support for the Balinese script (bug#55648)

* lisp/language/indonesian.el ("Balinese"): New language environment.
Add composition rules for Balinese.  Add sample text and input
method.
* lisp/international/fontset.el (script-representative-chars)
(setup-default-fontset): Support Balinese.
* lisp/leim/quail/indonesian.el ("balinese"): New input method.
* lisp/loadup.el: Preload lisp/language/indonesian.el.

* etc/HELLO: Add a Balinese greeting.
* etc/NEWS: Announce the new language environment and its
input method.

2 years agoFaster and less recursive byte-compile--first-symbol-with-pos
Mattias Engdegård [Thu, 26 May 2022 15:19:45 +0000 (17:19 +0200)]
Faster and less recursive byte-compile--first-symbol-with-pos

* lisp/emacs-lisp/bytecomp.el (byte-compile--first-symbol-with-pos)
(byte-compile--warning-source-offset):
Remove recursion for cdr-traversal of lists, and optimise (bug#55414).

2 years agoHandle alternate actions for Motif drop targets
Po Lu [Thu, 26 May 2022 13:00:17 +0000 (21:00 +0800)]
Handle alternate actions for Motif drop targets

* src/xterm.c (xm_side_effect_from_action): Handle
`XdndActionAsk'.
(xm_operations_from_actions): New function.
(xm_send_top_level_leave_message, x_dnd_cleanup_drag_and_drop)
(x_dnd_update_state, handle_one_xevent, x_connection_closed):
Use those actions when building a side effect.
(x_dnd_begin_drag_and_drop): Keep track of the set of
alternative drag-and-drop actions.

2 years agoMake comp--native-compile delete the temp file it creates
Lars Ingebrigtsen [Thu, 26 May 2022 12:47:16 +0000 (14:47 +0200)]
Make comp--native-compile delete the temp file it creates

* lisp/emacs-lisp/comp.el (comp--native-compile): Delete the
temporary files we create (bug#55611).

2 years agoMake memory-report not bug out with symbols with positions
Lars Ingebrigtsen [Thu, 26 May 2022 11:04:50 +0000 (13:04 +0200)]
Make memory-report not bug out with symbols with positions

* lisp/emacs-lisp/memory-report.el (memory-report--object-size-1):
Don't bug out when there are symbols with positions.

2 years ago; Fix up doc of recent elisp-eldoc-var-docstring-with-value addition
Štěpán Němec [Thu, 26 May 2022 08:58:22 +0000 (10:58 +0200)]
; Fix up doc of recent elisp-eldoc-var-docstring-with-value addition

2 years agoFix the `x_trace_wire' option
Po Lu [Thu, 26 May 2022 06:37:27 +0000 (14:37 +0800)]
Fix the `x_trace_wire' option

* src/xterm.c (x_trace_wire):
(x_term_init): Fix debugging code for modern C and Xlib.

2 years agoUse x_get_atom_name for some more things
Po Lu [Thu, 26 May 2022 06:27:32 +0000 (14:27 +0800)]
Use x_get_atom_name for some more things

* src/xterm.c (x_dnd_send_unsupported_drop, x_dnd_send_drop):
Use x_get_atom_name instead of XGetAtomName.

2 years ago* src/xselect.c (Fx_register_dnd_atom): Use x_intern_cached_atom.
Po Lu [Thu, 26 May 2022 02:40:54 +0000 (10:40 +0800)]
* src/xselect.c (Fx_register_dnd_atom): Use x_intern_cached_atom.

2 years agoMake X error checking more asynchronous
Po Lu [Thu, 26 May 2022 02:22:24 +0000 (10:22 +0800)]
Make X error checking more asynchronous

This makes some operations (such as x-get-atom-name and
x-change-window-property) up to 2600x faster by avoiding calls
to XSync when setting up an error handler, and when checking for
or uncatching errors if all requests were already processed.

* src/xterm.c (X_COMPARE_SERIALS): New macro.
(struct x_error_message_stack): Add new field `first_request'.
(x_find_error_handler): New function.
(x_error_catcher): New parameter `stack'.  Use it instead.
(x_catch_errors_with_handler): Keep a record of the next
protocol request serial inside the stack entry.
(x_uncatch_errors, x_check_errors, x_had_errors_p, x_clear_errors)
(x_error_handler): Avoid XSync if all requests were processed by
the X server and look for the error handler matching the display
and request serial when processing errors.

2 years agoImprove x_get_atom_name for some predefined atoms
Po Lu [Thu, 26 May 2022 00:13:17 +0000 (08:13 +0800)]
Improve x_get_atom_name for some predefined atoms

* src/xterm.c (x_get_atom_name): Handle XSETTINGS and cm atoms.

2 years agoFix 32-bit warnings again
Po Lu [Thu, 26 May 2022 00:11:36 +0000 (08:11 +0800)]
Fix 32-bit warnings again

* src/print.c (struct print_stack_entry): Make
u.list.tortoise_idx intmax_t.

2 years ago; Fix documentation of recent additions of Indian scripts
Eli Zaretskii [Wed, 25 May 2022 18:40:22 +0000 (21:40 +0300)]
; Fix documentation of recent additions of Indian scripts

* lisp/language/indian.el ("Kannada", "Tirhuta", "Sharada")
("Siddham", "Syloti Nagri", "Modi", "Limbu"): Fix grammar of doc
string.  (Bug#55621)

2 years agoAdd support for the Limbu script (bug#55621)
समीर सिंह Sameer Singh [Wed, 25 May 2022 02:12:29 +0000 (07:42 +0530)]
Add support for the Limbu script (bug#55621)

* lisp/language/indian.el ("Limbu"): New language environment.
Add composition rules for Limbu.  Add sample text and input
method.
* lisp/international/fontset.el (script-representative-chars)
(setup-default-fontset): Support Limbu.
* lisp/leim/quail/indian.el ("limbu"): New input method.

* etc/HELLO: Add a Limbu greeting.
* etc/NEWS: Announce the new language environment and its
input method.

2 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Eli Zaretskii [Wed, 25 May 2022 18:08:01 +0000 (14:08 -0400)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

2 years ago; * etc/NEWS.28: Fix merge of NEWS.28.
Eli Zaretskii [Wed, 25 May 2022 18:05:09 +0000 (14:05 -0400)]
; * etc/NEWS.28: Fix merge of NEWS.28.

2 years agoMerge from origin/emacs-28
Eli Zaretskii [Wed, 25 May 2022 17:57:59 +0000 (13:57 -0400)]
Merge from origin/emacs-28

86b49d5865 ; * etc/NEWS: Announce changes in 'desktop-kill'.  (Bug#55...
d5ccf2621a ; Fix last change
f1c1fd7184 Improve documentation of mail-user-agent.
b05d1e9b98 ; * lisp/desktop.el: Update the commentary.  (Bug#55560)
139bfa1a08 More fixes in abbrev.el doc strings
d80dea6036 Add note about Tramp completion to completion-styles doc s...
9e7c0cf57d Remove mention of removed nnimap-nov-is-evil variable
90aae0bca2 Improve documentation strings and prompts in abbrev.el
dfa3e6f424 Restore the Fselect_window call in gui_consider_frame_title.
de35e9728f Advise against settings in the MS-Windows system registry
3ffa3d3403 ; Minor addition to make-tarball.txt
7dc026f9ea Fix kmacro-keymap binding after previous change
4f0fd54bc4 Add glossary entries for "interactively"
af1c05a3c4 Fix the name of a kmacro command.

# Conflicts:
# etc/NEWS
# lisp/abbrev.el

2 years ago* lisp/subr.el (insert-for-yank): Add nil to run-hook-wrapped to keep looping.
Juri Linkov [Wed, 25 May 2022 17:45:49 +0000 (20:45 +0300)]
* lisp/subr.el (insert-for-yank): Add nil to run-hook-wrapped to keep looping.

2 years agoLower the roundtrip overhead of x-get-atom-name by 50% for common atoms
Po Lu [Wed, 25 May 2022 12:29:38 +0000 (20:29 +0800)]
Lower the roundtrip overhead of x-get-atom-name by 50% for common atoms

* src/xselect.c (Fx_get_atom_name):
* src/xterm.c (x_dnd_begin_drag_and_drop): Use that instead.  Don't
sync to handle errors if using `x_get_atom_name' resulted in no
protocol request being made.
(x_get_atom_name): New function.
* src/xterm.h: Update prototypes.

2 years agoMake yank-transform-functions into defvar
Lars Ingebrigtsen [Wed, 25 May 2022 12:23:56 +0000 (14:23 +0200)]
Make yank-transform-functions into defvar

* doc/lispref/text.texi (Yanking): Adjust.
* lisp/simple.el (yank-transform-functions): Make into defvar
because it's not that useful as a user option.

2 years agoReset 'eshell-in-pipeline-p' when interpolating commands
Jim Porter [Wed, 25 May 2022 01:56:50 +0000 (18:56 -0700)]
Reset 'eshell-in-pipeline-p' when interpolating commands

* lisp/eshell/esh-cmd.el (eshell-subcommand-bindings)
(eshell-command-to-value): Set 'eshell-in-pipeline-p' to nil.

* test/lisp/eshell/eshell-tests.el
(eshell-test/subcommand-reset-in-pipeline)
(eshell-test/lisp-reset-in-pipeline): New tests (bug#55620).

2 years agoChange variable which-func-unknown to "n/a"
Paul W. Rankin [Tue, 24 May 2022 22:19:57 +0000 (18:19 -0400)]
Change variable which-func-unknown to "n/a"

* lisp/progmodes/which-func.el (which-func-unknown): Change string
displayed in mode-line from "???" to "n/a"; the former appears to
indicate an error whereas the latter is more indicative that the
current function is not known.

2 years agoAdd more predefined atoms for the benefit of DND code
Po Lu [Wed, 25 May 2022 10:21:33 +0000 (18:21 +0800)]
Add more predefined atoms for the benefit of DND code

* src/xterm.c (x_intern_cached_atom): Handle `CARDINAL' and
`WINDOW' as well.

2 years agoPrefer defvar-keymap in url/*.el
Stefan Kangas [Wed, 25 May 2022 07:43:27 +0000 (09:43 +0200)]
Prefer defvar-keymap in url/*.el

* lisp/url/url-cookie.el (url-cookie-mode-map):
* lisp/url/url-dired.el (url-dired-minor-mode-map): Prefer
defvar-keymap.

2 years agoRemove some ancient Emacs compat code
Stefan Kangas [Fri, 20 May 2022 19:11:48 +0000 (21:11 +0200)]
Remove some ancient Emacs compat code

* lisp/url/url-util.el (url-percentage): Remove Emacs 19 compat
code.

* lisp/erc/erc-backend.el (erc-server-coding-system):
* lisp/gnus/mm-util.el (mm-iso-8859-x-to-15-table): Remove Emacs
19 compat code; coding-system-p is fboundp.

* lisp/progmodes/cfengine.el (cfengine-fill-paragraph): Remove Emacs
21 compat code.

2 years agoImprove atom interning in `x-change-window-property'
Po Lu [Wed, 25 May 2022 06:54:47 +0000 (14:54 +0800)]
Improve atom interning in `x-change-window-property'

* src/xfns.c (Fx_change_window_property): Improve doc string and
use `x_intern_cached_atom'.
* src/xterm.c (x_intern_cached_atom): New argument
`predefined_only'.  All callers changed.
* src/xterm.h: Update prototypes.

2 years agoFix cursor color adjustment on Haiku
Po Lu [Wed, 25 May 2022 02:17:46 +0000 (02:17 +0000)]
Fix cursor color adjustment on Haiku

* src/haikufns.c (haiku_set_foreground_color): Maybe set cursor
color correctly if it was equal to the old foreground color.

2 years agoDon't have edebug bug out if C-x is rebound
Lars Ingebrigtsen [Wed, 25 May 2022 01:50:36 +0000 (03:50 +0200)]
Don't have edebug bug out if C-x is rebound

* lisp/emacs-lisp/edebug.el (edebug-global-prefix): Don't bug out
if C-x has been rebound (bug#55607).

2 years agoAdd more atoms that don't need a roundtrip to intern
Po Lu [Wed, 25 May 2022 01:38:20 +0000 (09:38 +0800)]
Add more atoms that don't need a roundtrip to intern

* src/xterm.c (x_intern_cached_atom): Handle dpyinfo atoms that
depend on the screen number and common selection atoms.

2 years agoUpdate edebug comments
Lars Ingebrigtsen [Wed, 25 May 2022 01:35:12 +0000 (03:35 +0200)]
Update edebug comments

* lisp/emacs-lisp/edebug.el: Update function name in comments
(bug#55607).

2 years ago; Fix inevitable failure in erc-dcc test
F. Jason Park [Tue, 24 May 2022 13:41:40 +0000 (06:41 -0700)]
; Fix inevitable failure in erc-dcc test

* test/lisp/erc/erc-dcc-tests.el
(erc-dcc-tests--dcc-handle-ctcp-send): Shadow hook to prevent the
erc-button module from interfering with tests that use this helper.

2 years agoRegenerated ldefs-boot.el
Lars Ingebrigtsen [Wed, 25 May 2022 01:25:19 +0000 (03:25 +0200)]
Regenerated ldefs-boot.el

2 years agoFix ert-run-tests-batch-and-exit doc string typo
Lars Ingebrigtsen [Wed, 25 May 2022 01:24:52 +0000 (03:24 +0200)]
Fix ert-run-tests-batch-and-exit doc string typo

* lisp/emacs-lisp/ert.el (ert-run-tests-batch-and-exit): Fix doc
string typo.

2 years agoAutoload package-update-all
Lars Ingebrigtsen [Wed, 25 May 2022 01:23:50 +0000 (03:23 +0200)]
Autoload package-update-all

* lisp/emacs-lisp/package.el (package-update-all): Autoload and
tweak querying so that -f works.

2 years agoFix compilation on GTK when Xrandr is not present
Po Lu [Wed, 25 May 2022 00:49:14 +0000 (08:49 +0800)]
Fix compilation on GTK when Xrandr is not present

* src/xterm.c (x_term_init): Make term always present on GTK.

2 years agoFix comp-mvar doc string quoting
Lars Ingebrigtsen [Tue, 24 May 2022 19:13:59 +0000 (21:13 +0200)]
Fix comp-mvar doc string quoting

* lisp/emacs-lisp/comp.el (comp-mvar): Fix quoting of symbol in
doc string.

2 years agoRemove f90-mode regexp ambiguity (bug#17222)
Mattias Engdegård [Tue, 24 May 2022 18:08:05 +0000 (20:08 +0200)]
Remove f90-mode regexp ambiguity (bug#17222)

* lisp/progmodes/f90.el (f90-font-lock-keywords-2):
Modify regexp to be better-behaved.

2 years agoDon't use `format-message' to make doc strings in erc-backend
Lars Ingebrigtsen [Tue, 24 May 2022 17:02:06 +0000 (19:02 +0200)]
Don't use `format-message' to make doc strings in erc-backend

* lisp/erc/erc-backend.el (define-erc-response-handler): Use
`format' here instead of `format-message' since Emacs will expand
the doc string later when the user asks for help about the symbols
defined.

2 years agoFix a byte compilation warning in electric.el
Lars Ingebrigtsen [Tue, 24 May 2022 16:52:58 +0000 (18:52 +0200)]
Fix a byte compilation warning in electric.el

* lisp/electric.el (electric-quote-mode): Quote a naked ‘ character.

2 years agoMake byte compilation warn about wrong quoting in doc strings
Lars Ingebrigtsen [Tue, 24 May 2022 16:48:39 +0000 (18:48 +0200)]
Make byte compilation warn about wrong quoting in doc strings

* lisp/emacs-lisp/bytecomp.el
(byte-compile-docstring-length-warn): Made into obsolete alias.
(byte-compile-docstring-style-warn): Also warn about other
stylistic issues.
(byte-compile-file-form-autoload, byte-compile-file-form-defvar)
(byte-compile-file-form-defvar-function, byte-compile-lambda)
(byte-compile-defvar, byte-compile-file-form-defalias): Adjust callers.

2 years agoFix the final divergent single quote usages in doc strings
Lars Ingebrigtsen [Tue, 24 May 2022 16:42:30 +0000 (18:42 +0200)]
Fix the final divergent single quote usages in doc strings

* lisp/view.el (view-mode-map):
* lisp/repeat.el (repeat-is-really-this-command):
* lisp/help.el (substitute-command-keys):
* lisp/electric.el (electric-quote-mode):
* lisp/cedet/srecode/texi.el (srecode-texi-texify-docstring):
* lisp/cedet/semantic/sort.el
(semantic-orphaned-member-metaparent-type): Audit usages of single
quotes in doc strings.

2 years agoCC Mode: Fix interplay between string fences and electric-pair-mode.
Alan Mackenzie [Tue, 24 May 2022 16:33:20 +0000 (16:33 +0000)]
CC Mode: Fix interplay between string fences and electric-pair-mode.

This is an amendment to the fix for bug #55230.

* lisp/progmodes/cc-defs.el: (c-with-string-fences): Add an edebug spec.

* lisp/progmodes/cc-cmds.el: (c-electric-pound, c-electric-brace)
(c-electric-slash, c-electric-star, c-electric-semi&comma, c-electric-colon)
(c-electric-lt-gt, c-electric-paren): Put the final
c--call-post-self-insert-hook-more-safely outside of the functions'
c-with-string-fences.
(c-electric-brace, c-electric-lt-gt, c-electric-paren): Put the calls to
electric-pair-post-self-insert-function outside of c-with-string-fences.

2 years agoMake `yank-transform-functions` a proper hook
Stefan Monnier [Tue, 24 May 2022 16:29:54 +0000 (12:29 -0400)]
Make `yank-transform-functions` a proper hook

* lisp/subr.el (insert-for-yank): Use `run-hook-wrapped` to run
`yank-transform-functions`.
* lisp/simple.el (yank-transform-functions): Adjust accordingly.

2 years agoFix issue with nativecomp tests leaving files behind in /tmp
Lars Ingebrigtsen [Tue, 24 May 2022 15:24:20 +0000 (17:24 +0200)]
Fix issue with nativecomp tests leaving files behind in /tmp

* test/src/comp-tests.el (comp-deftest): Ensure that no files are left
behind (bug#55611).

2 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Tue, 24 May 2022 14:12:26 +0000 (17:12 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

2 years agoAdd support for the Buhid and Tagbanwa scripts (bug#55610)
समीर सिंह Sameer Singh [Tue, 24 May 2022 11:35:32 +0000 (17:05 +0530)]
Add support for the Buhid and Tagbanwa scripts (bug#55610)

* lisp/language/philippine.el ("Buhid"): New language environment.
("Tagbanwa"): New language environment.
Add input methods for Buhid and Tagbanwa.
Add sample text for Tagbanwa.
* lisp/international/fontset.el (script-representative-chars)
(setup-default-fontset): Support Buhid and Tagbanwa.
* lisp/leim/quail/philippine.el ("buhid"): New input method.
("tagbanwa"): New input method.

* etc/HELLO: Add a Tagbanwa greeting.
* etc/NEWS: Announce the new language environments and their
input methods.

2 years agoClean up a test file in /tmp
Lars Ingebrigtsen [Tue, 24 May 2022 14:11:01 +0000 (16:11 +0200)]
Clean up a test file in /tmp

* test/src/buffer-tests.el (test-restore-buffer-modified-p): Clean
up autosave file in /tmp.

2 years agoAdd more error checking to some X functions
Po Lu [Tue, 24 May 2022 13:20:46 +0000 (21:20 +0800)]
Add more error checking to some X functions

* src/xfns.c (Fx_change_window_property, Fx_delete_window_property)
(Fx_window_property, Fx_window_property_attributes): Check for
errors in case the window is invalid.  Also use better function
for interning prop names.

* src/xterm.c (struct x_atom_ref): New structure.
(x_atom_refs): New list.  Extract from x_term_init.
(x_intern_cached_atom): New function.  Use it in several places
to avoid interning common atoms.
(x_term_init): Adjust accordingly.

* src/xterm.h: Update prototypes.

2 years agoPrevent errors when Lisp code asks for props of invalid windows
Po Lu [Tue, 24 May 2022 13:01:14 +0000 (21:01 +0800)]
Prevent errors when Lisp code asks for props of invalid windows

* src/xfns.c (Fx_window_property):
(Fx_window_property_attributes): Catch X errors.

2 years agoHandle invalid NEWS files during describe-function
Po Lu [Tue, 24 May 2022 12:58:52 +0000 (20:58 +0800)]
Handle invalid NEWS files during describe-function

* src/help-fns.el (help-fns--first-release): Don't error if
searching for a heading fails.

2 years agoKeep subcommands in pipelines from clobbering the head/tail processes
Jim Porter [Mon, 23 May 2022 00:27:48 +0000 (17:27 -0700)]
Keep subcommands in pipelines from clobbering the head/tail processes

* lisp/eshell/esh-cmd.el (eshell-execute-pipeline): Use 'make-symbol'
for headproc and tailproc.
(eshell-do-pipelines, eshell-do-pipelines-synchronously): Adapt to the
above.

* test/lisp/eshell/eshell-tests.el (eshell-test/pipe-subcommand)
(eshell-test/pipe-subcommand-with-pipe): New test.

* doc/misc/eshell.texi (Bugs and ideas): Remove item about piping to
process from loop; this commit fixes it (bug#55590).

2 years agoTweak remapping fix for set-transient-map
Lars Ingebrigtsen [Tue, 24 May 2022 12:54:40 +0000 (14:54 +0200)]
Tweak remapping fix for set-transient-map

* lisp/subr.el (set-transient-map): The remapping doesn't have to
be in this map.

2 years agoAdd elisp-eldoc-var-docstring-with-value function
Štěpán Němec [Tue, 24 May 2022 12:49:42 +0000 (14:49 +0200)]
Add elisp-eldoc-var-docstring-with-value function

* lisp/progmodes/elisp-mode.el
(elisp-eldoc-var-docstring-with-value): New function (bug#55096).

2 years agoMake the nativecomp test eln directory more reliably be removed
Lars Ingebrigtsen [Tue, 24 May 2022 12:06:38 +0000 (14:06 +0200)]
Make the nativecomp test eln directory more reliably be removed

* lisp/startup.el (startup-redirect-eln-cache, normal-top-level):
Don't create the nativecomp directory here, because this led to
brittle deletions of the directory -- there would be several
instances of the directory left over after a test run.

* lisp/emacs-lisp/ert.el (ert-run-tests-batch-and-exit): Create
the nativecomp directory.

2 years agoRegenerated ldefs-boot.el
Lars Ingebrigtsen [Tue, 24 May 2022 11:22:06 +0000 (13:22 +0200)]
Regenerated ldefs-boot.el

2 years agoFurther audits of single quotes in Lisp doc strings
Lars Ingebrigtsen [Tue, 24 May 2022 11:17:53 +0000 (13:17 +0200)]
Further audits of single quotes in Lisp doc strings

* test/manual/etags/el-src/emacs/lisp/progmodes/etags.el
(tags-apropos-additional-actions):
* lisp/window.el (delete-window-choose-selected):
* lisp/vc/ediff-merg.el (ediff-combination-pattern):
* lisp/vc/diff.el (diff-no-select):
* lisp/tab-bar.el (tab-bar-new-tab-choice):
* lisp/simple.el (next-error-message-highlight):
(backward-delete-char-untabify):
* lisp/ses.el (ses-jump-cell-name-function):
* lisp/org/org.el (org-latex-to-html-convert-command):
* lisp/org/org-agenda.el (org-agenda-sorting-strategy):
* lisp/net/tramp.el (tramp-default-file-modes):
* lisp/net/newst-treeview.el
(newsticker-treeview-use-feed-name-from-url-list-in-treeview):
* lisp/net/eww.el (eww-auto-rename-buffer):
* lisp/mwheel.el (mouse-wheel-scroll-amount):
* lisp/mail/rmail.el (rmail-re-abbrevs):
* lisp/info.el (Info-history-forward-menu):
* lisp/gnus/nnselect.el (nnselect-retrieve-headers-override-function):
* lisp/gnus/gnus-start.el (gnus-subscribe-hierarchical-interactive):
* lisp/fringe.el (fboundp):
* lisp/eshell/esh-var.el (eshell-variable-aliases-list):
* lisp/emacs-lisp/checkdoc.el (checkdoc-column-zero-backslash-before-paren):
* lisp/dired-aux.el (dired-confirm-shell-command):
* lisp/calendar/calendar.el (calendar-time-zone-style):
* lisp/ansi-color.el (ansi-color-faces-vector):
(ansi-color-names-vector): Audit use of various single quotes in
Lisp doc strings.

2 years agoAudit symbol quoting in Lisp doc strings
Lars Ingebrigtsen [Tue, 24 May 2022 10:36:41 +0000 (12:36 +0200)]
Audit symbol quoting in Lisp doc strings

* lisp/vc/vc-svn.el (vc-svn-dir-status-files):
* lisp/so-long.el (so-long-mode-maintain-preserved-variables):
* lisp/help-fns.el (help-fns--most-relevant-active-keymap):
* lisp/gnus/nnselect.el (nnselect-get-artlist):
(nnselect-store-artlist):
* lisp/forms.el (forms-enumerate):
* lisp/ffap.el (ffap-string-at-point):
* lisp/emacs-lisp/byte-run.el (define-obsolete-variable-alias):
Audit symbol quoting in Lisp doc strings.

2 years agoAdd ".epub" to Tramp archive file suffixes.
Michael Albinus [Tue, 24 May 2022 10:15:41 +0000 (12:15 +0200)]
Add ".epub" to Tramp archive file suffixes.

* doc/misc/tramp.texi (Archive file names):
* lisp/net/tramp-archive.el (tramp-archive-suffixes): Add ".epub".

2 years agoAudit quoting symbols in C doc strings
Lars Ingebrigtsen [Tue, 24 May 2022 09:51:18 +0000 (11:51 +0200)]
Audit quoting symbols in C doc strings

* test/manual/etags/c-src/emacs/src/keyboard.c (Frecursive_edit):
* src/xfns.c (syms_of_xfns):
* src/xdisp.c (Fwindow_text_pixel_size):
(syms_of_xdisp):
* src/w32notify.c (Fw32notify_add_watch):
(Fw32notify_add_watch):
* src/frame.c (Fframe_child_frame_border_width):
* src/comp.c (Fcomp__subr_signature):
* src/alloc.c (Fgarbage_collect):
* lib-src/make-docfile.c (scan_c_stream): Audit quoting symbols in C
doc strings.

2 years agoAllow the user to fix `x-mouse-click-focus-ignore-position' on some systems
Po Lu [Tue, 24 May 2022 07:11:19 +0000 (15:11 +0800)]
Allow the user to fix `x-mouse-click-focus-ignore-position' on some systems

* src/xterm.c (handle_one_xevent): Apply that variable instead.
(syms_of_xterm): Update doc string and add new option to adjust
the focus click timeout.

2 years agoFix use of wrong event structure handling XI_Enter events
Po Lu [Tue, 24 May 2022 05:50:07 +0000 (13:50 +0800)]
Fix use of wrong event structure handling XI_Enter events

* src/xterm.c (handle_one_xevent): Use `enter' instead of `xev'
to set the mouse click timeout.

2 years ago* src/nsmenu.m (ns_menu_show): Use SAFE_ALLOCA.
Po Lu [Tue, 24 May 2022 02:55:36 +0000 (10:55 +0800)]
* src/nsmenu.m (ns_menu_show): Use SAFE_ALLOCA.

2 years agoMinor fixes to cursor color handling on Haiku
Po Lu [Tue, 24 May 2022 02:09:59 +0000 (02:09 +0000)]
Minor fixes to cursor color handling on Haiku

* src/haikufns.c (haiku_decode_color): New function.
(haiku_set_foreground_color, haiku_set_background_color)
(haiku_set_cursor_color, haiku_set_mouse_color): Use that
function to decode colors instead.  Also set cursor GC
foreground when setting background color.

* src/haikuterm.c (haiku_merge_cursor_foreground): Fix color
equality test.

2 years agoOnly send fallback MONITORS_CHANGED_EVENT when dimensions really changed
Po Lu [Tue, 24 May 2022 00:30:51 +0000 (08:30 +0800)]
Only send fallback MONITORS_CHANGED_EVENT when dimensions really changed

* src/xterm.c (handle_one_xevent): Test that root window
configure width and height are not the same as the previously
recorded ones.

2 years agoAvoid compiler warnings on macOS (bug#55595)
Eli Zaretskii [Mon, 23 May 2022 16:26:18 +0000 (19:26 +0300)]
Avoid compiler warnings on macOS (bug#55595)

* configure.ac: Don't use -Wunknown-pragmas with Clang.

* src/comp.c (load_comp_unit): Avoid Clang compilation warning.

2 years agoLess wrong printed circular list tail index (bug#55395)
Mattias Engdegård [Mon, 23 May 2022 14:34:29 +0000 (16:34 +0200)]
Less wrong printed circular list tail index (bug#55395)

When printing a circular list and `print-circle` is nil, use a
somewhat more meaningful ". #N" tail index.  The previous method for
calculating that index was based on Floyd circularity detection being
used so it had been broken ever since the change to Brent's algorithm.

The new index is correct with respect to the start of the list itself
which is what it used to be before being completely broken.
It does not take into account the nesting depth of the list context.

* src/print.c (struct print_stack_entry, print_object):
Keep track of the tortoise index (which is cheap) instead of trying
to derive it from the printed element index.
* test/src/print-tests.el (print-test-rho, print-circular):
New test.

2 years ago* src/w32menu.c (w32_menu_show): Use SAFE_ALLOCA. (Bug#55068)
Eli Zaretskii [Mon, 23 May 2022 13:54:17 +0000 (16:54 +0300)]
* src/w32menu.c (w32_menu_show): Use SAFE_ALLOCA.  (Bug#55068)

2 years agoFix saveplace.el when desktop.el restores non-ASCII buffers
Eli Zaretskii [Mon, 23 May 2022 13:32:47 +0000 (16:32 +0300)]
Fix saveplace.el when desktop.el restores non-ASCII buffers

* lisp/saveplace.el (load-save-place-alist-from-file): Bind
'coding-system-for-read' to nil, so that the 'coding:' cookie in
the save-place file takes effect.  (Bug#55592)

2 years agozap-to-char: Fix interactive specification
Tino Calancha [Mon, 23 May 2022 12:51:08 +0000 (14:51 +0200)]
zap-to-char: Fix interactive specification

* lisp/simple.el (zap-to-char): Include t in the list.

2 years agoAdapt last change to Haiku as well
Po Lu [Mon, 23 May 2022 12:50:27 +0000 (12:50 +0000)]
Adapt last change to Haiku as well

* src/haikumenu.c (digest_menu_items, haiku_menu_show): Use
SAFE_ALLOCA for various temporary buffers.

2 years agoFix stack overflows with large popup menus
Po Lu [Mon, 23 May 2022 12:31:18 +0000 (20:31 +0800)]
Fix stack overflows with large popup menus

* src/xmenu.c (x_menu_show): Allocate various stacks with
SAFE_ALLOCA.

2 years agoFix default child-frame-border-width on PGTK
Po Lu [Mon, 23 May 2022 12:15:43 +0000 (20:15 +0800)]
Fix default child-frame-border-width on PGTK

* src/pgtkfns.c (Fx_create_frame): Make default
`child-frame-border-width' nil.  (bug#55588)

2 years ago; * etc/NEWS: Announce changes in 'desktop-kill'. (Bug#55574)
Eli Zaretskii [Mon, 23 May 2022 11:58:13 +0000 (14:58 +0300)]
; * etc/NEWS: Announce changes in 'desktop-kill'.  (Bug#55574)

2 years agoImprove command-error-function discoverability
Lars Ingebrigtsen [Mon, 23 May 2022 11:56:03 +0000 (13:56 +0200)]
Improve command-error-function discoverability

* lisp/subr.el (error, user-error): Point to command-error-function.

* src/keyboard.c (syms_of_keyboard): Add an example (bug#40750).

2 years agoAdd support for the Hanunoo script (bug#55581)
समीर सिंह Sameer Singh [Sun, 22 May 2022 18:54:14 +0000 (00:24 +0530)]
Add support for the Hanunoo script (bug#55581)

* lisp/language/philippine.el ("Hanunoo"): New language environment.
Add composition rules for Hanunoo.  Add sample text and input
method.
* lisp/international/fontset.el (script-representative-chars)
(setup-default-fontset): Support Hanunoo.
* lisp/leim/quail/philippine.el ("hanunoo"): New input method.

* etc/HELLO: Add a Hanunoo greeting.
* etc/NEWS: Announce the new language environment and its
input method.

2 years agoMake remapped keys work in set-transient-map
Lars Ingebrigtsen [Mon, 23 May 2022 11:08:17 +0000 (13:08 +0200)]
Make remapped keys work in set-transient-map

* lisp/subr.el (set-transient-map): Make remapped keys work in
transient maps (bug#40096).

2 years agoFix coding style of recent change
Po Lu [Mon, 23 May 2022 10:31:11 +0000 (18:31 +0800)]
Fix coding style of recent change

* src/emacs.c (main): Fix coding style by putting the = operator
on the right row.

2 years agoImplement monitor change functions on Haiku
Po Lu [Mon, 23 May 2022 10:23:43 +0000 (10:23 +0000)]
Implement monitor change functions on Haiku

* src/haiku_io.c (haiku_len): Handle new event type.
* src/haiku_support.cc (class EmacsScreenChangeMonitor): New
class.
(class Emacs, Emacs): Create new screen change monitor.
(DispatchMessage): Update fullscreen state if the screen
changed.
(SetFullscreen): Don't punt if fullscreen mode is identical.

* src/haiku_support.h (enum haiku_event_type): New event
`SCREEN_CHANGE_EVENT'.
(struct haiku_screen_changed_event): New struct.

* src/haikuterm.c (haiku_read_socket): Handle new event.

2 years agoMake `d' in Dired skip dot files
Lars Ingebrigtsen [Mon, 23 May 2022 10:17:25 +0000 (12:17 +0200)]
Make `d' in Dired skip dot files

* lisp/dired.el (dired-mark): Skip dot files (bug#38729).  This
makes `C-u 10 d' (etc) consistent with marking the next ten lines
with the mouse and then hitting `d'.

2 years agoInclude development data in --version output
Lars Ingebrigtsen [Mon, 23 May 2022 09:58:22 +0000 (11:58 +0200)]
Include development data in --version output

* src/emacs.c (main): Include development into in --version output
(bug#38657).

2 years ago* lisp/tab-bar.el (switch-to-buffer-other-tab): Use pop-to-buffer (bug#55582).
Juri Linkov [Mon, 23 May 2022 07:48:15 +0000 (10:48 +0300)]
* lisp/tab-bar.el (switch-to-buffer-other-tab): Use pop-to-buffer (bug#55582).

Replace display-buffer with pop-to-buffer that sets the current buffer
explicitly.

2 years agoAllow extending 'save-some-buffers'
Lars Ingebrigtsen [Mon, 23 May 2022 07:45:35 +0000 (09:45 +0200)]
Allow extending 'save-some-buffers'

* lisp/abbrev.el (abbrev--possibly-save): Separated out from
`save-some-buffers'.
(save-some-buffers-functions): Add to the save function.

* lisp/files.el (save-some-buffers-functions): New variable.
(save-some-buffers): Use it.
(save-buffers-kill-emacs): Also use it to see if we have something
to save (bug#55579).

2 years agoMake bootstrap remove more generated files
Lars Ingebrigtsen [Mon, 23 May 2022 06:19:04 +0000 (08:19 +0200)]
Make bootstrap remove more generated files

* Makefile.in (bootstrap-clean): Remove lisp/leim/ja-dic/.

2 years agoMake bootstrap remove the native-lisp/ directory
Lars Ingebrigtsen [Mon, 23 May 2022 06:09:05 +0000 (08:09 +0200)]
Make bootstrap remove the native-lisp/ directory

* Makefile.in (bootstrap-clean): Remove the native-lisp/ directory.

2 years agoMinor fixes to PGTK child frames
Po Lu [Mon, 23 May 2022 05:30:33 +0000 (13:30 +0800)]
Minor fixes to PGTK child frames

* src/gtkutil.c (xg_check_special_colors): Handle child frames
correctly.
* src/pgtkfns.c (pgtk_set_child_frame_border_width): Synchronize
code from X.  (bug#55588)
* src/pgtkmenu.c (pgtk_menu_show, pgtk_dialog_show): Allow in
child frames.  There are no problems here.
* src/pgtkterm.c (pgtk_mouse_position): Clean up coding style.

2 years agoImplement monitor change functions on GNUstep
Po Lu [Mon, 23 May 2022 03:13:45 +0000 (11:13 +0800)]
Implement monitor change functions on GNUstep

* src/nsfns.m (Fns_display_monitor_attributes_list): Fix coding
style.
* src/nsterm.m (nstrace_leave, nstrace_restore_global_trace_state)
(nstrace_fullscreen_type_name): Fix coding style.
(ns_displays_reconfigured, ns_term_init): Make a record of the
previous display attributes list and avoid storing duplicate
events.
([EmacsApp init]): Listen for
NSApplicationDidChangeScreenParametersNotification.
([EmacsApp updateMonitors:]): New method.
(syms_of_nsterm): New staticpro.

2 years agoHandle screen size changes if the RandR library isn't available
Po Lu [Mon, 23 May 2022 02:55:48 +0000 (10:55 +0800)]
Handle screen size changes if the RandR library isn't available

* src/xterm.c (handle_one_xevent): [!HAVE_XRANDR]: Store
MONITORS_CHANGED_EVENT upon root window reconfiguration.

2 years agoFix `gui-backend-selection-owner-p' on Haiku
Po Lu [Mon, 23 May 2022 01:57:19 +0000 (01:57 +0000)]
Fix `gui-backend-selection-owner-p' on Haiku

* src/haiku_select.cc (be_update_clipboard_count): New function.
(be_set_clipboard_data): Update clipboard counts.
(BClipboard_owns_clipboard, clipboard_owner_p)
(BClipboard_owns_primary, primary_owner_p)
(BClipboard_owns_secondary, secondary_owner_p): Rename functions
somewhat.
(be_clipboard_owner_p): New function.
* src/haikuselect.c (Fhaiku_selection_put)
(Fhaiku_selection_owner_p): Update selection counts as well.
* src/haikuselect.h: Update prototypes.

2 years agoUse GDK for handling monitor changes when built with GTK
Po Lu [Mon, 23 May 2022 01:22:28 +0000 (09:22 +0800)]
Use GDK for handling monitor changes when built with GTK

* src/xterm.c (x_monitors_changed_cb): New function.
(handle_one_xevent): Don't handle RRNotify and
RRScreenChangeNotify on GTK.
(x_term_init): Connect to GdkScreen::monitors-changed instead of
selecting for RRNotify events.
(mark_xterm): Also mark `last_monitor_attributes_list' on GTK.
* src/xterm.h (struct x_display_info): Enable
`last_monitor_attributes_list' on GTK builds as well.

2 years agoRecognize DCC SSEND when receiving files in erc-dcc
F. Jason Park [Fri, 6 May 2022 04:13:47 +0000 (21:13 -0700)]
Recognize DCC SSEND when receiving files in erc-dcc

* lips/erc/erc-dcc.el (erc-dcc-open-network-stream): Use TLS
for new connections when :secure flag is set.
(erc-dcc-do-GET-command): Set secure flag when user explicitly passes
an "-s" option.
(erc-dcc-do-LIST-command): Show an "s" to indicate a secure connection
when applicable.
(erc-dcc-query-handler-alist): Add extra items for "SSEND", etc.
(erc-dcc-handle-ctcp-send): Set secure flag when a leading "S" appears
in the command type.

2 years agoAccommodate nonstandard turbo file senders in erc-dcc
F. Jason Park [Sat, 30 Apr 2022 09:16:46 +0000 (02:16 -0700)]
Accommodate nonstandard turbo file senders in erc-dcc

* lisp/erc/erc-dcc.el (erc-dcc-list): Document optional :turbo item.
(erc-message-english-dcc-list-{head,line,item}): Adjust format strings
to make room for "(T)" turbo indicator.
(erc-dcc-do-GET-command): Optionally set :turbo in `erc-dcc-list'
entry when passed "-t" in the "/DCC GET" slash command.  Also add
switch to command line in front-matter Commentary, but refrain from
publicizing further because our implementation is only defensive and
only for receiving.
(erc-dcc-do-LIST): Print message with new format specifier for turbo
status.
(erc-dcc-ctcp-query-send-regexp): Account for T- and S-prefixed
commands.  Receiving from an SSEND-capable sender will be added in a
subsequent commit.
(erc-dcc-handle-ctcp-send): Set :turbo item in `erc-dcc-list' member
when new match group is nonempty.
(erc-dcc--X-send-final-turbo-ack): New internal variable and potential
future option for extreme corner cases involving maverick turbo
senders, like WeeChat, who don't use the TSEND command variant.
(erc-dcc-get-filter): Don't send when turbo is active.

* test/lisp/erc/erc-dcc-tests.el: Add new file.
(Bug#54458)

2 years agoAllow matching against string values in erc-dcc-member
F. Jason Park [Sun, 10 Apr 2022 06:32:22 +0000 (23:32 -0700)]
Allow matching against string values in erc-dcc-member

* lisp/erc/erc-dcc.el (erc-dcc-member): Be more tolerant in the
catch-all case by testing for equality instead of identity.
(erc-dcc-do-GET-command): Pass file name when querying
`erc-dcc-member'. (Bug#54458)

2 years agoDon't send reports in erc-dcc-get-filter when nested
F. Jason Park [Mon, 28 Mar 2022 09:24:43 +0000 (02:24 -0700)]
Don't send reports in erc-dcc-get-filter when nested

* lisp/erc/erc-dcc.el (erc-dcc-get-filter): Don't bother sending a
"received so far" receipt if another attempt is still ongoing.
(Bug#54458)

2 years agoSummarize failed transfers in erc-dcc
F. Jason Park [Thu, 31 Mar 2022 00:16:11 +0000 (17:16 -0700)]
Summarize failed transfers in erc-dcc

* lisp/erc/erc-dcc.el (erc-dcc-get-sentinel): Display error when total
byte count received is lower than expected.
(erc-message-english-dcc-get-failed): Add `dcc-get-failed' to the
English messages catalog.
(erc-dcc-get-file): Tweak initialization of `erc-dcc-entry-data'.
(Bug#54458)

2 years ago* lisp/cedet/semantic/fw.el: Fix typo
Stefan Monnier [Sun, 22 May 2022 20:27:21 +0000 (16:27 -0400)]
* lisp/cedet/semantic/fw.el: Fix typo

2 years agomode-local: Revert the deprecation of buffer-local overrides
Stefan Monnier [Sun, 22 May 2022 20:10:58 +0000 (16:10 -0400)]
mode-local: Revert the deprecation of buffer-local overrides

Obviously, I did not understand how the <foo>--install-parser was invoked.

Revert "mode-local: Deprecate buffer-local overrides"
Revert "semantic-install-function-overrides: Declare obsolete"
Revert "wisent.el: Prefer `define-mode-local-override`"

This reverts commits 91bc24c46768aab4a851c87edaea05c7476ff779,
d2e0d1452b976a51579cf044257326850804c562, and
3294ad44ebcd024b4ada68d00bedca33acc52de6.