]> git.eshelyaron.com Git - emacs.git/log
emacs.git
2 years agoPrefer defvar-keymap in vc/*.el
Stefan Kangas [Wed, 10 Aug 2022 09:53:27 +0000 (11:53 +0200)]
Prefer defvar-keymap in vc/*.el

* lisp/vc/add-log.el (change-log-mode-map):
* lisp/vc/ediff-mult.el (ediff-dir-diffs-buffer-map):
* lisp/vc/vc-annotate.el (vc-annotate-mode-map):
* lisp/vc/vc-bzr.el (vc-bzr-shelve-map):
* lisp/vc/vc-dir.el (vc-dir-status-mouse-map)
(vc-dir-filename-mouse-map):
* lisp/vc/vc-git.el (vc-git-stash-shared-map, vc-git-stash-map)
(vc-git-stash-button-map, vc-git-log-edit-mode-map):
* lisp/vc/vc-hg.el (vc-hg-log-edit-mode-map)
(vc-hg-extra-menu-map):
* lisp/vc/vc-hooks.el (vc-prefix-map): Prefer defvar-keymap.

2 years agoDelete dead code in checkdoc.el
Stefan Kangas [Wed, 10 Aug 2022 09:27:14 +0000 (11:27 +0200)]
Delete dead code in checkdoc.el

* lisp/emacs-lisp/checkdoc.el: Delete code commented out since
1997.

2 years agoFix namespacing issues in array.el
Stefan Kangas [Wed, 10 Aug 2022 09:21:24 +0000 (11:21 +0200)]
Fix namespacing issues in array.el

* lisp/array.el (array--limit-index, array-current-line)
(array-move-to-column-untabify, array--untabify-backward): Rename
from 'limit-index', 'current-line', 'move-to-column-untabify', and
'untabify-backward'.  Update callers.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Wed, 10 Aug 2022 04:31:02 +0000 (06:31 +0200)]
Merge from origin/emacs-28

14833cd9df Improve wording when documenting other TRAMP syntaxes
628df15da5 ; * doc/misc/viper.texi (Rudimentary Changes): Avoid alias.
85de996bbb * lisp/vc/diff-mode.el: Don't mention XEmacs.

2 years agoImprove MPX interaction with xwidgets and drag-and-drop
Po Lu [Wed, 10 Aug 2022 02:33:43 +0000 (10:33 +0800)]
Improve MPX interaction with xwidgets and drag-and-drop

* src/xterm.c (handle_one_xevent): Handle focus interaction in
more places.

2 years agojs--font-lock-keywords-2: Remove the 'for each' matcher
Dmitry Gutov [Wed, 10 Aug 2022 00:18:29 +0000 (03:18 +0300)]
js--font-lock-keywords-2: Remove the 'for each' matcher

* lisp/progmodes/js.el (js--font-lock-keywords-2):
Remove the 'for each' matcher.  First, because it was slow
(bug#56682), and second: the 'for each' syntax was only present in
Mozilla's dialect of JavaScript (added in version 1.5), and has
been deprecated for a decade now.

2 years agoMake wisent-pad-string obsolete in favor of string-pad
Stefan Kangas [Tue, 9 Aug 2022 22:41:25 +0000 (00:41 +0200)]
Make wisent-pad-string obsolete in favor of string-pad

* lisp/cedet/semantic/wisent/comp.el (wisent-pad-string): Make
obsolete in favor of 'string-pad'.  Update callers.
(subr-x): Require when compiling.

2 years agoMake unused function filesets-ormap obsolete
Stefan Kangas [Tue, 9 Aug 2022 22:27:51 +0000 (00:27 +0200)]
Make unused function filesets-ormap obsolete

* lisp/filesets.el (filesets-ormap): Simplify and make obsolete in
favor of 'seq-drop-while'.

2 years agoMake filesets-filter-list obsolete in favor of seq-filter
Stefan Kangas [Tue, 9 Aug 2022 22:21:31 +0000 (00:21 +0200)]
Make filesets-filter-list obsolete in favor of seq-filter

* lisp/filesets.el (filesets-filter-list): Make obsolete in favor
of 'seq-filter'.  Update callers.

2 years agoAvoid having language environments interpreted as sections
Lars Ingebrigtsen [Tue, 9 Aug 2022 21:17:54 +0000 (23:17 +0200)]
Avoid having language environments interpreted as sections

2 years agoMake rng-collapse-space obsolete
Stefan Kangas [Tue, 9 Aug 2022 20:41:53 +0000 (22:41 +0200)]
Make rng-collapse-space obsolete

* lisp/nxml/rng-util.el (rng-collapse-space): Make obsolete in favor
of 'string-clean-whitespace'.  Update callers.
Suggested by Lars Ingebrigtsen <larsi@gnus.org>.

2 years agoImprove wording when documenting other TRAMP syntaxes
Stefan Kangas [Tue, 9 Aug 2022 20:35:35 +0000 (22:35 +0200)]
Improve wording when documenting other TRAMP syntaxes

* doc/misc/tramp.texi (Change file name syntax): Improve wording.
(Bug#57061)

2 years agoAvoid using aliases for color functions
Stefan Kangas [Tue, 9 Aug 2022 20:28:08 +0000 (22:28 +0200)]
Avoid using aliases for color functions

* lisp/emulation/viper-init.el (viper-has-face-support-p):
* lisp/emulation/viper-util.el (viper-save-cursor-color)
(viper-change-cursor-color):
* lisp/faces.el (read-color):
* lisp/net/dictionary.el (dictionary-color-support):
* lisp/obsolete/gs.el (gs-set-ghostview-colors-window-prop):
* lisp/progmodes/cperl-mode.el (cperl-choose-color):
* lisp/woman.el (woman-fontify): Avoid using aliases for
color-defined-p, display-color-p, and color-values.

2 years agoRemove some compat code from ps-print.el
Stefan Kangas [Tue, 9 Aug 2022 20:26:36 +0000 (22:26 +0200)]
Remove some compat code from ps-print.el

* lisp/ps-print.el (ps-print-color-p): Assume color-values is
fboundp; it always is.

2 years ago; * doc/misc/viper.texi (Rudimentary Changes): Avoid alias.
Stefan Kangas [Tue, 9 Aug 2022 20:21:01 +0000 (22:21 +0200)]
; * doc/misc/viper.texi (Rudimentary Changes): Avoid alias.

2 years ago* lisp/vc/pcvs-util.el (cvs-partition): Simplify.
Stefan Kangas [Tue, 9 Aug 2022 20:09:20 +0000 (22:09 +0200)]
* lisp/vc/pcvs-util.el (cvs-partition): Simplify.

2 years ago* lisp/nxml/rng-util.el (rng-collapse-space): Simplify.
Stefan Kangas [Tue, 9 Aug 2022 18:29:27 +0000 (20:29 +0200)]
* lisp/nxml/rng-util.el (rng-collapse-space): Simplify.

2 years ago; * lisp/mouse.el: Delete stale comment.
Stefan Kangas [Tue, 9 Aug 2022 18:10:52 +0000 (20:10 +0200)]
; * lisp/mouse.el: Delete stale comment.

2 years agoMake rng-blank-p obsolete in favor of string-blank-p
Stefan Kangas [Tue, 9 Aug 2022 17:54:49 +0000 (19:54 +0200)]
Make rng-blank-p obsolete in favor of string-blank-p

* lisp/nxml/rng-util.el (rng-blank-p): Make obsolete in favor of
string-blank-p.  Update callers.

2 years agoAutoload string-blank-p
Stefan Kangas [Tue, 9 Aug 2022 17:49:40 +0000 (19:49 +0200)]
Autoload string-blank-p

* lisp/eshell/em-hist.el (subr-x):
* lisp/net/eudc.el (subr-x): Don't require.
* lisp/emacs-lisp/subr-x.el (string-blank-p): Autoload.

2 years ago* lisp/ibuf-ext.el (ibuffer-remove-alist): Simplify.
Stefan Kangas [Tue, 9 Aug 2022 17:42:07 +0000 (19:42 +0200)]
* lisp/ibuf-ext.el (ibuffer-remove-alist): Simplify.

2 years agoUse new convenience functions in replace-string
Lars Ingebrigtsen [Tue, 9 Aug 2022 19:12:54 +0000 (21:12 +0200)]
Use new convenience functions in replace-string

* lisp/replace.el (replace-string): Use new convenience functions.

2 years agoAdd use-region-beginning and use-region-end
Lars Ingebrigtsen [Tue, 9 Aug 2022 19:11:29 +0000 (21:11 +0200)]
Add use-region-beginning and use-region-end

* lisp/simple.el (use-region-beginning, use-region-end): New functions.
(use-region-p): Mention them in the doc strings (bug#45607).

2 years ago* lisp/replace.el (replace-highlight): Optimize for large buffers (bug#56815)
Juri Linkov [Tue, 9 Aug 2022 18:54:32 +0000 (21:54 +0300)]
* lisp/replace.el (replace-highlight): Optimize for large buffers (bug#56815)

Let-bind isearch-lazy-count and lazy-highlight-buffer to nil to avoid
revisiting all matches in the whole buffer after every replacement.

2 years agoAdd new user option electric-quote-replace-consecutive
Andrea Greselin [Tue, 9 Aug 2022 18:43:08 +0000 (20:43 +0200)]
Add new user option electric-quote-replace-consecutive

* lisp/electric.el (electric-quote-replace-consecutive): New user
option (bug#57057).
(electric-quote-post-self-insert-function): Use it.

2 years agoMake outline buttons work in NEWS
Stephen Berman [Tue, 9 Aug 2022 18:21:09 +0000 (20:21 +0200)]
Make outline buttons work in NEWS

* lisp/outline.el (outline-minor-mode-highlight-buffer): Fix
button insertion.
(outline-minor-mode): Ditto.
(outline--insert-open-button): Don't mark buffer as modified when
inserting buttons.
(outline--insert-close-button): Ditto.

* lisp/textmodes/emacs-news-mode.el (emacs-news--mode-common):
Adjust outline regexp.

2 years ago; * src/keyboard.c (timer_check_2): Restore run-time conditions.
Eli Zaretskii [Tue, 9 Aug 2022 18:26:21 +0000 (21:26 +0300)]
; * src/keyboard.c (timer_check_2): Restore run-time conditions.

2 years agoRevert "Make compat alias check-ispell-version obsolete"
Eli Zaretskii [Tue, 9 Aug 2022 17:51:42 +0000 (20:51 +0300)]
Revert "Make compat alias check-ispell-version obsolete"

This reverts commit 24795e45e5fab6e2f699582662f9be7c5c6e25f8.

That alias is in no way obsolete, and was added for a different
reason.

2 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Tue, 9 Aug 2022 17:42:39 +0000 (20:42 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

2 years agoFurther lisp-current-defun-name tweaks
Lars Ingebrigtsen [Tue, 9 Aug 2022 17:19:29 +0000 (19:19 +0200)]
Further lisp-current-defun-name tweaks

* lisp/emacs-lisp/lisp-mode.el (lisp-current-defun-name): Tweak so
that cl-defmethod and friends work again.

2 years agoAdd a faster seq-uniq for lists
Lars Ingebrigtsen [Tue, 9 Aug 2022 17:18:55 +0000 (19:18 +0200)]
Add a faster seq-uniq for lists

* lisp/emacs-lisp/seq.el (seq-uniq): Add a faster method for lists
(bug#57079).

2 years agoFix python escape code fontification for multi-line literals
Laurence Warne [Tue, 9 Aug 2022 07:33:18 +0000 (08:33 +0100)]
Fix python escape code fontification for multi-line literals

* lisp/progmodes/python.el (python--string-bytes-literal-matcher): Go
backward one char after a match so that consecutive escape codes are
highlighted
(python--not-raw-string-literal-start-regexp): Make regular expression
more comprehensive, so multi-line bytes literals are not caught
(python-rx): Accept one to three octal digits in octal escape codes
instead of always three

2 years agoMake ibuffer-aif obsolete in favor of if-let
Stefan Kangas [Tue, 9 Aug 2022 16:15:56 +0000 (18:15 +0200)]
Make ibuffer-aif obsolete in favor of if-let

* lisp/ibuf-macs.el (ibuffer-aif): Make obsolete in favor of 'if-let'.
* lisp/ibuffer.el (ibuffer-mouse-toggle-mark)
(ibuffer-mark-interactive, ibuffer-compile-format, process):
Prefer 'if-let' to above obsolete macro.
(ibuffer-toggle-marks, ibuffer-map-lines): Prefer 'when-let'
to above obsolete macro.

2 years agoFurther Tramp fixes for Android 12
Michael Albinus [Tue, 9 Aug 2022 16:12:27 +0000 (18:12 +0200)]
Further Tramp fixes for Android 12

* lisp/net/tramp-adb.el (tramp-adb-handle-file-attributes)
(tramp-adb-handle-directory-files-and-attributes)
(tramp-adb-handle-file-name-all-completions): Pipe "ls" output
through "cat", in order to avoid quoting special characters.
(tramp-adb-sh-fix-ls-output): Remove fix for file names with spaces.

* test/lisp/net/tramp-tests.el (tramp-test22-file-times): Adapt test.

2 years agoImprove message regarding missing LEIM
Stefan Kangas [Tue, 9 Aug 2022 15:55:21 +0000 (17:55 +0200)]
Improve message regarding missing LEIM

* lisp/international/ja-dic-utl.el (skkdic-lookup-key):
* lisp/international/mule-diag.el (list-input-methods-1):
* lisp/international/quail.el (quail-use-package): Explain that LEIM
is installed together with Emacs.

2 years agoImprove readability of list-input-methods
Stefan Kangas [Tue, 9 Aug 2022 15:47:50 +0000 (17:47 +0200)]
Improve readability of list-input-methods

* lisp/international/mule-diag.el: Make screen more readable by
improving the formatting.

2 years agoReplace utility functions with seq-uniq
Stefan Kangas [Tue, 9 Aug 2022 12:29:12 +0000 (14:29 +0200)]
Replace utility functions with seq-uniq

* lisp/gnus/gnus-util.el (gnus-delete-duplicates):
* lisp/ibuf-ext.el (ibuffer-remove-duplicates): Redefine as
obsolete function alias for 'seq-uniq'.  Update callers.

2 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Tue, 9 Aug 2022 15:52:25 +0000 (18:52 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

2 years agoMake the loaddefs.el file slightly shorter
Lars Ingebrigtsen [Tue, 9 Aug 2022 14:36:41 +0000 (16:36 +0200)]
Make the loaddefs.el file slightly shorter

* lisp/emacs-lisp/loaddefs-gen.el
(loaddefs-generate--shorten-autoload): New function.
(loaddefs-generate--make-autoload): Use it to drop optional nil
values from the `autoloads' forms.  This makes the loaddefs.el
file about 12K shorter.

2 years agoMake ibuffer-awhen obsolete in favor of when-let
Stefan Kangas [Tue, 9 Aug 2022 13:46:54 +0000 (15:46 +0200)]
Make ibuffer-awhen obsolete in favor of when-let

* lisp/ibuf-macs.el (ibuffer-awhen): Make obsolete in favor of
'when-let'.  Update callers.

2 years agoMake ibuffer-split-list obsolete in favor of seq-group-by
Stefan Kangas [Tue, 9 Aug 2022 13:37:53 +0000 (15:37 +0200)]
Make ibuffer-split-list obsolete in favor of seq-group-by

* lisp/ibuf-ext.el (ibuffer-split-list): Make obsolete in favor of
'seq-group-by'.
(ibuffer-generate-filter-groups): Don't use above obsolete
function.

2 years agoMake compat alias check-ispell-version obsolete
Stefan Kangas [Tue, 9 Aug 2022 13:36:13 +0000 (15:36 +0200)]
Make compat alias check-ispell-version obsolete

* lisp/textmodes/ispell.el (check-ispell-version): Make compat
alias obsolete.

2 years ago* lisp/ibuffer.el (ibuffer): Use substitute-command-keys for help.
Stefan Kangas [Tue, 9 Aug 2022 13:35:15 +0000 (15:35 +0200)]
* lisp/ibuffer.el (ibuffer): Use substitute-command-keys for help.

2 years ago; * etc/NEWS: Mention the new 'js-json-mode'.
Eli Zaretskii [Tue, 9 Aug 2022 12:11:12 +0000 (15:11 +0300)]
; * etc/NEWS: Mention the new 'js-json-mode'.

2 years agoMake compat alias image-refresh obsolete
Stefan Kangas [Tue, 9 Aug 2022 12:04:12 +0000 (14:04 +0200)]
Make compat alias image-refresh obsolete

* lisp/image.el (image-refresh): Make compat alias obsolete.
Update callers.

2 years ago; * src/xterm.c (xi_populate_device_from_info): Minor ifdef cleanup.
Po Lu [Tue, 9 Aug 2022 11:55:47 +0000 (19:55 +0800)]
; * src/xterm.c (xi_populate_device_from_info): Minor ifdef cleanup.

2 years agoMake compat aliases obsolete in fortran.el
Stefan Kangas [Tue, 9 Aug 2022 11:20:07 +0000 (13:20 +0200)]
Make compat aliases obsolete in fortran.el

* lisp/progmodes/fortran.el (fortran-indent-new-line)
(fortran-auto-fill-mode): Make compat aliases obsolete; update
callers.

2 years ago* lisp/isearch.el (isearch-mode-help): Make compat alias obsolete.
Stefan Kangas [Tue, 9 Aug 2022 10:16:15 +0000 (12:16 +0200)]
* lisp/isearch.el (isearch-mode-help): Make compat alias obsolete.

2 years ago; * lisp/hex-util.el: Mention ash instead of lsh.
Stefan Kangas [Tue, 9 Aug 2022 01:24:55 +0000 (03:24 +0200)]
; * lisp/hex-util.el: Mention ash instead of lsh.

2 years agoCC Mode: Allow the insertion of long strings of letters in reasonable time
Alan Mackenzie [Tue, 9 Aug 2022 10:46:21 +0000 (10:46 +0000)]
CC Mode: Allow the insertion of long strings of letters in reasonable time

This fix allows M-: (insert (make-string 1000000 ?y)) to work fast when
inserted between C++ raw string delimiters after (setq long-line-threshold
nil).

* lisp/progmodes/cc-langs.el (c-symbol-key): Replace a "*" by "\\{,1000\\}" in
a regexp.

2 years ago; * src/xterm.c (xi_disable_devices): Fix portability typo.
Po Lu [Tue, 9 Aug 2022 08:30:45 +0000 (16:30 +0800)]
; * src/xterm.c (xi_disable_devices): Fix portability typo.

2 years agoFactor out some duplicate code from handle_one_xevent
Po Lu [Tue, 9 Aug 2022 07:43:30 +0000 (15:43 +0800)]
Factor out some duplicate code from handle_one_xevent

* src/xterm.c (xi_disable_devices): New function.
(handle_one_xevent): Use that to disable an array of device IDs
instead of copypasting the same block of code over and over
again.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Tue, 9 Aug 2022 04:30:25 +0000 (06:30 +0200)]
Merge from origin/emacs-28

d91ffdbec2 Don't mention XEmacs toolbar in ediff manual

2 years agoFix handling of XI_DeviceChanged events
Po Lu [Tue, 9 Aug 2022 03:06:06 +0000 (11:06 +0800)]
Fix handling of XI_DeviceChanged events

* src/xterm.c (xi_get_scroll_valuator): New function.
(xi_handle_device_changed): New function.
(handle_one_xevent): Factor out most of the device changed code
to that function, and make it specifically query for the device
information.  (bug#57020)

2 years agoAnother lisp-current-defun-name tweak
Michael Heerdegen [Tue, 9 Aug 2022 01:55:14 +0000 (03:55 +0200)]
Another lisp-current-defun-name tweak

* lisp/emacs-lisp/lisp-mode.el (lisp-current-defun-name): Avoid error
when edebug spec is the symbol t.

2 years agoAdd separate tiny major mode for JSON
Dmitry Gutov [Tue, 9 Aug 2022 01:00:08 +0000 (04:00 +0300)]
Add separate tiny major mode for JSON

* lisp/progmodes/js.el (js-json-mode): New major mode.

* lisp/files.el (auto-mode-alist): Use it for JSON (bug#56682).

* lisp/progmodes/js.el (js--class-decl-matcher):
Skip work if there are no frameworks enabled.

2 years ago; Delete stale comment from prolog.el
Stefan Kangas [Mon, 8 Aug 2022 22:03:49 +0000 (00:03 +0200)]
; Delete stale comment from prolog.el

* lisp/progmodes/prolog.el: Delete stale comment; XEmacs support has
been removed.

2 years ago* lisp/vc/diff-mode.el: Don't mention XEmacs.
Stefan Kangas [Mon, 8 Aug 2022 19:44:01 +0000 (21:44 +0200)]
* lisp/vc/diff-mode.el: Don't mention XEmacs.

2 years ago; Delete stale and incorrect comment in ezimage.el
Stefan Kangas [Mon, 8 Aug 2022 19:31:50 +0000 (21:31 +0200)]
; Delete stale and incorrect comment in ezimage.el

The below comment seems to have been incorrect since 2002 (see commit
5f1fbf6b35).

* lisp/ezimage.el (ezimage-insert-image-button-maybe): Delete stale
and incorrect comment.

2 years agoDon't mention XEmacs toolbar in ediff manual
Stefan Kangas [Mon, 8 Aug 2022 19:28:53 +0000 (21:28 +0200)]
Don't mention XEmacs toolbar in ediff manual

* doc/misc/ediff.texi (Other Session Commands): Don't mention XEmacs
specific toolbar support for now.  This can be changed back once the
toolbar is ported to Emacs.

2 years ago; * lisp/gnus/gnus.el (gnus-user-agent): Fix typo.
Stefan Kangas [Mon, 8 Aug 2022 19:27:37 +0000 (21:27 +0200)]
; * lisp/gnus/gnus.el (gnus-user-agent): Fix typo.

2 years ago; * lisp/gnus/gnus-art.el: Delete stale comments.
Stefan Kangas [Mon, 8 Aug 2022 17:33:28 +0000 (19:33 +0200)]
; * lisp/gnus/gnus-art.el: Delete stale comments.

2 years ago* lisp/progmodes/antlr-mode.el: Remove remnants of XEmacs support.
Stefan Kangas [Mon, 8 Aug 2022 16:08:20 +0000 (18:08 +0200)]
* lisp/progmodes/antlr-mode.el: Remove remnants of XEmacs support.

2 years agoRemove XEmacs specific symbol from gnus-user-agent
Stefan Kangas [Mon, 8 Aug 2022 15:56:36 +0000 (17:56 +0200)]
Remove XEmacs specific symbol from gnus-user-agent

* lisp/gnus/gnus.el (gnus-user-agent): Remove XEmacs specific
'codename' symbol.

2 years ago; Delete stale comment in mh-utils.el
Stefan Kangas [Mon, 8 Aug 2022 15:48:10 +0000 (17:48 +0200)]
; Delete stale comment in mh-utils.el

* lisp/mh-e/mh-utils.el (mh-normalize-folder-name): Remove stale and
incorrect comment.

2 years agoRemove some XEmacs compat code from mh-alias.el
Stefan Kangas [Mon, 8 Aug 2022 15:32:33 +0000 (17:32 +0200)]
Remove some XEmacs compat code from mh-alias.el

* lisp/mh-e/mh-alias.el (crm): Don't require for autoloaded
function.
(multi-prompt): Don't require XEmacs specific library.

2 years ago; Unconditionally require built-in libraries
Stefan Kangas [Mon, 8 Aug 2022 15:11:52 +0000 (17:11 +0200)]
; Unconditionally require built-in libraries

2 years agoClean up fix_command code slightly
Lars Ingebrigtsen [Mon, 8 Aug 2022 15:46:48 +0000 (17:46 +0200)]
Clean up fix_command code slightly

* src/callint.c (fix_command): Remove superfluous check.

2 years agoselect-active-regions doc string improvement
Lars Ingebrigtsen [Mon, 8 Aug 2022 15:46:21 +0000 (17:46 +0200)]
select-active-regions doc string improvement

* src/keyboard.c (syms_of_keyboard): Mention
post-select-region-hook.

2 years agoDo some NEWS tagging
Lars Ingebrigtsen [Mon, 8 Aug 2022 15:45:41 +0000 (17:45 +0200)]
Do some NEWS tagging

2 years ago* lisp/obsolete/makesum.el: Add "Obsolete-since" header.
Stefan Kangas [Sat, 6 Aug 2022 18:13:11 +0000 (20:13 +0200)]
* lisp/obsolete/makesum.el: Add "Obsolete-since" header.

2 years agoMake makesum.el obsolete
Stefan Kangas [Sat, 6 Aug 2022 18:11:57 +0000 (20:11 +0200)]
Make makesum.el obsolete

* lisp/makesum.el: Move from here...
* lisp/obsolete/makesum.el: ...to here.  (Bug#56979)

* test/lisp/makesum-tests.el: Move from here...
* test/lisp/obsolete/makesum-tests.el: ...to here.

2 years ago* src/print.c (struct print_buffer): Revert gratuitous format change.
Mattias Engdegård [Mon, 8 Aug 2022 14:26:29 +0000 (16:26 +0200)]
* src/print.c (struct print_buffer): Revert gratuitous format change.

2 years agoAdd NEWS note about interactive-args
Lars Ingebrigtsen [Mon, 8 Aug 2022 14:07:23 +0000 (16:07 +0200)]
Add NEWS note about interactive-args

2 years agoUpdate TODO about fix_command
Lars Ingebrigtsen [Mon, 8 Aug 2022 14:02:24 +0000 (16:02 +0200)]
Update TODO about fix_command

* etc/TODO: Remove bit about fix_command, which has now been fixed.

2 years agoImprove collecting of citation keys
Arash Esbati [Mon, 8 Aug 2022 13:58:35 +0000 (15:58 +0200)]
Improve collecting of citation keys

* lisp/textmodes/reftex-cite.el (reftex-all-used-citation-keys):
Improve regexp for matching various cite commands incl. optional
arguments.
Recognize comments more robustly and don't interpret the control
symbol \% as a comment starter.  (bug#56655)

* test/lisp/textmodes/reftex-tests.el
(reftex-all-used-citation-keys): New test.

2 years agoClean up fix_command slightly
Lars Ingebrigtsen [Mon, 8 Aug 2022 14:01:24 +0000 (16:01 +0200)]
Clean up fix_command slightly

* src/callint.c (fix_command): Remove now-unused parameter.
(Fcall_interactively): Ditto.

2 years agoFurther lisp-current-defun-name tweaks
Lars Ingebrigtsen [Mon, 8 Aug 2022 13:52:53 +0000 (15:52 +0200)]
Further lisp-current-defun-name tweaks

* lisp/emacs-lisp/lisp-mode.el (lisp-current-defun-name): Further
tweaks to finding the symbol being defined (defalias).

2 years agoAllow specifying how args are to be stored in `command-history'
Lars Ingebrigtsen [Mon, 8 Aug 2022 13:52:19 +0000 (15:52 +0200)]
Allow specifying how args are to be stored in `command-history'

* doc/lispref/functions.texi (Declare Form): Document
`interactive-args'
* lisp/replace.el (replace-string): Store the correct interactive
arguments (bug#45607).

* lisp/emacs-lisp/byte-run.el (byte-run--set-interactive-args):
New function.
(defun-declarations-alist): Use it.

* src/callint.c (fix_command): Remove the old hack (which now
longer works since interactive specs are byte-compiled) and
instead rely on `interactive-args'.

2 years ago; Fix coding style in recently installed changes to print.c
Po Lu [Mon, 8 Aug 2022 12:56:41 +0000 (20:56 +0800)]
; Fix coding style in recently installed changes to print.c

* src/print.c (struct print_buffer, struct print_context): Fix
brace position and make comments more like what is in
lisp.h/xterm.c/etc.

2 years agoMake which-func-mode output less junk
Lars Ingebrigtsen [Mon, 8 Aug 2022 12:31:54 +0000 (14:31 +0200)]
Make which-func-mode output less junk

* lisp/emacs-lisp/lisp-mode.el (lisp-current-defun-name): Use
edebug specs to find the name (if they exist), and default to
returning the top-level symbol if there isn't a define-like form
(bug#49592).

2 years ago; Fix typos
Stefan Kangas [Mon, 8 Aug 2022 12:08:47 +0000 (14:08 +0200)]
; Fix typos

2 years ago* test/lisp/emacs-lisp/nadvice-tests.el: Re-add no-byte-compile.
Stefan Kangas [Mon, 8 Aug 2022 11:37:43 +0000 (13:37 +0200)]
* test/lisp/emacs-lisp/nadvice-tests.el: Re-add no-byte-compile.

2 years agoRemove redundant local variables in tests
Stefan Kangas [Mon, 8 Aug 2022 11:18:36 +0000 (13:18 +0200)]
Remove redundant local variables in tests

* test/lisp/calc/calc-tests.el:
* test/lisp/progmodes/python-tests.el: Remove redundant local
variables.
* test/src/coding-tests.el: Pacify byte-compiler without using local
variable.

2 years agoRevert "Don't autoload obsolete library tpu-extras.el"
Stefan Kangas [Mon, 8 Aug 2022 10:03:30 +0000 (12:03 +0200)]
Revert "Don't autoload obsolete library tpu-extras.el"

This reverts commit 77bf50cb330807039cc84138fb84870bd6d532e2.

2 years agoGroup print buffer state in a struct
Mattias Engdegård [Mon, 8 Aug 2022 11:09:39 +0000 (13:09 +0200)]
Group print buffer state in a struct

* src/print.c (print_buffer, print_buffer_size, print_buffer_pos)
(print_buffer_pos_byte): Replace with...
(struct print_buffer, print_buffer): ...this.
* src/print.c: (print_free_buffer, print_unwind)
(print_prepare, print_finish, printchar, strout): Adapt users.

2 years agoTurn large macros in print.c to functions
Mattias Engdegård [Mon, 8 Aug 2022 10:39:12 +0000 (12:39 +0200)]
Turn large macros in print.c to functions

This is easier to read and maintain, and makes the state explicit.
It is a pure refactoring; the compiled code should be equivalent.

* src/print.c (PRINTPREPARE, PRINTFINISH): Replace with...
(struct print_context, print_prepare, print_finish): ...these new
functions and explicit state in a struct.
(Fwrite_char, write_string, Fterpri, Fprin1, Fprin1_to_string)
(Fprinc, Fprint): Adapt callers.

2 years agoRemove no-byte-compile cookie from some libraries
Stefan Kangas [Mon, 8 Aug 2022 09:50:33 +0000 (11:50 +0200)]
Remove no-byte-compile cookie from some libraries

This gives us back byte-compiler warnings for these files.
* lisp/mh-e/mh-acros.el:
* test/lisp/comint-tests.el:
* test/lisp/emacs-lisp/nadvice-tests.el:
* test/lisp/emacs-lisp/syntax-tests.el:
* test/lisp/xml-tests.el:
* test/src/font-tests.el: Remove no-byte-compile cookie.
* test/src/font-tests.el (font-parse-explain): Fix warning.

2 years agoDon't autoload obsolete library tpu-extras.el
Stefan Kangas [Mon, 8 Aug 2022 09:13:58 +0000 (11:13 +0200)]
Don't autoload obsolete library tpu-extras.el

* lisp/obsolete/tpu-edt.el: Remove autoloads of obsolete library
tpu-extras.el.
* lisp/obsolete/tpu-extras.el: Don't set generated-autoload-file
to tpu-edt.el.

2 years agoClean up some local variable sections
Stefan Kangas [Sun, 7 Aug 2022 17:23:36 +0000 (19:23 +0200)]
Clean up some local variable sections

* lisp/filesets.el:
* lisp/mh-e/mh-*.el:
* lisp/progmodes/python.el (python): Don't set options that are
already set in .dir-locals.el.
* lisp/textmodes/ispell.el: Remove redundant local variables.
* lisp/gnus/nnmaildir.el: Remove local variables that conflicts with
Emacs defaults.

2 years agoFix warnings outside XI2 builds
Po Lu [Mon, 8 Aug 2022 03:59:08 +0000 (11:59 +0800)]
Fix warnings outside XI2 builds

* src/xterm.c (x_query_pointer): Juggle some definitions around.

2 years agoImprove handling of pointer focus under the input extension
Po Lu [Mon, 8 Aug 2022 03:44:53 +0000 (11:44 +0800)]
Improve handling of pointer focus under the input extension

* src/xfns.c (x_relative_mouse_position)
(Fx_mouse_absolute_pixel_position, compute_tip_xy): Use
x_query_pointer instead of XQueryPointer.
* src/xterm.c (xi_populate_device_from_info): Set new attachment
field.
(xi_handle_focus_change): Set client pointer.
(xi_focus_handle_for_device, xi_handle_interaction): Use
attached keyboard device to handle focus.
(x_query_pointer): New function.
(XTmouse_position, x_scroll_bar_report_motion)
(x_horizontal_scroll_bar_report_motion, handle_one_xevent): Use
x_query_pointer instead of XQueryPointer.
(x_term_init): Initialize client pointer device.
* src/xterm.h (struct xi_device_t): New field `attachment'.
(struct x_display_info): New field `client_pointer_device'.

2 years agoMinor cleanups in ediff-*.el
Stefan Kangas [Sun, 7 Aug 2022 17:21:09 +0000 (19:21 +0200)]
Minor cleanups in ediff-*.el

* lisp/vc/ediff-init.el (ediff-window-visible-p):
(ediff-nonempty-string-p): Simplify.
(stipple-pixmap): Don't try XEmacs specific(?) variable.
(ediff-frame-unsplittable-p): Make obsolete.  Update callers.
(ediff-has-gutter-support-p): Redefine as obsolete function alias for
'ignore'.
(ediff-mouse-event-p): Redefine as obsolete function alias for
'mouse-event-p'.  Update callers.
* lisp/vc/ediff-util.el (ediff-submit-report): Simplify.
(ediff-filename-magic-p): Make obsolete.  Update callers.
(ediff-activate-mark): Make obsolete.  Update callers.
* lisp/vc/ediff-help.el:
* lisp/vc/ediff-hook.el:
* lisp/vc/ediff-util.el:
* lisp/vc/ediff-wind.el: Remove superfluous defvars.

2 years agoMake ediff-window-display-p obsolete
Stefan Kangas [Sun, 7 Aug 2022 15:50:33 +0000 (17:50 +0200)]
Make ediff-window-display-p obsolete

* lisp/vc/ediff-init.el (ediff-window-display-p): Redefine as
obsolete function alias for 'display-graphic-p'.

2 years ago; * lisp/emacs-lisp/bytecomp.el: indentation fix
Mattias Engdegård [Sun, 7 Aug 2022 15:18:21 +0000 (17:18 +0200)]
; * lisp/emacs-lisp/bytecomp.el: indentation fix

2 years agoPacify a gcc warning in xi_handle_focus_change
Lars Ingebrigtsen [Sun, 7 Aug 2022 15:22:46 +0000 (17:22 +0200)]
Pacify a gcc warning in xi_handle_focus_change

* src/xterm.c (xi_handle_focus_change): Pacify a wrong warning on
gcc (Debian 10.2.1-6).

xterm.c: In function ‘xi_handle_focus_change’:
xterm.c:12564:25: warning: ‘source’ may be used uninitialized in
this function [-Wmaybe-uninitialized]
12564 |       ie.device = source->name;
      |                   ~~~~~~^~~~~~

2 years agoImprove Tramp error message
Michael Albinus [Sun, 7 Aug 2022 14:35:50 +0000 (16:35 +0200)]
Improve Tramp error message

* lisp/net/tramp-sh.el (tramp-sh-handle-file-local-copy):
Simplify for empty files.  Better error message.  (Bug#56879)

2 years agoFix blank/comment line handling in python-nav-beginning-of-block
kobarity [Sun, 7 Aug 2022 14:10:26 +0000 (16:10 +0200)]
Fix blank/comment line handling in python-nav-beginning-of-block

* lisp/progmodes/python.el (python-nav-beginning-of-block): Fix
handling of blank/comment line right after block start (bug#57038).

2 years agoFix 'vertical-motion' in bidi-reordered text
Eli Zaretskii [Sun, 7 Aug 2022 14:03:52 +0000 (17:03 +0300)]
Fix 'vertical-motion' in bidi-reordered text

* src/xdisp.c (move_it_vertically_backward): Fix the case of long
bidi-reordered lines when starting from its last (top-most) screen
line.
(move_it_by_lines): Fix logic of detection when going by lines
overshoots.

2 years agoMake ediff-file-remote-p obsolete in favor of file-remote-p
Stefan Kangas [Sun, 7 Aug 2022 12:28:38 +0000 (14:28 +0200)]
Make ediff-file-remote-p obsolete in favor of file-remote-p

* lisp/vc/ediff-init.el (ediff-file-remote-p): Make into obsolete
function alias for file-remote-p.  Update callers.