]> git.eshelyaron.com Git - emacs.git/log
emacs.git
2 years agoRename etc-authors-mode.el to emacs-authors-mode.el
Stefan Kangas [Thu, 11 Aug 2022 11:36:33 +0000 (13:36 +0200)]
Rename etc-authors-mode.el to emacs-authors-mode.el

* lisp/textmodes/etc-authors-mode.el: Move from here...
* lisp/textmodes/emacs-authors-mode.el: ...to here.  (Bug#57105)

2 years ago; etc/PROBLEMS: Move Ubuntu 8.04 entry to legacy systems.
Stefan Kangas [Fri, 12 Aug 2022 16:09:22 +0000 (18:09 +0200)]
; etc/PROBLEMS: Move Ubuntu 8.04 entry to legacy systems.

2 years agoFix emacs-news-view-mode-map inheritance
Lars Ingebrigtsen [Fri, 12 Aug 2022 15:44:51 +0000 (17:44 +0200)]
Fix emacs-news-view-mode-map inheritance

* lisp/textmodes/emacs-news-mode.el (emacs-news-view-mode-map):
Fix inheritance from `special-mode-map' (bug#57100).

2 years agoClarify bookmark-set prompt
Lars Ingebrigtsen [Fri, 12 Aug 2022 15:24:38 +0000 (17:24 +0200)]
Clarify bookmark-set prompt

* lisp/bookmark.el (bookmark-set): Clarify prompt further
(bug#57128).

2 years agogud.el: invoke 'perldb' with '-E' instead of '-e'
Harald Jörg [Fri, 12 Aug 2022 15:15:19 +0000 (17:15 +0200)]
gud.el: invoke 'perldb' with '-E' instead of '-e'

* lisp/progmodes/gud.el (gud-perldb-massage-args): Allow '-E' switch
and use it as a default in favor of '-e'

* etc/NEWS ('perldb' now recognizes '-E') New entry in section 'Gud'

2 years agoRemove some more outdated Gnus manual stuff
Lars Ingebrigtsen [Fri, 12 Aug 2022 15:10:27 +0000 (17:10 +0200)]
Remove some more outdated Gnus manual stuff

* doc/misc/gnus.texi (Mail Source Customization): Remove more
outdated text (bug#57156).

2 years agoRemove (gnus) Gnus Development manual section
Lars Ingebrigtsen [Fri, 12 Aug 2022 15:09:25 +0000 (17:09 +0200)]
Remove (gnus) Gnus Development manual section

* doc/misc/gnus.texi (Gnus Development): Remove outdated section
(bug#57156).

2 years ago* doc/misc/gnus.texi (Emacsen): Delete section.
Stefan Kangas [Fri, 12 Aug 2022 14:06:43 +0000 (16:06 +0200)]
* doc/misc/gnus.texi (Emacsen): Delete section.

2 years agoMake some more cedet version variables obsolete
Stefan Kangas [Fri, 12 Aug 2022 13:35:18 +0000 (15:35 +0200)]
Make some more cedet version variables obsolete

* lisp/cedet/ede.el (ede-version):
* lisp/cedet/semantic.el (semantic-version):
* lisp/cedet/srecode.el (srecode-version): Make obsolete.
* lisp/cedet/semantic/db-file.el (semanticdb-file-version): Don't
use above obsolete variable semantic-version.

2 years agoClarify face-at-point doc string and add (thing-at-point 'face)
Lars Ingebrigtsen [Fri, 12 Aug 2022 13:54:55 +0000 (15:54 +0200)]
Clarify face-at-point doc string and add (thing-at-point 'face)

* lisp/faces.el (face-at-point): Say what this function does.

* lisp/thingatpt.el (thing-at-point-face-at-point): Add `face'
type (bug#57087).
(thing-at-point-provider-alist, thing-at-point): Mention it in the
doc strings.

2 years agoFurther seq-uniq speed-ups for lists
Lars Ingebrigtsen [Fri, 12 Aug 2022 13:15:11 +0000 (15:15 +0200)]
Further seq-uniq speed-ups for lists

* lisp/emacs-lisp/seq.el (seq-uniq): Speed up more for long lists
(bug#57079).

2 years agoMake finder-mode inherit special-mode
Stefan Kangas [Fri, 12 Aug 2022 12:51:36 +0000 (14:51 +0200)]
Make finder-mode inherit special-mode

* lisp/finder.el (finder-mode): Inherit special-mode.
(finder-mode-map): Inherit special-mode-map.

2 years ago* lisp/finder.el (finder-summary): Improve formatting.
Stefan Kangas [Fri, 12 Aug 2022 12:25:27 +0000 (14:25 +0200)]
* lisp/finder.el (finder-summary): Improve formatting.

2 years agoUse help-key-binding face in package list help
Stefan Kangas [Fri, 12 Aug 2022 12:22:59 +0000 (14:22 +0200)]
Use help-key-binding face in package list help

* lisp/emacs-lisp/package.el (package--prettify-quick-help-key):
Use help-key-binding face.

2 years ago; * lisp/cedet/cedet.el: Delete stale comment.
Stefan Kangas [Thu, 11 Aug 2022 21:26:43 +0000 (23:26 +0200)]
; * lisp/cedet/cedet.el: Delete stale comment.

Since 2009, it is no longer the case that this file depends on other
parts of CEDET (see commit 715f35a55d).

2 years agoMake cedet version variables obsolete
Stefan Kangas [Thu, 11 Aug 2022 21:23:32 +0000 (23:23 +0200)]
Make cedet version variables obsolete

* lisp/cedet/cedet.el (cedet-version, cedet-packages): Make
obsolete.

2 years agoDefault outline-minor-mode-use-buttons to only happen in *Help*
Lars Ingebrigtsen [Fri, 12 Aug 2022 12:56:46 +0000 (14:56 +0200)]
Default outline-minor-mode-use-buttons to only happen in *Help*

* lisp/outline.el (outline-minor-mode-use-buttons): Change the
default to only use buttons in the *Help* buffer (for now),
because it's too disruptive in other modes.  This will probably be
changed again to have some other mechanism to opt in in certain
modes, but it's not clear what that mechanism should look like.

2 years agoReverse the outline arrows
Stephen Berman [Fri, 12 Aug 2022 12:49:22 +0000 (14:49 +0200)]
Reverse the outline arrows

* lisp/outline.el (outline-open): Reverse the arrows to match
arrows in Customize (bug#57082).

2 years ago; Fix documentation of 'loaddefs-generate' (bug#57144)
Eli Zaretskii [Fri, 12 Aug 2022 06:49:35 +0000 (09:49 +0300)]
; Fix documentation of 'loaddefs-generate' (bug#57144)

* lisp/emacs-lisp/loaddefs-gen.el (loaddefs-generate): Doc fix.

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

9419bc904d ; * lisp/printing.el: Delete outdated download instructions.
31af0f4eb7 Don't list Emacs as requirement for built-in package
ae348b719e Fix wrong metrics for bitmap-only fonts with HarfBuzz 5

2 years agoPrevent SelectionNotify etc from reaching GTK 3
Po Lu [Fri, 12 Aug 2022 01:25:12 +0000 (09:25 +0800)]
Prevent SelectionNotify etc from reaching GTK 3

* src/xterm.c (handle_one_xevent): Prevent selection events from
reaching GTK if they are destined for an Emacs window.

2 years agoNew debugging facility: backtraces from errors in Lisp called from redisplay
Alan Mackenzie [Thu, 11 Aug 2022 19:31:09 +0000 (19:31 +0000)]
New debugging facility: backtraces from errors in Lisp called from redisplay

Setting backtrace-on-redisplay-error to non-nil enables the generation of a
Lisp backtrace in buffer *Redisplay-trace* following an error in Lisp called
from redisplay.

* doc/lispref/debugging.texi (Debugging Redisplay): New subsection.
(Error Debugging): Reference to the new subsection.

* etc/NEWS: New entry for the new facility.

* src/eval.c (redisplay_deep_handler): New variable.
(init_eval): Initialize redisplay_deep_handler.
(call_debugger): Don't throw to top-level after calling debug-early
(internal_condition_case_n): "Bind" redisplay_deep_handler to the current
handler.
(backtrace_yet): New boolean variable.
(signal_or_quit): New code section to handle Lisp errors occurring in
redisplay.
(syms_of_eval): New DEFVAR_BOOL backtrace-on-redisplay-error.

* src/keyboard.c (command_loop_1): Set backtrace_yet to false each time around
the loop.
(safe_run_hooks_error): Allow args to be up to four Lisp_Objects long.
(safe_run_hooks_2): New function.

* src/lisp.h (top level): declare as externs backtrace_yet and
safe_run_hooks_2.

* src/xdisp.c (run_window_scroll_functions): Replace a call to
run_hook_with_args_2 with one to safe_run_hooks_2.

2 years agoSupport the full range of variation selectors
Axel Svensson [Mon, 8 Aug 2022 23:11:02 +0000 (01:11 +0200)]
Support the full range of variation selectors

* lisp/international/characters.el: Provide acronyms for variation
selectors.
(update-glyphless-char-display): Update display of the full range
of variation selectors.
(glyphless-char-display-control): Update doc string.  (Bug#57072)

* doc/lispref/display.texi (Glyphless Chars): Document more
variation selectors.

Copyright-paperwork-exempt: yes

2 years agoMake ad-version variable obsolete
Stefan Kangas [Thu, 11 Aug 2022 15:28:30 +0000 (17:28 +0200)]
Make ad-version variable obsolete

* lisp/emacs-lisp/advice.el (ad-version): Make obsolete in favor
of emacs-version.  It has not been bumped since 1994.

2 years agoMake ebnf-version variable obsolete
Stefan Kangas [Thu, 11 Aug 2022 15:19:45 +0000 (17:19 +0200)]
Make ebnf-version variable obsolete

* lisp/progmodes/ebnf2ps.el (ebnf-version): Make obsolete.
(ebnf-setup, ebnf-begin-file, ebnf-eps-finish-and-write): Don't
use above obsolete variable.

2 years agoMake ps-print-version variable obsolete
Stefan Kangas [Thu, 11 Aug 2022 15:10:52 +0000 (17:10 +0200)]
Make ps-print-version variable obsolete

* lisp/ps-print.el (ps-print-version): Make obsolete.
(ps-setup, ps-begin-file):
* lisp/progmodes/ebnf2ps.el:
* lisp/printing.el:
(pr-help-message, pr-interface-help-message)
(pr-create-interface): Don't use above obsolete variable.

2 years ago; * lisp/printing.el (pr-version): Avoid byte-compiler warning.
Eli Zaretskii [Thu, 11 Aug 2022 13:34:39 +0000 (16:34 +0300)]
; * lisp/printing.el (pr-version): Avoid byte-compiler warning.

2 years agoMake pr-version variable obsolete
Stefan Kangas [Thu, 11 Aug 2022 13:21:08 +0000 (15:21 +0200)]
Make pr-version variable obsolete

* lisp/printing.el (pr-version): Make obsolete.
(pr-help-message, pr-interface-help-message, pr-setup)
(pr-create-interface): Don't use above obsolete variable.

2 years ago; * lisp/printing.el: Delete outdated download instructions.
Stefan Kangas [Thu, 11 Aug 2022 13:16:31 +0000 (15:16 +0200)]
; * lisp/printing.el: Delete outdated download instructions.

2 years agoDon't list Emacs as requirement for built-in package
Stefan Kangas [Thu, 11 Aug 2022 13:03:29 +0000 (15:03 +0200)]
Don't list Emacs as requirement for built-in package

* doc/misc/htmlfontify.texi (Requirements): Don't list Emacs as
requirement for built-in package.

2 years agoDon't show status message in Helper-describe-bindings
Stefan Kangas [Thu, 11 Aug 2022 12:32:18 +0000 (14:32 +0200)]
Don't show status message in Helper-describe-bindings

* lisp/emacs-lisp/helper.el (Helper-describe-bindings): Don't show
status message.

2 years agonewsticker: fix bug#57045
Ulf Jasper [Thu, 11 Aug 2022 11:26:52 +0000 (13:26 +0200)]
newsticker: fix bug#57045

* lisp/net/newst-treeview.el
(newsticker--treeview-list-items-with-age) (newsticker-treeview-update):
Fix issues with changing sort order in virtual feed 'all' (Bug#57045).

2 years ago; * lisp/play/5x5.el (5x5-defvar-local): Improve obsoletion.
Stefan Kangas [Thu, 11 Aug 2022 11:16:34 +0000 (13:16 +0200)]
; * lisp/play/5x5.el (5x5-defvar-local): Improve obsoletion.

2 years ago* lisp/vc/emerge.el (emerge-show-file-name): Make obsolete.
Stefan Kangas [Thu, 11 Aug 2022 11:11:50 +0000 (13:11 +0200)]
* lisp/vc/emerge.el (emerge-show-file-name): Make obsolete.

2 years agoMake emerge-define-key-if-possible obsolete
Stefan Kangas [Thu, 11 Aug 2022 11:07:24 +0000 (13:07 +0200)]
Make emerge-define-key-if-possible obsolete

* lisp/vc/emerge.el (emerge-define-key-if-possible): Make unused
function obsolete.

2 years ago* test/lisp/net/tramp-tests.el (tramp--test-utf8): Adapt test.
Michael Albinus [Thu, 11 Aug 2022 10:34:01 +0000 (12:34 +0200)]
* test/lisp/net/tramp-tests.el (tramp--test-utf8): Adapt test.

2 years agoFix wrong metrics for bitmap-only fonts with HarfBuzz 5
YAMAMOTO Mitsuharu [Thu, 11 Aug 2022 09:16:24 +0000 (18:16 +0900)]
Fix wrong metrics for bitmap-only fonts with HarfBuzz 5

* src/ftcrfont.c (ftcrhbfont_begin_hb_font): Always use the standard
position unit value on HarfBuzz 5 and later regardless of whether the
font is bitmap-only or not.  (Bug#57066)

2 years ago; Fix typo in tramp-archive.el
Michael Albinus [Thu, 11 Aug 2022 06:41:11 +0000 (08:41 +0200)]
; Fix typo in tramp-archive.el

* lisp/net/tramp-archive.el (tramp-archive-file-name-handler):
Fix typo.  (Bug#57130)

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

648acc8848 ; Fix @setfilename in calc.texi

2 years agoAdjust client pointer upon help event
Po Lu [Thu, 11 Aug 2022 01:56:15 +0000 (09:56 +0800)]
Adjust client pointer upon help event

* src/xterm.c (handle_one_xevent): Keep track of the device that
set do_help and make it the client pointer so that tooltips show
up under the right pointer.

2 years agoFix 'describe-char' in "C" locale
Eli Zaretskii [Wed, 10 Aug 2022 12:31:59 +0000 (15:31 +0300)]
Fix 'describe-char' in "C" locale

* lisp/descr-text.el (describe-char): Avoid assertions if
'buffer-file-coding-system' is nil.  (Bug#57066)

2 years agoImprove the bengali-probhat input method
Visuwesh [Tue, 9 Aug 2022 15:42:39 +0000 (21:12 +0530)]
Improve the bengali-probhat input method

* lisp/leim/quail/indian.el ("bengali-probhat"): Set KBD-TRANSLATE
and SHOW-LAYOUT flags non-nil.  This makes the IM usable with Dvorak
keyboard and also shows more useful help.  Reported by Akib Azmain
Turja <akib@disroot.org>.

2 years ago; Fix @setfilename in calc.texi
Eli Zaretskii [Wed, 10 Aug 2022 11:57:07 +0000 (14:57 +0300)]
; Fix @setfilename in calc.texi

* doc/misc/calc.texi: Move the @setfilename command to its proper
place.  (Bug#57107)

2 years agoFix some undesirable frame focus changes
Po Lu [Wed, 10 Aug 2022 11:30:55 +0000 (19:30 +0800)]
Fix some undesirable frame focus changes

* src/xterm.c (handle_one_xevent): Only detach upon actual
device tree change.

2 years ago; * lisp/emacs-lisp/subr-x.el (string-pad): Optimise.
Mattias Engdegård [Wed, 10 Aug 2022 11:06:12 +0000 (13:06 +0200)]
; * lisp/emacs-lisp/subr-x.el (string-pad): Optimise.

2 years agoMake gdb-pad-string obsolete in favor of string-pad
Stefan Kangas [Wed, 10 Aug 2022 10:54:31 +0000 (12:54 +0200)]
Make gdb-pad-string obsolete in favor of string-pad

* lisp/progmodes/gdb-mi.el (subr-x): Require.
(gdb-pad-string): Make obsolete in favor of 'string-pad'.  Update
callers.

2 years agoExtend LAP optimisations to more operations
Mattias Engdegård [Tue, 9 Aug 2022 08:57:46 +0000 (10:57 +0200)]
Extend LAP optimisations to more operations

Extend the set of eligible opcodes for certain peephole
transformations, which then provide further optimisation
opportunities.

* lisp/emacs-lisp/byte-opt.el (byte-optimize-lapcode):
Optimise empty save-current-buffer in the same way as we already
do for save-excursion and save-restriction.  This is safe
because (save-current-buffer) is a no-op.
(byte-compile-side-effect-and-error-free-ops): Add list3, list4 and
listN.  These were all apparent oversights as list1 and list2 were
already included.
(byte-after-unbind-ops): Add stack-ref, stack-set, discard, list3,
list4 and listN.  Stack manipulation is safe because unbind cannot
read or modify stack entries.

2 years agoFix compilation warning in wisent/comp.el
Lars Ingebrigtsen [Wed, 10 Aug 2022 10:31:20 +0000 (12:31 +0200)]
Fix compilation warning in wisent/comp.el

* lisp/cedet/semantic/wisent/comp.el (require): string-pad is used
run-time.

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.