]> git.eshelyaron.com Git - emacs.git/log
emacs.git
2 years agoTune when to show "Quick Help" in Ediff mode-line
Michael Heerdegen [Tue, 14 Jun 2022 13:09:31 +0000 (15:09 +0200)]
Tune when to show "Quick Help" in Ediff mode-line

* lisp/vc/ediff-wind.el (ediff-refresh-mode-lines): Decide whether to
display "Quick Help" in the mode-line based on the value of
`ediff-use-long-help-message' instead of checking
`ediff-window-setup-function' (Bug#12840).

2 years agoMake checkdoc-defun-info parsing slightly less wrong
Lars Ingebrigtsen [Sun, 19 Jun 2022 12:17:05 +0000 (14:17 +0200)]
Make checkdoc-defun-info parsing slightly less wrong

* lisp/emacs-lisp/checkdoc.el (checkdoc-defun-info): Disregard
`interactive' in nested parts of the defun (bug#56052).

2 years agoAdd mechanism for gradually phasing in new byte compilation warnings
Lars Ingebrigtsen [Sun, 19 Jun 2022 11:37:10 +0000 (13:37 +0200)]
Add mechanism for gradually phasing in new byte compilation warnings

* lisp/Makefile.in (BYTE_COMPILE_FLAGS): Enable all byte
compilation warnings.
* lisp/emacs-lisp/bytecomp.el (byte-compile-warning-types): Add
docstrings-non-ascii-quotes and document new semantics for `all'
and t.
(byte-compile--emacs-build-warning-types): New constant.
(byte-compile-warning-enabled-p): Implement the new semantics.
(byte-compile-docstring-style-warn): Reinstate the Unicode quote
warning.

2 years agoIgnore emulated mouse clicks during drag-and-drop
Po Lu [Sun, 19 Jun 2022 07:21:46 +0000 (15:21 +0800)]
Ignore emulated mouse clicks during drag-and-drop

* src/xterm.c (handle_one_xevent): Don't set dpyinfo->grab and
last mouse frame for emulated mouse events during a
drag-and-drop operation.

2 years agoFix crashes when the _EMACS_DRAG_ATOM is the wrong type
Po Lu [Sun, 19 Jun 2022 05:32:27 +0000 (13:32 +0800)]
Fix crashes when the _EMACS_DRAG_ATOM is the wrong type

* src/xterm.c (xm_get_drag_atom_1): Don't use PropModeAppend if
rc != Success.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Sun, 19 Jun 2022 04:30:29 +0000 (06:30 +0200)]
Merge from origin/emacs-28

422f958030 Fix invalid defcustom :group when :predicate is used

2 years agoFix XDND from Firefox again
Po Lu [Sun, 19 Jun 2022 04:22:12 +0000 (12:22 +0800)]
Fix XDND from Firefox again

* lisp/x-dnd.el (x-dnd-handle-xdnd): Prevent nil from appearing
in format 32 list.
(x-dnd-handle-motif): Send reply if the user quit out of the
drop handler as well.

2 years agoCache the Motif drag window to avoid fetching it every time
Po Lu [Sun, 19 Jun 2022 03:35:12 +0000 (11:35 +0800)]
Cache the Motif drag window to avoid fetching it every time

* src/xterm.c (xm_get_drag_window_1): New function.
(xm_get_drag_window): Cache the window.  If it already exists,
just return it.
(xm_setup_dnd_targets): If a BadWindow error occurs, re-create
the Motif drag window.

