1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 12:21:25 -08:00
Commit graph

158988 commits

Author SHA1 Message Date
Stefan Kangas
0e824bd683 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>.
2022-08-09 22:44:21 +02:00
Stefan Kangas
32d8fc999c 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.
2022-08-09 22:28:08 +02:00
Stefan Kangas
06cb954ae3 Remove some compat code from ps-print.el
* lisp/ps-print.el (ps-print-color-p): Assume color-values is
fboundp; it always is.
2022-08-09 22:26:36 +02:00
Stefan Kangas
8caa91b2ce * lisp/vc/pcvs-util.el (cvs-partition): Simplify. 2022-08-09 22:15:00 +02:00
Stefan Kangas
caabc5a4ab * lisp/nxml/rng-util.el (rng-collapse-space): Simplify. 2022-08-09 21:58:00 +02:00
Stefan Kangas
fd4aad5697 ; * lisp/mouse.el: Delete stale comment. 2022-08-09 21:58:00 +02:00
Stefan Kangas
c47507ec56 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.
2022-08-09 21:58:00 +02:00
Stefan Kangas
581fa3d958 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.
2022-08-09 21:58:00 +02:00
Stefan Kangas
0bc2079ce6 * lisp/ibuf-ext.el (ibuffer-remove-alist): Simplify. 2022-08-09 21:58:00 +02:00
Lars Ingebrigtsen
47aa2317c3 Use new convenience functions in replace-string
* lisp/replace.el (replace-string): Use new convenience functions.
2022-08-09 21:13:10 +02:00
Lars Ingebrigtsen
6ac92c65a8 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).
2022-08-09 21:13:10 +02:00
Juri Linkov
619d5af54a * 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.
2022-08-09 21:54:32 +03:00
Andrea Greselin
41169b5534 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.
2022-08-09 20:44:07 +02:00
Stephen Berman
744ed0ceee 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.
2022-08-09 20:44:07 +02:00
Eli Zaretskii
38f9d9bf06 ; * src/keyboard.c (timer_check_2): Restore run-time conditions. 2022-08-09 21:26:21 +03:00
Eli Zaretskii
b7b160b409 Revert "Make compat alias check-ispell-version obsolete"
This reverts commit 24795e45e5.

That alias is in no way obsolete, and was added for a different
reason.
2022-08-09 20:51:42 +03:00
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
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