1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-16 17:19:41 +00:00
Commit Graph

159023 Commits

Author SHA1 Message Date
Eli Zaretskii
2504d19dad Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2022-08-09 20:42:39 +03:00
Lars Ingebrigtsen
b2bf91003d 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.
2022-08-09 19:21:36 +02:00
Lars Ingebrigtsen
5269842833 Add a faster seq-uniq for lists
* lisp/emacs-lisp/seq.el (seq-uniq): Add a faster method for lists
(bug#57079).
2022-08-09 19:21:36 +02:00
Laurence Warne
b92e888758 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
2022-08-09 19:21:36 +02:00
Stefan Kangas
3ef18c7a21 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.
2022-08-09 18:15:56 +02:00
Michael Albinus
b0653b27e2 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.
2022-08-09 18:12:27 +02:00
Stefan Kangas
e5bf2b942f 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.
2022-08-09 17:58:15 +02:00
Stefan Kangas
f9ee2db493 Improve readability of list-input-methods
* lisp/international/mule-diag.el: Make screen more readable by
improving the formatting.
2022-08-09 17:58:15 +02:00
Stefan Kangas
171b9314bf 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.
2022-08-09 17:58:15 +02:00
Eli Zaretskii
8813399cfa Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2022-08-09 18:52:25 +03:00
Lars Ingebrigtsen
ee201bc77b 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.
2022-08-09 16:36:41 +02:00
Stefan Kangas
accb1d1132 Make ibuffer-awhen obsolete in favor of when-let
* lisp/ibuf-macs.el (ibuffer-awhen): Make obsolete in favor of
'when-let'.  Update callers.
2022-08-09 15:46:54 +02:00
Stefan Kangas
d3f6edf5aa 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.
2022-08-09 15:37:53 +02:00
Stefan Kangas
24795e45e5 Make compat alias check-ispell-version obsolete
* lisp/textmodes/ispell.el (check-ispell-version): Make compat
alias obsolete.
2022-08-09 15:36:13 +02:00
Stefan Kangas
e7a582cbe4 * lisp/ibuffer.el (ibuffer): Use substitute-command-keys for help. 2022-08-09 15:35:15 +02:00
Eli Zaretskii
7b84954a7c ; * etc/NEWS: Mention the new 'js-json-mode'. 2022-08-09 15:11:12 +03:00
Stefan Kangas
1137219c97 Make compat alias image-refresh obsolete
* lisp/image.el (image-refresh): Make compat alias obsolete.
Update callers.
2022-08-09 14:04:39 +02:00
Po Lu
2ebfd7188f ; * src/xterm.c (xi_populate_device_from_info): Minor ifdef cleanup. 2022-08-09 19:56:09 +08:00
Stefan Kangas
0a044f9405 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.
2022-08-09 13:20:07 +02:00
Stefan Kangas
4abeb61fc9 * lisp/isearch.el (isearch-mode-help): Make compat alias obsolete. 2022-08-09 13:20:00 +02:00
Stefan Kangas
5c3c18816e ; * lisp/hex-util.el: Mention ash instead of lsh. 2022-08-09 13:20:00 +02:00
Alan Mackenzie
7497aeff64 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.
2022-08-09 10:46:21 +00:00
Po Lu
97a54d1327 ; * src/xterm.c (xi_disable_devices): Fix portability typo. 2022-08-09 16:30:45 +08:00
Po Lu
1dc3ecc6c3 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.
2022-08-09 15:44:03 +08:00
Stefan Kangas
2053c6aca1 Merge from origin/emacs-28
d91ffdbec2 Don't mention XEmacs toolbar in ediff manual
2022-08-09 06:30:25 +02:00
Po Lu
f39d25d5fe 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)
2022-08-09 11:08:15 +08:00
Michael Heerdegen
fe4fd160a2 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.
2022-08-09 04:01:29 +02:00
Dmitry Gutov
d2080e4183 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.
2022-08-09 04:44:01 +03:00
Stefan Kangas
d6ea4894d3 ; Delete stale comment from prolog.el
* lisp/progmodes/prolog.el: Delete stale comment; XEmacs support has
been removed.
2022-08-09 00:03:49 +02:00
Stefan Kangas
85de996bbb * lisp/vc/diff-mode.el: Don't mention XEmacs. 2022-08-08 21:44:01 +02:00
Stefan Kangas
f1f1912658 ; 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.
2022-08-08 21:33:24 +02:00
Stefan Kangas
d91ffdbec2 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.
2022-08-08 21:28:53 +02:00
Stefan Kangas
8028f22b18 ; * lisp/gnus/gnus.el (gnus-user-agent): Fix typo. 2022-08-08 21:27:37 +02:00
Stefan Kangas
a908d536c4 ; * lisp/gnus/gnus-art.el: Delete stale comments. 2022-08-08 19:33:28 +02:00
Stefan Kangas
870d59e72e * lisp/progmodes/antlr-mode.el: Remove remnants of XEmacs support. 2022-08-08 18:18:51 +02:00
Stefan Kangas
0b4470d1b7 Remove XEmacs specific symbol from gnus-user-agent
* lisp/gnus/gnus.el (gnus-user-agent): Remove XEmacs specific
'codename' symbol.
2022-08-08 18:18:51 +02:00
Stefan Kangas
0283d1c4e5 ; Delete stale comment in mh-utils.el
* lisp/mh-e/mh-utils.el (mh-normalize-folder-name): Remove stale and
incorrect comment.
2022-08-08 18:18:51 +02:00
Stefan Kangas
f886a1d772 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.
2022-08-08 18:18:50 +02:00
Stefan Kangas
bf8044b9cd ; Unconditionally require built-in libraries 2022-08-08 18:18:50 +02:00
Lars Ingebrigtsen
c0c5f43f49 Clean up fix_command code slightly
* src/callint.c (fix_command): Remove superfluous check.
2022-08-08 17:47:07 +02:00
Lars Ingebrigtsen
27e1568967 select-active-regions doc string improvement
* src/keyboard.c (syms_of_keyboard): Mention
post-select-region-hook.
2022-08-08 17:47:07 +02:00
Lars Ingebrigtsen
b40def9644 Do some NEWS tagging 2022-08-08 17:47:07 +02:00
Stefan Kangas
4073d5eeea * lisp/obsolete/makesum.el: Add "Obsolete-since" header. 2022-08-08 16:32:15 +02:00
Stefan Kangas
425a5bfc9a 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.
2022-08-08 16:32:15 +02:00
Mattias Engdegård
9aae83fe30 * src/print.c (struct print_buffer): Revert gratuitous format change. 2022-08-08 16:26:29 +02:00
Lars Ingebrigtsen
27599d8df8 Add NEWS note about interactive-args 2022-08-08 16:07:23 +02:00
Lars Ingebrigtsen
3e93457ddb Update TODO about fix_command
* etc/TODO: Remove bit about fix_command, which has now been fixed.
2022-08-08 16:03:25 +02:00
Arash Esbati
7331ee112c 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.
2022-08-08 16:02:18 +02:00
Lars Ingebrigtsen
7f8a3d4e91 Clean up fix_command slightly
* src/callint.c (fix_command): Remove now-unused parameter.
(Fcall_interactively): Ditto.
2022-08-08 16:01:24 +02:00
Lars Ingebrigtsen
909931cb9a 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).
2022-08-08 15:53:41 +02:00