* src/xterm.h (struct x_display_info): New field
`motif_drag_window'.

2 years agoFix timestamps recorded in Motif DND top level leave messages
Po Lu [Sun, 19 Jun 2022 02:31:33 +0000 (10:31 +0800)]
Fix timestamps recorded in Motif DND top level leave messages

* src/xterm.c (xm_send_top_level_leave_message): Use X_SHRT_MAX
since Motif treats x and y as signed.
(handle_one_xevent): Use correct time for lmsg.timestamp sent in
response to entering the return-frame.

2 years agoPrefer defvar-keymap in edmacro.el
Stefan Kangas [Sat, 18 Jun 2022 17:56:09 +0000 (19:56 +0200)]
Prefer defvar-keymap in edmacro.el

* lisp/edmacro.el (edmacro-mode-map): Prefer defvar-keymap.

2 years agoRespect no-face argument in literal key substitutions
Stefan Kangas [Sat, 18 Jun 2022 14:01:45 +0000 (16:01 +0200)]
Respect no-face argument in literal key substitutions

* lisp/help.el (substitute-command-keys): Respect 'no-face' argument
also in literal key substitutions.
* test/lisp/help-tests.el
(help-tests-substitute-key-bindings/help-key-binding-face): Rename
from help-tests-substitute-key-bindings/face-help-key-binding.
(help-tests-substitute-key-bindings/help-key-binding-no-face): New test.

2 years ago; * etc/NEWS: Move Bookmark items to separate heading.
Stefan Kangas [Sat, 18 Jun 2022 13:54:28 +0000 (15:54 +0200)]
; * etc/NEWS: Move Bookmark items to separate heading.

2 years agoFix last tty-select-active-regions change
Basil L. Contovounesios [Sat, 18 Jun 2022 16:52:31 +0000 (19:52 +0300)]
Fix last tty-select-active-regions change

* lisp/frame.el (tty-select-active-regions): Pacify warning about
missing defcustom :group by specifying the same group as
select-active-regions, as well as the frames group.
* src/keyboard.c (command_loop_1, syms_of_keyboard): Rename last
occurrences of xterm-select-active-regions to
tty-select-active-regions (bug#55883).

2 years agoCC Mode: Add accurate handling for backslash in C line and block comments
Alan Mackenzie [Sat, 18 Jun 2022 16:41:57 +0000 (16:41 +0000)]
CC Mode: Add accurate handling for backslash in C line and block comments

This is needed to handle the idiosyncratic meaning of backslash in comments in
the C and C++ standards.

* lisp/progmodes/cc-engine.el: Correct a spelling error.

* lisp/progmodes/cc-mode.el (c-before-change-fix-comment-escapes)
(c-after-change-fix-comment-escapes): New functions.

* lisp/progmodes/cc-langs.el (c-get-state-before-change-functions): Add
c-before-change-fix-comment-escapes to the C/Objc and C++ values.
(c-before-font-lock-functions): Add c-after-change-fix-comment-escapes to the
C/Objc and C++ values.

2 years agoFix test failures due to 'xterm-select-active-regions'
Eli Zaretskii [Sat, 18 Jun 2022 16:21:21 +0000 (19:21 +0300)]
Fix test failures due to 'xterm-select-active-regions'

* lisp/frame.el (tty-select-active-regions): Rename from
xterm-select-active-regions and move here from xterm.c.
(display-selections-p): Adjust to the above.  (Bug#55883)

2 years ago; Pacify byte-compiler warning in keymap-tests.el.
Basil L. Contovounesios [Sat, 18 Jun 2022 15:26:17 +0000 (18:26 +0300)]
; Pacify byte-compiler warning in keymap-tests.el.

2 years agoMore aggressive bytecode split between top-level forms (bug#55972)
Mattias Engdegård [Sat, 18 Jun 2022 13:15:57 +0000 (15:15 +0200)]
More aggressive bytecode split between top-level forms (bug#55972)

* lisp/emacs-lisp/bytecomp.el (byte-compile-keep-pending):
Allow bytecode split between all kinds of top-level forms, not just
those with chunk handlers, to prevent individual chunks from growing
too large.  In particular this helps compilation of
package-quickstart.el.

2 years agoFix checkdoc--fix-y-or-n-p query
Lars Ingebrigtsen [Sat, 18 Jun 2022 12:17:45 +0000 (14:17 +0200)]
Fix checkdoc--fix-y-or-n-p query

* lisp/emacs-lisp/checkdoc.el (checkdoc--fix-y-or-n-p): Fix the
query to match what's done (bug#56053).

2 years agoFix invalid defcustom :group when :predicate is used
Richard Hansen [Sat, 18 Jun 2022 12:11:01 +0000 (14:11 +0200)]
Fix invalid defcustom :group when :predicate is used

* lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Fix
invalid `:group' argument for the `-modes' defcustom that is created
when `:predicate' is used (bug#56049).

2 years agoFilter out NS non-key events from `where-is-internal'
Lars Ingebrigtsen [Sat, 18 Jun 2022 12:06:00 +0000 (14:06 +0200)]
Filter out NS non-key events from `where-is-internal'

* doc/lispref/keymaps.texi (Scanning Keymaps): Document it.
* lisp/keymap.el (make-non-key-event): New function.

* lisp/term/common-win.el (x-setup-function-keys): Mark ns events
as not being keys (bug#55940).

* src/keymap.c (Fwhere_is_internal): Filter out key sequences that
are marked as being non-keys.

2 years agoRemove unnecessary clearing of internal border on Haiku
Po Lu [Sat, 18 Jun 2022 12:03:18 +0000 (12:03 +0000)]
Remove unnecessary clearing of internal border on Haiku

* src/haikuterm.c (haiku_new_font): Don't clear internal border.

2 years agoAllow pretty-printing results from `C-x C-e' in edebug
Lars Ingebrigtsen [Sat, 18 Jun 2022 11:26:14 +0000 (13:26 +0200)]
Allow pretty-printing results from `C-x C-e' in edebug

* doc/lispref/edebug.texi (Edebug Eval): Document it.

* lisp/emacs-lisp/edebug.el (edebug-eval-expression): Allow
displaying the full value in a different buffer.

2 years agoCC Mode: Fix infinite loop in noise macro near end of buffer
Alan Mackenzie [Sat, 18 Jun 2022 11:23:06 +0000 (11:23 +0000)]
CC Mode: Fix infinite loop in noise macro near end of buffer

This fixes bug #55771.  Also fix an inaccuracy in c-defun-name-1 with the same
cause.

* lisp/progmodes/cc-cmds.el (c-defun-name-1)
* lisp/progmodes/cc-engine.el (c-forward-noise-clause): Check the return
value of c-forward-token-2 and act upon it when not zero.

2 years agoSupport `select-active-regions' with xterm
Duncan Findlay [Sat, 11 Jun 2022 01:46:49 +0000 (18:46 -0700)]
Support `select-active-regions' with xterm

This allows Emacs to save the active region to the user's
primary selection on supported terminals.  The behavior follows
the existing `select-active-regions' variable and requires
`xterm-select-active-regions' to be non-nil.

* src/keyboard.c (command_loop_1):
* lisp/frame.el (display-selections-p): On text terminals, check
terminal parameter `xterm--set-selections' and variable
`xterm-select-active-regions' when deciding whether to update
primary selection. (bug#55883)
* lisp/term/xterm.el (xterm-select-active-regions): New
defcustom.

2 years agoAvoid "control-control-KEY" (bug#55738)
Mattias Engdegård [Sat, 18 Jun 2022 09:08:23 +0000 (11:08 +0200)]
Avoid "control-control-KEY" (bug#55738)

Constructs such as ?\C-^@ or ?\C-\C-m literally apply a Control
modifier twice which doesn't make sense at all.  What is really meant
is a C0 base character with the Control modifier bit set.
This change is only stylistic in nature.

* lisp/edmacro.el (edmacro-format-keys):
* lisp/keymap.el (key-parse):
* lisp/subr.el (event-modifiers, event-basic-type):
* test/lisp/subr-tests.el (subr-test-kbd):
Use \0 and \r instead of ^@ and \C-m to represent NUL and RET
when combined with other modifiers.

2 years agoPrefer URL commentary header in two files
Stefan Kangas [Sat, 18 Jun 2022 09:07:12 +0000 (11:07 +0200)]
Prefer URL commentary header in two files

* lisp/transient.el:
* test/lisp/progmodes/cperl-mode-tests.el: Prefer URL commentary
header.

2 years ago; * lisp/misc.el (duplicate-line): Doc fix.
Eli Zaretskii [Sat, 18 Jun 2022 07:27:19 +0000 (10:27 +0300)]
; * lisp/misc.el (duplicate-line): Doc fix.

2 years ago; * etc/NEWS: Expand the entry about 'e' in Edebug.
Eli Zaretskii [Sat, 18 Jun 2022 07:22:47 +0000 (10:22 +0300)]
; * etc/NEWS: Expand the entry about 'e' in Edebug.

2 years agoDefine docstring element for more forms in scheme-mode
Stefan Kangas [Sat, 18 Jun 2022 07:13:06 +0000 (09:13 +0200)]
Define docstring element for more forms in scheme-mode

* lisp/progmodes/scheme.el: Define docstring element for more
forms.  (Bug#33117)

2 years agoRemove unused Haiku code
Po Lu [Sat, 18 Jun 2022 07:11:19 +0000 (07:11 +0000)]
Remove unused Haiku code

* src/haiku_select.cc (be_get_clipboard_targets_1)
(be_get_clipboard_targets): Delete functions.
(init_haiku_select): Rename to `be_clipboard_init'.  Avoid
duplicate definition with haikuterm.h.

