Dmitry Gutov
fcd2d14db1
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.
2022-08-10 03:36:35 +03:00
Stefan Kangas
ec2bd7dd5c
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.
2022-08-10 00:45:50 +02:00
Stefan Kangas
561d09d7ad
Make unused function filesets-ormap obsolete
...
* lisp/filesets.el (filesets-ormap): Simplify and make obsolete in
favor of 'seq-drop-while'.
2022-08-10 00:45:50 +02:00
Stefan Kangas
cbc925bbed
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.
2022-08-10 00:45:50 +02:00
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
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
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
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
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
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
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
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
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