1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-28 10:56:36 +00:00
Commit Graph

159040 Commits

Author SHA1 Message Date
Lars Ingebrigtsen
829b131e5b 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.
2022-08-12 15:54:55 +02:00
Lars Ingebrigtsen
c0d761bf7f Further seq-uniq speed-ups for lists
* lisp/emacs-lisp/seq.el (seq-uniq): Speed up more for long lists
(bug#57079).
2022-08-12 15:16:39 +02:00
Stefan Kangas
f947b20a19 Make finder-mode inherit special-mode
* lisp/finder.el (finder-mode): Inherit special-mode.
(finder-mode-map): Inherit special-mode-map.
2022-08-12 15:08:19 +02:00
Stefan Kangas
dc28798645 * lisp/finder.el (finder-summary): Improve formatting. 2022-08-12 15:08:19 +02:00
Stefan Kangas
8ae68308a1 Use help-key-binding face in package list help
* lisp/emacs-lisp/package.el (package--prettify-quick-help-key):
Use help-key-binding face.
2022-08-12 15:08:19 +02:00
Stefan Kangas
9e983f4e83 ; * 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).
2022-08-12 15:08:19 +02:00
Stefan Kangas
43d46a7b3a Make cedet version variables obsolete
* lisp/cedet/cedet.el (cedet-version, cedet-packages): Make
obsolete.
2022-08-12 15:08:19 +02:00
Lars Ingebrigtsen
95d8a4544e 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.
2022-08-12 14:56:46 +02:00
Stephen Berman
a23f9b7bda Reverse the outline arrows
* lisp/outline.el (outline-open): Reverse the arrows to match
arrows in Customize (bug#57082).
2022-08-12 14:49:22 +02:00
Eli Zaretskii
a99ea4b761 ; Fix documentation of 'loaddefs-generate' (bug#57144)
* lisp/emacs-lisp/loaddefs-gen.el (loaddefs-generate): Doc fix.
2022-08-12 09:49:35 +03:00
Stefan Kangas
687fcc2c40 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
2022-08-12 06:30:31 +02:00
Po Lu
05c4e7bfbd 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.
2022-08-12 09:25:12 +08:00
Alan Mackenzie
48215c41d1 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.
2022-08-11 19:31:09 +00:00
Axel Svensson
e7f1d4f6e1 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
2022-08-11 19:14:45 +03:00
Stefan Kangas
8854b321c2 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.
2022-08-11 17:34:59 +02:00
Stefan Kangas
6568592015 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.
2022-08-11 17:32:04 +02:00
Stefan Kangas
6878972038 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.
2022-08-11 17:20:06 +02:00
Eli Zaretskii
d5c3b602b9 ; * lisp/printing.el (pr-version): Avoid byte-compiler warning. 2022-08-11 16:34:39 +03:00
Stefan Kangas
686296b512 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.
2022-08-11 15:21:47 +02:00
Stefan Kangas
9419bc904d ; * lisp/printing.el: Delete outdated download instructions. 2022-08-11 15:18:43 +02:00
Stefan Kangas
31af0f4eb7 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.
2022-08-11 15:03:29 +02:00
Stefan Kangas
89f5167379 Don't show status message in Helper-describe-bindings
* lisp/emacs-lisp/helper.el (Helper-describe-bindings): Don't show
status message.
2022-08-11 14:35:23 +02:00
Ulf Jasper
f7438fc859 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).
2022-08-11 13:34:18 +02:00
Stefan Kangas
a2ecf73545 ; * lisp/play/5x5.el (5x5-defvar-local): Improve obsoletion. 2022-08-11 13:16:42 +02:00
Stefan Kangas
e93a1a835e * lisp/vc/emerge.el (emerge-show-file-name): Make obsolete. 2022-08-11 13:11:50 +02:00
Stefan Kangas
bce98395ce Make emerge-define-key-if-possible obsolete
* lisp/vc/emerge.el (emerge-define-key-if-possible): Make unused
function obsolete.
2022-08-11 13:07:24 +02:00
Michael Albinus
4f18214fbe * test/lisp/net/tramp-tests.el (tramp--test-utf8): Adapt test. 2022-08-11 12:34:01 +02:00
YAMAMOTO Mitsuharu
ae348b719e 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)
2022-08-11 18:16:24 +09:00
Michael Albinus
80837653eb ; Fix typo in tramp-archive.el
* lisp/net/tramp-archive.el (tramp-archive-file-name-handler):
Fix typo.  (Bug#57130)
2022-08-11 08:41:11 +02:00
Stefan Kangas
7d70320f35 Merge from origin/emacs-28
648acc8848 ; Fix @setfilename in calc.texi
2022-08-11 06:30:24 +02:00
Po Lu
edffda8609 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.
2022-08-11 09:56:15 +08:00
Eli Zaretskii
e7b348b08a Fix 'describe-char' in "C" locale
* lisp/descr-text.el (describe-char): Avoid assertions if
'buffer-file-coding-system' is nil.  (Bug#57066)
2022-08-10 15:31:59 +03:00
Visuwesh
bca31619e8 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>.
2022-08-10 15:24:23 +03:00
Eli Zaretskii
648acc8848 ; Fix @setfilename in calc.texi
* doc/misc/calc.texi: Move the @setfilename command to its proper
place.  (Bug#57107)
2022-08-10 14:57:07 +03:00
Po Lu
8c0c9398f3 Fix some undesirable frame focus changes
* src/xterm.c (handle_one_xevent): Only detach upon actual
device tree change.
2022-08-10 19:31:21 +08:00
Mattias Engdegård
d8d582dc3c ; * lisp/emacs-lisp/subr-x.el (string-pad): Optimise. 2022-08-10 13:06:12 +02:00
Stefan Kangas
f6356dc88d 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.
2022-08-10 12:54:31 +02:00
Mattias Engdegård
9d35afed49 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.
2022-08-10 12:51:40 +02:00
Lars Ingebrigtsen
1d9ee27270 Fix compilation warning in wisent/comp.el
* lisp/cedet/semantic/wisent/comp.el (require): string-pad is used
run-time.
2022-08-10 12:31:20 +02:00
Stefan Kangas
8b31c18fc8 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.
2022-08-10 11:53:27 +02:00
Stefan Kangas
f002fa8bfc Delete dead code in checkdoc.el
* lisp/emacs-lisp/checkdoc.el: Delete code commented out since
1997.
2022-08-10 11:28:17 +02:00
Stefan Kangas
29f2b1728b 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.
2022-08-10 11:21:24 +02:00
Stefan Kangas
358ad0d30a 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.
2022-08-10 06:31:02 +02:00
Po Lu
5e07d1d0fc Improve MPX interaction with xwidgets and drag-and-drop
* src/xterm.c (handle_one_xevent): Handle focus interaction in
more places.
2022-08-10 10:33:43 +08:00
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
Lars Ingebrigtsen
230a198a0f Avoid having language environments interpreted as sections 2022-08-09 23:18:03 +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