* src/haikuselect.c (init_haiku_select): New function.
* src/haikuselect.h: Update prototypes.

2 years agoFix type mixup in haikuselect.c
Po Lu [Sat, 18 Jun 2022 06:04:24 +0000 (06:04 +0000)]
Fix type mixup in haikuselect.c

* src/haikuselect.c (haiku_lisp_to_message): Fix variable mixup.
Found with --enable-check-lisp-object-type.

2 years ago; * lisp/doc-view.el (doc-view-bookmark-jump): Fix capitalization.
Stefan Kangas [Fri, 17 Jun 2022 23:39:12 +0000 (01:39 +0200)]
; * lisp/doc-view.el (doc-view-bookmark-jump): Fix capitalization.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Sat, 18 Jun 2022 04:31:20 +0000 (06:31 +0200)]
Merge from origin/emacs-28

024bbcb35e Prune the Gnus FAQ of some outdated data

2 years ago; Merge from origin/emacs-28
Stefan Kangas [Sat, 18 Jun 2022 04:31:20 +0000 (06:31 +0200)]
; Merge from origin/emacs-28

The following commit was skipped:

c1f4cca7f0 Fix efaq-w32.texi build warning

2 years agoMerge from origin/emacs-28
Stefan Kangas [Sat, 18 Jun 2022 04:31:18 +0000 (06:31 +0200)]
Merge from origin/emacs-28

d671cd57c4 Update cl-struct-sequence-type doc string
017bdb1611 Fix a tagging problem in tramp.texi
e0bac17bbc Mention face quirks after the final line in the lispref ma...
ad74677cf3 Delete reference to obsolete library complete.el

2 years agoPrevent Lisp code or synthetic events from ruining the user time
Po Lu [Sat, 18 Jun 2022 03:19:01 +0000 (11:19 +0800)]
Prevent Lisp code or synthetic events from ruining the user time

* src/xterm.c (x_display_set_last_user_time): New parameter
`send_event'.  Make sure user time is newer unless !send_event.

(x_set_last_user_time_from_lisp): Remove redundant check.
(XTmouse_position):
(handle_one_xevent): Pass `send_event' whenever appropriate.

2 years agoFix specifying named action lists in `x-begin-drag'
Po Lu [Sat, 18 Jun 2022 02:14:24 +0000 (10:14 +0800)]
Fix specifying named action lists in `x-begin-drag'

