1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-22 04:21:24 -08:00
Commit graph

156191 commits

Author SHA1 Message Date
Lars Ingebrigtsen
2d2c448efe Fix forward-sexp for Unicode names in Emacs Lisp mode
* lisp/progmodes/elisp-mode.el (elisp-mode-syntax-propertize):
Make forward-sexp work for Unicode character names (bug#23354).
2022-05-06 18:38:09 +02:00
Noam Postavsky
6ccc4b6bc8 Handle elisp #-syntax better in Emacs Lisp mode
* elisp-mode.el (elisp-mode-syntax-propertize): New function.
(emacs-lisp-mode): Set it as syntax-propertize-function (bug#15998).
2022-05-06 18:31:09 +02:00
Stefan Monnier
7deaa2e36b * lisp/emacs-lisp/smie.el (smie-auto-fill): Fix bug#19342 2022-05-06 11:09:58 -04:00
Lars Ingebrigtsen
1cda7cfb39 Respect help-window-keep-selected in shortdoc buttons
* lisp/help-fns.el (help-fns--mention-shortdoc-groups): Respect
help-window-keep-selected.

* lisp/emacs-lisp/shortdoc.el (shortdoc-display-group): Allow
reusing the window.
2022-05-06 16:21:07 +02:00
Lars Ingebrigtsen
afc14e4f66 Move buffer-local-set-state to subr because it's used at runtime
* lisp/subr.el (buffer-local-set-state)
(buffer-local-set-state--get, buffer-local-restore-state): Moved
from easy-mmode.el because they have to be available run-time.
2022-05-06 16:09:38 +02:00
Eli Zaretskii
92bbe911e9 ; Improve documentation of 'buffer-local-set-state'
* lisp/emacs-lisp/easy-mmode.el (buffer-local-set-state)
(buffer-local-restore-state): Doc fixes.

* doc/lispref/modes.texi (Defining Minor Modes): Fix a typo and
improve wording and indexing.
2022-05-06 15:15:27 +03:00
Lars Ingebrigtsen
7601a77d8a Make compilation-parse-errors more resilient
* lisp/progmodes/compile.el (compilation-parse-errors): Be more
resilient in the presence of regexp alist not being completely set
up (bug#55282).
2022-05-06 14:15:19 +02:00
Po Lu
79bbbb1fcf Improve font specs generated by the Haiku font dialog
* src/haikufont.c (Fx_select_font): Use `nil' instead of
`unspecified' to be consistent with other font dialogs.
2022-05-06 12:06:35 +00:00
Lars Ingebrigtsen
e41b7cc935 Fix inhibiting reading the user init file with "emacs -x"
* lisp/startup.el (command-line): Really inhibit loading the user
init file with "emacs -x".
2022-05-06 14:04:55 +02:00
Lars Ingebrigtsen
44b5f0cd87 Remove the P/N/M-p/M-n bindings from the general log-view map
* lisp/vc/log-view.el (log-view-mode-map): Remove the P/N/M-p/M-n
bindings (that are only usable in some VCs).
* lisp/vc/vc-sccs.el (vc-sccs-log-view-mode):
* lisp/vc/vc-rcs.el (vc-rcs-log-view-mode):
* lisp/vc/vc-cvs.el (vc-cvs-log-view-mode): New modes that bind
the P/N/M-p/M-n commands (bug#14531).
2022-05-06 13:45:11 +02:00
Lars Ingebrigtsen
deb66cb32d Don't override search-default-mode set by user in info/help
* lisp/info.el (Info-mode):
* lisp/help-mode.el (help-mode): Don't override isearch mode set
by the user.
2022-05-06 13:30:12 +02:00
Lars Ingebrigtsen
16dc1d597b Char-fold quotation characters in *info* and *Help*
* lisp/info.el (Info-mode):
* lisp/help-mode.el (help-mode): Use it.
* lisp/isearch.el (isearch-fold-quotes-mode): New minor mode
(bug#24510).
2022-05-06 13:28:20 +02:00
Lars Ingebrigtsen
3b088bbed2 Regenerate ldefs-boot.el 2022-05-06 13:21:07 +02:00
Lars Ingebrigtsen
b6bced1a66 Autoload the buffer-local-set* things
* lisp/emacs-lisp/easy-mmode.el (buffer-local-set-state--get)
(buffer-local-restore-state): Autoload.  Perhaps it would be
better to move these functions to subr.el or something...
2022-05-06 13:20:47 +02:00
Lars Ingebrigtsen
b13356487f Add new helper macros for minor modes to restore variables
* doc/lispref/modes.texi (Defining Minor Modes): Document it.

* lisp/emacs-lisp/easy-mmode.el (buffer-local-set-state): New macro.
(buffer-local-set-state--get): Helper function.
(buffer-local-restore-state): New function.

* lisp/textmodes/word-wrap-mode.el (word-wrap-whitespace-mode):
Use it to simplify code.
2022-05-06 13:10:45 +02:00
Michael Albinus
0bda1803bb Fix thinko in tramp-skeleton-write-region
* lisp/net/tramp.el (tramp-skeleton-write-region): Fix typos.
Flush cache in time.  (Bug#55247)
(tramp-handle-lock-file): Suppress messages in `write-region'.
2022-05-06 10:37:57 +02:00
Po Lu
ded4413acc Fix calculation of display resolution on Haiku
* src/haiku_support.cc (BScreen_px_dim): Rename to
`be_get_screen_dimensions'.
(BScreen_res): Rename to `be_get_display_resolution' and fix
resolution computation.
* src/haiku_support.h: Update prototypes.

* src/haikufns.c (compute_tip_xy, Fx_display_pixel_width)
(Fx_display_pixel_height, Fx_display_mm_height)
(Fx_display_mm_width): Update accordingly.

* src/haikuterm.c (haiku_term_init): Likewise.
2022-05-06 07:29:15 +00:00
Stefan Kangas
7609c6cadb Merge from origin/emacs-28
69c56cbe6e ; * src/w32notify.c: Fix a typo in a comment.
3b9e60ba2f ; * src/window.c (Fset_window_start): Mention the effect o...
2022-05-06 06:30:28 +02:00
Po Lu
8fe3d46d35 Fix more problems with display of composite glyph strings on Haiku
* src/haikuterm.c
(haiku_draw_composite_glyph_string_foreground): Fix pen size of
placeholder rectangle.
2022-05-06 04:11:38 +00:00
Po Lu
f515ff05e0 Fix mouse face persisting inside Lucid menus on XI2
* src/xmenu.c (create_and_show_popup_menu): Call `x_mouse_leave'
on Lucid as well when the input extension is being used.

* src/xterm.c (x_mouse_leave): Enable on Lucid XI2 builds.
* src/xterm.h: Update prototypes.
2022-05-06 11:55:35 +08:00
Po Lu
d6b5ac0f94 * lwlib/lwlib.c (lw_separator_p): Fix empty strings being separators. 2022-05-06 11:32:19 +08:00
Po Lu
e379d2e8c1 Fix menu dismissal problems on Xt builds with XI2
* src/xmenu.c (prepare_for_entry_into_toolkit_menu)
(leave_toolkit_menu): New functions.
(create_and_show_popup_menu): Replace some of the grab logic
with resetting the XI event mask instead.
2022-05-06 11:01:39 +08:00
Po Lu
e2fcbd8dbd Fix more issues with DND state on multiple displays
* src/xterm.c (handle_one_xevent): Don't update DND state on the
wrong display.
2022-05-06 09:35:23 +08:00
Po Lu
d5c1fec6ab Improve safety of DND when Emacs is connected to multiple displays
* src/xterm.c (x_dnd_begin_drag_and_drop): Don't check movement
frame unless we know it comes from the right display.
2022-05-06 08:39:14 +08:00
Paul Eggert
9007e10a0f Gnulib update via admin/merge-gnulib 2022-05-05 15:37:40 -07:00
James N. V. Cash
7e9d364b66 * lisp/emacs-lisp/crm.el: Set completion-list-insert-choice-function.
* lisp/emacs-lisp/crm.el (completing-read-multiple): Set buffer-local
completion-list-insert-choice-function that handles string values of args.
https://lists.gnu.org/archive/html/emacs-devel/2022-05/msg00017.html
2022-05-05 21:15:51 +03:00
Juri Linkov
459d5ff8ad * lisp/desktop.el: Enable tab-bar-mode after restoring frames with a tab bar.
(desktop-restore-frameset): Enable tab-bar-mode when a restored frame
contains the frame parameter tab-bar-lines (bug#55070).
2022-05-05 21:08:30 +03:00
Paul Eggert
8fce81897d timestamp doc minor improvements
* doc/lispref/os.texi (Time of Day, Time Conversion)
(Time Calculations): Fix some confusion about decoded times,
timestamps, and time values.  Exclude floating-point infinities
and NaNs from timestamps, as the code doesn’t always follow
IEEE-754 rules for them and whatever the code does, doesn’t matter
for timestamps anyway.
2022-05-05 09:03:28 -07:00
Glenn Morris
d04acc1946 * doc/emacs/misc.texi (Interactive Shell): Fix paren typo. 2022-05-05 07:57:21 -07:00
Lars Ingebrigtsen
d01e74f46d Fix a mistaken test case in test-undo-region
* test/lisp/simple-tests.el (test-undo-region): Fix failing cases
(bug#21523) -- the crossing-region case shouldn't be included,
either.
2022-05-05 16:38:39 +02:00
Lars Ingebrigtsen
6dbbdff281 Advertise OSC directory tracking more
* doc/emacs/misc.texi (Interactive Shell): Document OSC directory
tracking more.
* lisp/shell.el (shell-dirtrack-mode): Link to the OSC directory
tracking function.
2022-05-05 15:06:26 +02:00
Po Lu
71de48494e Set GC line width on more GCs
* src/xterm.c (x_set_cursor_gc, x_set_mouse_face_gc)
(x_draw_bar_cursor): Make created scratch GCs have a line-width
of 1.
2022-05-05 21:05:25 +08:00
Lars Ingebrigtsen
aebff74af2 Sort completions in Info references/menu correctly
* lisp/info.el (Info-follow-reference): Sort completions in the
order they appear in the buffer (bug#54175).
(Info-menu-update): Ditto.
2022-05-05 13:30:14 +02:00
Lars Ingebrigtsen
8364f058b8 Be more resilient towards errors during error handling
* src/print.c (print_error_message): Avoid infinite recursion if
`substitute-command-keys' bugs out (bug#55269).
2022-05-05 13:22:42 +02:00
Philip Kaludercic
be374c18b3 Avoid resizing mini buffer when displaying page numbers
* doc-view.el (doc-view-goto-page): Do not insert a newline at the end
of the "current info" if not necessary.
2022-05-05 13:15:11 +02:00
Lars Ingebrigtsen
a4e5fdf975 Describe kmacro registers better
* lisp/kmacro.el (register-val-describe): Allow describing macros
that contain mouse events (bug#55266).
2022-05-05 13:10:53 +02:00
Po Lu
1468eef301 Speed up opening fonts on Haiku
* src/font.h (font_property_index): Note that some font drivers
use the extra data in a font entity to store driver-specific
information.

* src/haiku_font_support.cc (BFont_find): Set font indices.
(be_open_font_at_index): New function.
(BFont_open_pattern): Clean up coding style.
* src/haiku_support.h (enum haiku_font_specification)
(struct haiku_font_pattern): New fields and specifications for
indices.
* src/haikufont.c (haikufont_pattern_to_entity, haikufont_open):
Use indices to open fonts if available in the extra data.
2022-05-05 09:46:05 +00:00
Po Lu
30caeb7896 Fix font weight reporting on macOS
* src/macfont.m (macfont_store_descriptor_attributes): Fix
numeric values for the addition of `medium'.

* src/nsterm.m (ns_font_desc_to_font_spec): Adjust accordingly.
(ns_create_font_panel_buttons): Try to fix button width.
2022-05-05 17:01:53 +08:00
Po Lu
1bfea2ae69 Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs 2022-05-05 15:56:19 +08:00
Po Lu
75c26e4174 Improve appearance of macOS font panel buttons
* src/nsterm.m (ns_create_font_panel_buttons):
([EmacsView noteUserCancelledSelection]): New functions.
([EmacsView showFontPanel]): Use those buttons instead.
2022-05-05 15:55:45 +08:00
Michael Albinus
c242a38b7d Add Tramp test
* test/lisp/net/tramp-tests.el (tar-mode): Require.
(tramp-test10-write-region-other-file-name-handler): New test.
(tramp-test31-interrupt-process, tramp-test31-signal-process):
Tag them :unstable unconditionally.

* test/lisp/net/tramp-resources/foo.tar.gz: New resource file.
2022-05-05 09:54:31 +02:00
Eli Zaretskii
69c56cbe6e ; * src/w32notify.c: Fix a typo in a comment. 2022-05-05 10:38:40 +03:00
Po Lu
8f391ae26e Fix min size reporting of style pane in Haiku font dialogs
* src/haiku_support.cc (class DualLayoutView):
(MinSize): Implement correctly with both views.
2022-05-05 06:33:59 +00:00
Eli Zaretskii
3b9e60ba2f ; * src/window.c (Fset_window_start): Mention the effect on vscroll. 2022-05-05 08:57:49 +03:00
Po Lu
d15b11b50e Use bswap_32 and bswap_16 in Motif DND code
* src/xterm.c (SWAPCARD32, SAPCARD16): Use glibc/gnulib
byte-swapping functions if checking is disabled.
2022-05-05 13:44:19 +08:00
Po Lu
01e874e1e6 Take size into account when previewing fonts on Haiku
* src/haiku_support.cc (MessageReceived): Decode size sent and
handle `UPDATE_PREVIEW_DIALOG' message.
(UpdatePreview): Add current size.
(EmacsFontSelectionDialog): Assign correct modification messages
to the size entry.
2022-05-05 04:58:47 +00:00
Po Lu
c250d82463 Allow displaying font preview on Haiku
* src/haiku_support.cc (class EmacsFontPreviewDialog)
(class DualLayoutView): New classes.
(class EmacsFontSelectionDialog): Add field for preview,
checkbox and layout view.
(MessageReceived): Handle new font preview messages.
(EmacsFontSelectionDialog): New constructor.
(FrameResized): Resize the layout view instead.
2022-05-05 03:10:30 +00:00
Po Lu
5784533cb6 Fix device reporting from scroll bar events on X
* src/xterm.c (x_scroll_bar_handle_click): New argument
`device'.
(handle_one_xevent): Set it appropriately as long as required.
2022-05-05 09:04:32 +08:00
dickmao
f1ab92bc23 Transcription error
* lisp/gnus/gnus-topic.el (gnus-topic-display-missing-topic):
Indent.
(gnus-topic-update-topic-line): Insert missing fourth argument.
2022-05-04 18:03:10 -07:00
Sean Whitton
a35639015c Revert "server-execute: Initialize the *scratch* buffer"
This reverts commit f2d2fe6fc8.

To be replaced with factoring out *scratch* buffer initialization.
2022-05-04 16:31:50 -07:00