* src/xfns.c (Fx_begin_drag): Record original value of `targets'
separately.  Pass that as the selection targets list instead.

* src/xterm.c (x_dnd_delete_action_list): New function.
(x_dnd_begin_drag_and_drop): Bind it if there are multiple
actions.

2 years agoExtend 'e' in edebug to pretty-print the values
Lars Ingebrigtsen [Fri, 17 Jun 2022 22:17:40 +0000 (00:17 +0200)]
Extend 'e' in edebug to pretty-print the values

* doc/lispref/edebug.texi (Edebug Eval): Document it.

* lisp/emacs-lisp/edebug.el (edebug-eval-expression): Allow
displaying the full value in a different buffer.

2 years agoPrune the Gnus FAQ of some outdated data
Lars Ingebrigtsen [Fri, 17 Jun 2022 19:38:30 +0000 (21:38 +0200)]
Prune the Gnus FAQ of some outdated data

* doc/misc/gnus-faq.texi (FAQ 9-2): Remove some outdated advice
(bug#56042).

2 years agoDelete another library obsolete since 24.1
Stefan Kangas [Fri, 17 Jun 2022 19:30:34 +0000 (21:30 +0200)]
Delete another library obsolete since 24.1

This file was missed in the last commit to delete libraries obsolete
since Emacs 24.3 or older.
* lisp/obsolete/pc-mode.el: Delete file.  This library has been
obsolete since Emacs 24.1.  (Bug#50999)

2 years agoAdd hacek variations to `C-x 8'
Lars Ingebrigtsen [Fri, 17 Jun 2022 19:25:44 +0000 (21:25 +0200)]
Add hacek variations to `C-x 8'

* lisp/international/iso-transl.el (iso-transl-char-map): Add
hacek characters on `C-x 8 ^ ^'.

2 years agoimage-dired: Use full name for bookmark handler type
Stefan Kangas [Fri, 17 Jun 2022 19:14:39 +0000 (21:14 +0200)]
image-dired: Use full name for bookmark handler type

* lisp/image-dired.el (image-dired-bookmark-jump): Use full mode name
for bookmark handler type.

2 years agoSet bookmark handler type for Eshell
Stefan Kangas [Fri, 17 Jun 2022 19:02:40 +0000 (21:02 +0200)]
Set bookmark handler type for Eshell

* lisp/eshell/esh-mode.el (eshell-bookmark-jump): Set bookmark handler
type.

2 years agoUpdate bookmark tests for recent change
Stefan Kangas [Fri, 17 Jun 2022 18:08:55 +0000 (20:08 +0200)]
Update bookmark tests for recent change

* test/lisp/bookmark-tests.el (bookmark-tests-set/bookmark-use-annotations-t)
(bookmark-tests-edit-annotation)
(bookmark-test-bmenu-send-edited-annotation)
(bookmark-test-bmenu-send-edited-annotation/restore-focus): Update for
recent change.

2 years agoFix copy-from-above-command doc string type
Lars Ingebrigtsen [Fri, 17 Jun 2022 17:47:08 +0000 (19:47 +0200)]
Fix copy-from-above-command doc string type

* lisp/misc.el (copy-from-above-command): Fix doc string typo.

2 years agoAdd new command `duplicate-line'
Lars Ingebrigtsen [Fri, 17 Jun 2022 17:33:48 +0000 (19:33 +0200)]
Add new command `duplicate-line'

* lisp/misc.el (copy-from-above-command): Mention it.
(duplicate-line): New command (bug#46621).

2 years agoSlightly faster hash-table-keys and hash-table-values
Mattias Engdegård [Fri, 17 Jun 2022 17:13:33 +0000 (19:13 +0200)]
Slightly faster hash-table-keys and hash-table-values

* lisp/emacs-lisp/subr-x.el (hash-table-keys, hash-table-values):
Omit the reversal of the returned list.  It is not ordered anyway.
* test/lisp/emacs-lisp/subr-x-tests.el
(subr-x--hash-table-keys-and-values): New test.

2 years agoFix efaq-w32.texi build warning
Lars Ingebrigtsen [Fri, 17 Jun 2022 14:59:18 +0000 (16:59 +0200)]
Fix efaq-w32.texi build warning

* doc/misc/efaq-w32.texi (Other useful ports): Fix ordering to
match nodes (or should the nodes be moved instead?).

Do not merge to master.

2 years agoRegenerate ldefs-boot.el
Lars Ingebrigtsen [Fri, 17 Jun 2022 17:11:16 +0000 (19:11 +0200)]
Regenerate ldefs-boot.el

2 years agoDon't quote numbers in byte-run--set-*
Lars Ingebrigtsen [Fri, 17 Jun 2022 17:10:44 +0000 (19:10 +0200)]
Don't quote numbers in byte-run--set-*

* lisp/emacs-lisp/byte-run.el (byte-run--set-doc-string)
(byte-run--set-indent): Don't quote numbers (bug#48145).

2 years agoFix handling of "process-*" properties in Tramp
Michael Albinus [Fri, 17 Jun 2022 16:53:23 +0000 (18:53 +0200)]
Fix handling of "process-*" properties in Tramp

* lisp/net/tramp.el (tramp-local-host-regexp): Add "localhost4".
(with-tramp-saved-connection-property): New defmacro.

* lisp/net/tramp-adb.el (tramp-adb-handle-make-process):
* lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band)
(tramp-sh-handle-make-process):
* lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory):
(tramp-smb-handle-file-acl, tramp-smb-handle-process-file)
(tramp-smb-handle-set-file-acl)
(tramp-smb-handle-start-file-process): Use it.  (Bug#55832)

2 years agoFix some declare-after-interactive functions
Lars Ingebrigtsen [Fri, 17 Jun 2022 16:19:02 +0000 (18:19 +0200)]
Fix some declare-after-interactive functions

* lisp/progmodes/opascal.el (opascal-new-comment-line):
* lisp/image-mode.el (image-transform-fit-to-height):
* lisp/help-fns.el (help-fns-edit-variable):
* lisp/gnus/gnus-salt.el (gnus-pick-start-reading):
* lisp/eshell/esh-util.el (eshell-for):
* lisp/ldefs-boot.el (view-return-to-alist-update): Fix warnings
about declare after interactive.

2 years agoRegenerate ldefs-boot.el
Lars Ingebrigtsen [Fri, 17 Jun 2022 16:12:57 +0000 (18:12 +0200)]
Regenerate ldefs-boot.el

2 years agoDon't quote the `when' form in obsoletions
Lars Ingebrigtsen [Fri, 17 Jun 2022 16:12:38 +0000 (18:12 +0200)]
Don't quote the `when' form in obsoletions

* lisp/emacs-lisp/byte-run.el (byte-run--set-obsolete): The `when'
is a string (or nil), so don't quote it (bug#48145).
* lisp/emacs-lisp/loaddefs-gen.el (loaddefs-generate--print-form):
Adjust folding.

2 years agoWarn about misplaced or duplicated function/macro declarations
Mattias Engdegård [Fri, 17 Jun 2022 15:06:05 +0000 (17:06 +0200)]
Warn about misplaced or duplicated function/macro declarations

Doc strings, `declare` and `interactive` forms must appear in that
order and at most once each.  Complain if they don't, instead of
silently ignoring the problem (bug#55905).

* lisp/emacs-lisp/byte-run.el (byte-run--parse-body)
(byte-run--parse-declarations): New.
(defmacro, defun): Check for declaration well-formedness as
described above.  Clarify doc strings.  Refactor some common code.
* test/lisp/emacs-lisp/bytecomp-resources/fun-attr-warn.el:
* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-fun-attr-warn):
New test.

2 years agoFix efaq-w32.texi build warning
Lars Ingebrigtsen [Fri, 17 Jun 2022 14:59:18 +0000 (16:59 +0200)]
Fix efaq-w32.texi build warning

* doc/misc/efaq-w32.texi (Other useful ports): Fix ordering to
match nodes (or should the nodes be moved instead?).

2 years agoRegenerated ldefs-boot.el
Lars Ingebrigtsen [Fri, 17 Jun 2022 14:50:42 +0000 (16:50 +0200)]
Regenerated ldefs-boot.el

2 years agoUpdate cl-struct-sequence-type doc string
Lars Ingebrigtsen [Fri, 17 Jun 2022 14:48:02 +0000 (16:48 +0200)]
Update cl-struct-sequence-type doc string

* lisp/emacs-lisp/cl-macs.el (cl-struct-sequence-type): Fix doc
string to reflect what it does (bug#46523).

2 years agoFix some command substitutions
Stefan Kangas [Fri, 17 Jun 2022 14:29:44 +0000 (16:29 +0200)]
Fix some command substitutions

* lisp/net/rcirc.el (rcirc-edit-multiline):
* lisp/textmodes/reftex-index.el (reftex-index-phrases-mode)
(reftex-index-phrase-selection-or-word):
* lisp/textmodes/remember.el (remember): Fix command substitutions.

2 years agoRename command to bookmark-edit-annotation-confirm
Stefan Kangas [Fri, 17 Jun 2022 14:06:10 +0000 (16:06 +0200)]
Rename command to bookmark-edit-annotation-confirm

* lisp/bookmark.el (bookmark-edit-annotation-confirm): Rename from
'bookmark-send-edited-annotation' to be more consistent with
'bookmark-edit-annotation-cancel'.  Make the old name into an
obsolete function alias.

2 years agoImprove help-enable-variable-value-editing help
Stefan Kangas [Fri, 17 Jun 2022 14:03:52 +0000 (16:03 +0200)]
Improve help-enable-variable-value-editing help

* lisp/help-fns.el (help-enable-variable-value-editing): Expand
docstring to better explain what effect it has.
(help-fns-edit-variable): Use command substitution.

2 years agoFix command substitution in emacsbug.el
Stefan Kangas [Fri, 17 Jun 2022 13:54:29 +0000 (15:54 +0200)]
Fix command substitution in emacsbug.el

* lisp/mail/emacsbug.el: Minor doc fix.
(submit-emacs-patch, report-emacs-bug): Fix command substitution.
Prefer keymap-set to define-key.

2 years agoAllow editing all symbols in help-fns--editable-variable
Lars Ingebrigtsen [Fri, 17 Jun 2022 14:30:16 +0000 (16:30 +0200)]
Allow editing all symbols in help-fns--editable-variable

* lisp/help-fns.el (help-fns--editable-variable): Allow editing
all symbols (bug#56038).

2 years agoImprove time parsing documentation
Lars Ingebrigtsen [Fri, 17 Jun 2022 14:03:48 +0000 (16:03 +0200)]
Improve time parsing documentation

* doc/lispref/os.texi (Time Parsing): Clarify which functions
take/return timestamps and which ones take decoded time structures.
* src/timefns.c (Fdecode_time): Clarify TIME argument (bug#46505).

2 years agoMake uce.el obsolete (bug#46472)
Lars Ingebrigtsen [Fri, 17 Jun 2022 13:06:15 +0000 (15:06 +0200)]
Make uce.el obsolete (bug#46472)

2 years agoFix wdired marking of unsuccessfully renamed files
Lars Ingebrigtsen [Fri, 17 Jun 2022 12:47:16 +0000 (14:47 +0200)]
Fix wdired marking of unsuccessfully renamed files

* lisp/wdired.el (wdired-finish-edit): Don't mark non-renamed
files as renamed (bug#46438).

2 years agobuffer-match-p: Resolve backward compat concerns
Dmitry Gutov [Fri, 17 Jun 2022 12:22:29 +0000 (15:22 +0300)]
buffer-match-p: Resolve backward compat concerns

* doc/lispref/buffers.texi (Buffer List): Document 'major-mode'
and 'derived-mode' predicates.  Fix some typos.

* lisp/subr.el (buffer-match-p): Use the structure initially
pioneered by project-kill-buffer-conditions as-is (bug#54296).

* lisp/progmodes/project.el (project-kill-buffer-conditions)
(project--buffer-check): Revert the latest change.
(project--buffer-check): Add support for lambda predicates.

2 years agoFix a tagging problem in tramp.texi
Lars Ingebrigtsen [Fri, 17 Jun 2022 12:20:05 +0000 (14:20 +0200)]
Fix a tagging problem in tramp.texi

* doc/misc/tramp.texi (Frequently Asked Questions): Restore an
@end lisp removed by accident.

2 years agoReduce code duplication when setting user time window
Po Lu [Fri, 17 Jun 2022 12:19:19 +0000 (20:19 +0800)]
Reduce code duplication when setting user time window

* src/xterm.c (x_make_frame_visible): Use
`x_update_frame_user_time_window'.

2 years agoMention face quirks after the final line in the lispref manual
Lars Ingebrigtsen [Fri, 17 Jun 2022 12:17:51 +0000 (14:17 +0200)]
Mention face quirks after the final line in the lispref manual

* doc/lispref/display.texi (Face Attributes): Mention the quirks
about point after the final line (bug#56011).

2 years agoSpeed up shr-string-pixel-width
Lars Ingebrigtsen [Fri, 17 Jun 2022 11:48:53 +0000 (13:48 +0200)]
Speed up shr-string-pixel-width

* lisp/net/eww.el (eww-update-header-line-format): Use
string-pixel-width (since we don't care about shr-use-fonts here).
* lisp/net/shr.el (shr-string-pixel-width): Use
`string-pixel-width', which should be faster.

2 years agoCancel editing bookmark annotations with C-c C-k
Stefan Kangas [Fri, 17 Jun 2022 11:34:36 +0000 (13:34 +0200)]
Cancel editing bookmark annotations with C-c C-k

* lisp/bookmark.el (bookmark-edit-annotation-cancel): New command.
(bookmark-edit-annotation-mode): Document it.
(bookmark-edit-annotation-mode-map): Bind it to 'C-c C-k'.
(bookmark-default-annotation-text): Announce it when editing
annotations.
(bookmark-edit-annotation--maybe-display-list): New macro.
(bookmark-send-edited-annotation): Use above new macro.

2 years agoUse command substitution in bookmark-edit-annotation
Stefan Kangas [Fri, 17 Jun 2022 10:49:57 +0000 (12:49 +0200)]
Use command substitution in bookmark-edit-annotation

* lisp/bookmark.el (bookmark-default-annotation-text): Use command
substitution.
(bookmark-edit-annotation): Enter mode before inserting annotation
to get the correct command substitution.

2 years ago* lisp/edmacro.el (edit-kbd-macro): Use command substitution.
Stefan Kangas [Fri, 17 Jun 2022 10:18:26 +0000 (12:18 +0200)]
* lisp/edmacro.el (edit-kbd-macro): Use command substitution.

2 years agoDelete most libraries obsolete since 24.1 and 24.3
Stefan Kangas [Fri, 17 Jun 2022 09:52:20 +0000 (11:52 +0200)]
Delete most libraries obsolete since 24.1 and 24.3

Emacs 24.3 was released 10 years ago.
* lisp/obsolete/abbrevlist.el:
* lisp/obsolete/assoc.el:
* lisp/obsolete/complete.el:
* lisp/obsolete/cust-print.el:
* lisp/obsolete/erc-hecomplete.el:
* lisp/obsolete/mailpost.el:
* lisp/obsolete/mouse-sel.el:
* lisp/obsolete/old-emacs-lock.el:
* lisp/obsolete/patcomp.el:
* lisp/obsolete/pc-select.el:
* lisp/obsolete/s-region.el: Delete files.  These libraries have been
obsolete since Emacs 24.1 or 24.3.  (Bug#50999)
* etc/NEWS: Announce their deletion.

* lisp/minibuffer.el (minibuffer-confirm-exit-commands):
* lisp/textmodes/rst.el: Remove references to above obsolete
libraries.

2 years agoClarify doc of `x-display-set-last-user-time'
Po Lu [Fri, 17 Jun 2022 11:04:08 +0000 (19:04 +0800)]
Clarify doc of `x-display-set-last-user-time'

* src/xfns.c (Fx_display_last_user_time): Explain in more detail
the meaning of TERMINAL.

2 years agoDelete reference to obsolete library complete.el
Stefan Kangas [Fri, 17 Jun 2022 10:04:48 +0000 (12:04 +0200)]
Delete reference to obsolete library complete.el

* doc/misc/tramp.texi (Frequently Asked Questions): Delete reference
to obsolete library complete.el.

2 years ago* src/fns.c (Fmapconcat): Better empty-string-or-nil detection.
Mattias Engdegård [Fri, 17 Jun 2022 08:32:54 +0000 (10:32 +0200)]
* src/fns.c (Fmapconcat): Better empty-string-or-nil detection.

2 years agoFix misplaced interactive spec
Stefan Kangas [Fri, 17 Jun 2022 08:07:47 +0000 (10:07 +0200)]
Fix misplaced interactive spec

* test/lisp/progmodes/cperl-mode-tests.el (cperl-test-bug-10483):
* test/lisp/cedet/srecode/document-tests.el
(srecode-document-function-comment-extract-test):
* test/lisp/obsolete/inversion-tests.el (inversion-unit-test):
* test/lisp/cedet/cedet-files-tests.el (cedet-files-utest): Remove
misplaced interactive spec.
(cedet-files-utest-list): Minor doc fix; improve formatting.

2 years agoImprove compatibility when receiving drops from early XDND programs
Po Lu [Fri, 17 Jun 2022 07:29:59 +0000 (15:29 +0800)]
Improve compatibility when receiving drops from early XDND programs

* lisp/x-dnd.el (x-dnd-handle-xdnd): Save version in state.
If version is less than 5, don't put action and success in
XdndFinished events.  If less than 2, always use `copy' as
the selected action.

2 years agoFix computation of screen width and height on Haiku
Po Lu [Fri, 17 Jun 2022 06:58:20 +0000 (06:58 +0000)]
Fix computation of screen width and height on Haiku

* src/haiku_support.cc (be_get_screen_dimensions): Use correct
macros to extract width and height.

2 years agoFix instances of not using a usable Motif drag atom
Po Lu [Fri, 17 Jun 2022 04:57:03 +0000 (12:57 +0800)]
Fix instances of not using a usable Motif drag atom

* src/xterm.c (xm_get_drag_atom_1): If another frame owns an
atom, use it anyway.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Fri, 17 Jun 2022 04:30:35 +0000 (06:30 +0200)]
Merge from origin/emacs-28

f419de6eca * lisp/textmodes/artist.el: Minor doc fixes.
5ddd0f1a35 * lisp/net/tramp.el (tramp-methods): Fix quoting in docstr...
b0c5accb99 Update MS Windows FAQ for MinGW64-w64/MSYS2

2 years agoImprove window manager user time reporting mode switching
Po Lu [Fri, 17 Jun 2022 02:57:42 +0000 (10:57 +0800)]
Improve window manager user time reporting mode switching

* src/xterm.c (x_display_set_last_user_time): Stop periodically
checking for user time window support.
(x_update_frame_user_time_window): New function.
(handle_one_xevent): Call it on toplevel ReparentNotify if the
frame has been visible at least once.

* src/xterm.h (struct x_display_info): Remove
`last_user_check_time'.

2 years agoUpdate last event time during DND operations
Po Lu [Fri, 17 Jun 2022 02:24:05 +0000 (10:24 +0800)]
Update last event time during DND operations

* lisp/x-dnd.el (x-dnd-handle-xdnd, x-dnd-handle-motif): Set
last user time to provided timestamp.
* src/xfns.c (Fx_display_last_user_time): New function.
(syms_of_xfns): New defsubr.

* src/xterm.c (x_set_last_user_time_from_lisp): New function.
* src/xterm.h: Update prototypes.

2 years ago* lisp/textmodes/artist.el: Minor doc fixes.
Stefan Kangas [Thu, 16 Jun 2022 07:48:05 +0000 (09:48 +0200)]
* lisp/textmodes/artist.el: Minor doc fixes.

2 years ago* src/fns.c (Fmapconcat): Optimize the case where separator==""
Stefan Monnier [Thu, 16 Jun 2022 18:05:26 +0000 (14:05 -0400)]
* src/fns.c (Fmapconcat): Optimize the case where separator==""

2 years agoFix Tramp test
Michael Albinus [Thu, 16 Jun 2022 17:29:55 +0000 (19:29 +0200)]
Fix Tramp test

* test/lisp/net/tramp-tests.el (tramp-test03-file-name-method-rules):
Remove superfluous checks.

2 years ago; * doc/emacs/package.texi (Package Installation): Fix markup.
Eli Zaretskii [Thu, 16 Jun 2022 17:22:56 +0000 (20:22 +0300)]
; * doc/emacs/package.texi (Package Installation): Fix markup.

2 years agoFix disruption of windows' display by shr.el
Eli Zaretskii [Thu, 16 Jun 2022 16:53:45 +0000 (19:53 +0300)]
Fix disruption of windows' display by shr.el

* src/window.c (struct saved_window): New member 'vscroll'.
(Fset_window_configuration, save_window_save): Save and restore
the window's vscroll value.

* lisp/net/shr.el (shr-insert-document): Restore the original
window's hscroll, in case we are rendering in a window other than
where the document will be eventually displayed.  This avoids
resetting hscroll of windows we use temporarily for shr's
rendering job.  (Bug#56008)

2 years agoAllow number register insertion in Calc (Bug#55943)
Michael Heerdegen [Tue, 14 Jun 2022 11:26:06 +0000 (13:26 +0200)]
Allow number register insertion in Calc (Bug#55943)

* lisp/calc/calc-yank.el (calc-get-register): Convert number values to
strings.

2 years ago* src/fns.c (mapcar1): Test types in rough order of likelyhood.
Mattias Engdegård [Thu, 16 Jun 2022 14:04:48 +0000 (16:04 +0200)]
* src/fns.c (mapcar1): Test types in rough order of likelyhood.

2 years agoUse BASE_EQ instead of EQ where obviously safe
Mattias Engdegård [Thu, 16 Jun 2022 12:11:03 +0000 (14:11 +0200)]
Use BASE_EQ instead of EQ where obviously safe

* src/alloc.c (deadp):
* src/buffer.c (reset_buffer_local_variables, candidate_buffer)
(Fkill_buffer, Fbuffer_swap_text, Fmake_overlay, Fmove_overlay):
* src/callint.c (Fcall_interactively):
* src/coding.c (decode_coding_object, encode_coding_object)
(code_convert_region, Ffind_operation_coding_system):
* src/comp.c (Fcomp_el_to_eln_rel_filename):
* src/conf_post.h (RE_TRANSLATE_P):
* src/data.c (Fkill_local_variable, Fash, expt_integer):
* src/dired.c (file_name_completion):
* src/dispnew.c (set_window_cursor_after_update, update_frame_1)
(Fframe_or_buffer_changed_p):
* src/doc.c (Fdocumentation, Fdocumentation_property)
(default_to_grave_quoting_style):
* src/editfns.c (Fconstrain_to_field, save_excursion_save)
(save_excursion_restore, Fngettext):
* src/eval.c (Fautoload, un_autoload, specbind):
* src/fileio.c (Fmake_temp_file_internal):
* src/fns.c (string_char_to_byte, string_byte_to_char)
(Fnthcdr, Fnreverse):
* src/indent.c (vmotion):
* src/inotify.c (add_watch):
* src/keyboard.c (command_loop_1, read_char)
(read_char_minibuf_menu_prompt):
* src/lread.c (oblookup):
* src/macfont.m (macfont_descriptor_entity, macfont_open):
* src/minibuf.c (Finnermost_minibuffer_p, Ftry_completion)
(Ftest_completion):
* src/nsfns.m (ns_set_icon_name):
* src/pdumper.c (dump_queue_dequeue):
* src/pgtkfns.c (pgtk_set_icon_type, pgtk_set_icon_name):
* src/process.c (Faccept_process_output):
* src/textprop.c (set_text_properties):
* src/w32fns.c (w32_set_icon_type, w32_set_icon_name):
* src/w32select.c (validate_coding_system):
* src/window.c (decode_next_window_args, window_loop)
(save_window_save):
* src/xdisp.c (wset_redisplay):
* src/xfaces.c (Fx_family_fonts, resolve_face_name)
(gui_supports_face_attributes_p):
* src/xfns.c (x_set_icon_type, x_set_icon_name):
* src/xselect.c (clean_local_selection_data):
Use BASE_EQ instead of EQ where it is obvious that neither argument
can be a symbol with properties or at least one argument is a
non-symbol.

2 years agoMake package-recompile delete all .elc files first
Lars Ingebrigtsen [Thu, 16 Jun 2022 12:25:47 +0000 (14:25 +0200)]
Make package-recompile delete all .elc files first

* lisp/emacs-lisp/package.el (package-recompile): Delete all .elc
files under the package directory.

2 years agoAdd new package.el commands for recompilation
Lars Ingebrigtsen [Thu, 16 Jun 2022 11:49:02 +0000 (13:49 +0200)]
Add new package.el commands for recompilation

* doc/emacs/package.texi (Package Installation): Document them.

* lisp/emacs-lisp/package.el (package-recompile):
(package-recompile-all): New commands (bug#27253).

2 years ago* lisp/net/tramp.el (tramp-methods): Fix quoting in docstring.
Michael Albinus [Thu, 16 Jun 2022 08:45:15 +0000 (10:45 +0200)]
* lisp/net/tramp.el (tramp-methods): Fix quoting in docstring.

2 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Thu, 16 Jun 2022 08:09:19 +0000 (11:09 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

2 years agoSpeed up Org to Texinfo generation
Eli Zaretskii [Thu, 16 Jun 2022 08:06:29 +0000 (11:06 +0300)]
Speed up Org to Texinfo generation

* doc/misc/Makefile.in ($(1:.org=.texi)): Use a higher GC
threshold, to speed up .org=.texi conversion.  Patch by Ihor
Radchenko <yantar92@gmail.com>.

2 years agoMake artist-version variable obsolete
Stefan Kangas [Thu, 16 Jun 2022 07:48:18 +0000 (09:48 +0200)]
Make artist-version variable obsolete

* lisp/textmodes/artist.el (artist-version): Make obsolete.  This has
not been updated in nearly two decades; use the Emacs version instead.
(artist-submit-bug-report): Don't use above obsolete variable.

2 years agoPrefer defvar-keymap for artist-mode-map
Stefan Kangas [Thu, 16 Jun 2022 07:47:47 +0000 (09:47 +0200)]
Prefer defvar-keymap for artist-mode-map

* lisp/textmodes/artist.el (artist-mode-map): Prefer
defvar-keymap.