1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-21 03:52:16 -08:00
Commit graph

156243 commits

Author SHA1 Message Date
Po Lu
2f1410562e Disable scrolling optimizations when a stipple is present
* src/dispextern.h (struct glyph_row): New field `stippled_p'.
We cannot just use the contents of the glyph row, since it has
to be set in `gui_clear_end_of_line' and is more convenient to
set inside the various draw_glyph_string functions.

* src/dispnew.c (scrolling_window): Disable if a row in the
current matrix has the stipple_p flag set.

* src/xdisp.c (gui_clear_end_of_line):
* src/xterm.c (x_draw_image_glyph_string)
(x_draw_stretch_glyph_string, x_draw_glyph_string): Set
`stipple_p' if a stipple pattern was drawn.
2022-05-08 20:48:42 +08:00
Po Lu
7a29f55f3a Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs 2022-05-08 19:43:13 +08:00
Visuwesh
4c505203f9 dired-do-query-replace-regexp doc string fix
* lisp/dired-aux.el (dired-do-query-replace-regexp): Refer
'fileloop-continue' instead of the obsolete command
'tags-loop-continue'.
2022-05-08 13:17:46 +02:00
Po Lu
461ac0815c Fix crashes on ordinary menus on macOS
* src/nsmenu.m ([EmacsMenu runMenuAt:forFrame:keymaps:]): Fix
coding style.
([EmacsMenu menu:willHighlightItem:]): Ignore if this is a
context menu.
2022-05-08 19:14:57 +08:00
Po Lu
be60e9e947 Fix bug in `pixel-scroll-precision-mode' on nonselected windows
* src/window.c (Fset_window_vscroll): Mark window for redisplay.
(bug#55299)
2022-05-08 19:02:53 +08:00
Michael Albinus
ccbdae840d Handle changed scp protocol in Tramp
* lisp/net/tramp-sh.el (tramp-scp-force-scp-protocol): New defvar.
(tramp-scp-force-scp-protocol): New defun.
(tramp-do-copy-or-rename-file-out-of-band): Use it.
(tramp-scp-direct-remote-copying, tramp-methods) <scp, scpx>: Use "%z".

* lisp/net/tramp.el (tramp-methods): Adapt docstring.
2022-05-08 11:51:59 +02:00
Po Lu
1a988d9ff5 Improve handling of invisible cursor alloc failures
* src/xterm.c (x_toggle_visible_pointer): Use Xfixes if cursor
allocation really fails.  This happens when the X server has a
limit on the number of cursors that can be created.
2022-05-08 14:33:34 +08:00
Po Lu
144e9f9b6a Fix file-based stipple on NS
* src/image.c (image_create_bitmap_from_file) [HAVE_NS]: Fix
loading XBM data from file.
2022-05-08 14:28:41 +08:00
Eli Zaretskii
a85e30516e Fix selection dialog display on MS-Windows
* src/w32fns.c (w32_wnd_proc) <WM_PAINT>: Update the frame from
the back buffer when double-buffering is in effect and a selection
dialog is open.
(w32_dialog_in_progress): Indicate to 'w32_wnd_proc' that a
selection dialog is open.  (Bug#55208)
2022-05-08 09:24:29 +03:00
Po Lu
48c422e255 Fix display of hollow box cursor on NS
* src/nsterm.m (ns_draw_window_cursor): Fix verbatim
translations from X.
2022-05-08 13:44:28 +08:00
Po Lu
7474b55e28 Fix setting stipple via `set-face-stipple'
* lisp/faces.el (face-valid-attribute-values): Return results
for `:stipple' in correct format.
2022-05-08 05:28:11 +00:00
Po Lu
5eeca488b9 Implement stipples for stretch glyphs
* src/haikuterm.c (haiku_draw_stipple_background): Accept new
arguments for specifying the color explicitly.  All callers
changed.
(haiku_draw_stretch_glyph_string): Draw stipple correctly.
(haiku_draw_glyph_string): Handle stipple correctly when drawing
neighbors.
2022-05-08 05:09:24 +00:00
Po Lu
b205d67f8c Fully implement stipples for text on Haiku
* src/haikufont.c (haikufont_draw): Use
`haiku_draw_background_rect' instead.

* src/haikuterm.c (haiku_draw_plain_background): Change
arguments to accept rect manually.
(haiku_get_bitmap): Delete function.
(haiku_get_bitmap_rec): New function.
(haiku_draw_stipple_background): Accept rect instead of box
sizes.
(haiku_draw_background_rect): New function.
(haiku_maybe_draw_background): Use that instead.
(haiku_draw_image_glyph_string): Add notice.
(haiku_draw_glyph_string): Set `stippled_p' correctly.

* src/haikuterm.h (struct haiku_bitmap_record): New fields for
keeping track of stipple state.
* src/image.c (image_create_bitmap_from_data)
(image_create_bitmap_from_file, free_bitmap_record): Free and
set them accordingly.
2022-05-08 04:42:11 +00:00
Po Lu
faa342c794 Implement bitmap loading for faces on Haiku
Stipples don't completely work yet.

* lisp/faces.el (face-valid-attribute-values): Enable `:stipple'
on Haiku.
* src/haiku_draw_support.cc (BView_DrawBitmap)
(BView_DrawBitmapWithEraseOp, BView_DrawMask): Don't push and
pop states.
(BView_DrawBitmapTiled): New function.

* src/haiku_support.cc (BBitmap_import_mono_bits): Delete
function.
* src/haiku_support.h: Update prototypes.
* src/haikuterm.c (get_string_resource): Fix coding style.
(haiku_get_bitmap, haiku_draw_stipple_background): Implement
partially.
(haiku_set_scroll_bar_default_width)
(haiku_set_scroll_bar_default_height, haiku_scroll_bar_create)
(haiku_set_horizontal_scroll_bar, haiku_set_vertical_scroll_bar)
(haiku_create_terminal, haiku_scroll_bar_remove): Fix coding
style.

* src/image.c (image_create_bitmap_from_data)
(image_create_bitmap_from_file): Implement on Haiku.
2022-05-08 03:08:42 +00:00
Po Lu
672a296d3b Use correct event structures to fetch time on XI2
* src/xterm.c (handle_one_xevent): Don't use generic `xi_event'
to access the event time.
2022-05-08 09:06:40 +08:00
Basil L. Contovounesios
ca3e3c9471 ; Pacify some --without-x byte-compiler warnings. 2022-05-07 20:18:51 +03:00
Paul Eggert
090d5f4446 * src/fns.c: Fix IDs in comments to match code. 2022-05-07 09:49:39 -07:00
Eli Zaretskii
97dd99c6f7 Fix Bengali composition rules
* lisp/language/indian.el (bengali-composable-pattern): Fix
composition rules for U+09F0 and U+09FE.  Patch from
समीर सिंह Sameer Singh <lumarzeli30@gmail.com>.  (Bug#55303)
2022-05-07 19:34:53 +03:00
Lars Ingebrigtsen
fc0bd6057c Make 'delete-process' into a command
* doc/lispref/processes.texi (Deleting Processes): Document
missing PROCESS value.
* src/process.c (Fdelete_process): Allow calling interactively
(bug#10107).
2022-05-07 18:21:29 +02:00
Eli Zaretskii
2e461ab2dc ; Fix last change of Devanagari composition rules. 2022-05-07 18:10:42 +03:00
Eli Zaretskii
e59c42950f Improve Devanagari character composition rules
* lisp/language/indian.el (devanagari-composable-pattern): Add
rules for Vedic accents.  Suggested by Madhu <enometh@meer.net>.
2022-05-07 17:54:19 +03:00
Stefan Monnier
19d1b9275e (dabbrev-completion): Fix bug#45768
Make `dabbrev-completion` go through `completion-at-point` so that
it interacts correctly with Icomplete.  Export a new
`completion-capf` function while we're at it, since it can be useful
elsewhere.

* lisp/dabbrev.el (dabbrev-capf): New function,
extracted from `dabbrev-completion`.
(dabbrev-completion): Use it.
2022-05-07 10:21:26 -04:00
Po Lu
7e97b33aa6 Clean up some variables in the Haiku code
* src/haikuterm.c: Add comments to some variables and clean up
initializers.
* src/haikuterm.h (haiku_frame_param_handlers): Move here
instead.
2022-05-07 13:39:00 +00:00
समीर सिंह Sameer Singh
987a212eb1 Add support for the Kaithi script
* lisp/language/indian.el ("Kaithi"): New language environment.
Add composition rules for Kaithi.  Add sample text and input
method.
* lisp/international/fontset.el (script-representative-chars)
(setup-default-fontset): Support Kaithi.
* lisp/leim/quail/indian.el ("kaithi"): New input method.

* etc/HELLO: Add a Kaithi greeting.
* etc/NEWS: Announce the new language environment and its
input method.
2022-05-07 16:22:20 +03:00
Lars Ingebrigtsen
f7c56a0d73 Explain better what the interactive prefix does in scroll-down/up
* lisp/window.el (scroll-up-command, scroll-down-command):
* lisp/image-mode.el (image-scroll-up, image-scroll-down):
Actually explain what the interactive prefix does (bug#44503).
2022-05-07 15:05:45 +02:00
Lars Ingebrigtsen
5ac6af4e88 Document the `x' DWIM action in the manual
* doc/emacs/package.texi (Package Menu): Mention the DWIM action
of the `x' command.
2022-05-07 14:42:18 +02:00
Lars Ingebrigtsen
c2a84365d8 Remove tar-mode dabbrev-ignored-buffer-modes
* lisp/dabbrev.el (dabbrev-ignored-buffer-modes): Remove tar-mode
from the default, because it isn't really a binary mode.
2022-05-07 14:35:15 +02:00
Lars Ingebrigtsen
c56070beb6 Make `x' in package-menu-mode more DWIM
* lisp/emacs-lisp/package.el (package-menu-mode): Make the doc
string more helpful.
(package-menu-execute): Make `x' when no files are installed DWIM.
2022-05-07 14:31:42 +02:00
Lars Ingebrigtsen
ccec59f2b2 Improve inferior-python-mode scroll behaviour
* lisp/progmodes/python.el (inferior-python-mode): Use
scroll-convervatively instead of trying to do this with a comint
filter (which produces flickering) (bug#31115).
2022-05-07 13:56:19 +02:00
Lars Ingebrigtsen
7952dcc233 Fix compilation warnings in newer subr tests
* test/lisp/subr-tests.el (test-local-set-state): Fix compilation
warnings.
2022-05-07 13:45:35 +02:00
Lars Ingebrigtsen
8df69384f3 Allow dabbrev to ignore binary buffers
* doc/emacs/abbrevs.texi (Dynamic Abbrevs): Document it.
* lisp/dabbrev.el (dabbrev-ignored-buffer-names)
(dabbrev-ignored-buffer-regexps): Link to it.
(dabbrev-ignored-buffer-modes): New user option (bug#19392).
(dabbrev--filter-buffer-modes): New function.
(dabbrev--select-buffers, dabbrev--make-friend-buffer-list): Use it.
2022-05-07 13:19:57 +02:00
Po Lu
d632c3d7db Fix mouse face dismissal in some widget popups
* src/xterm.c (handle_one_xevent): Accept XINotifyUngrab as
well.
2022-05-07 19:01:42 +08:00
Lars Ingebrigtsen
ea58276462 Allow inhibiting linkification in *Help* buffers
* doc/lispref/help.texi (Keys in Documentation): Document it.
lisp/help-mode.el (help-make-xrefs): Implement a new \+ syntax to
inhibit buttonification.
2022-05-07 12:46:55 +02:00
Lars Ingebrigtsen
e13744780f Make the icomplete-in-buffer doc string document more
* lisp/icomplete.el (icomplete-in-buffer): Note what this variable
does and doesn't do (bug#45768).
2022-05-07 12:15:30 +02:00
Lars Ingebrigtsen
e8488bcc9c Avoid having font locking triggering unnecessary auto-saving
* lisp/subr.el (with-silent-modifications): Use it to restore the
ticks (bug#11303).

* src/buffer.c (Finternal__set_buffer_modified_tick): New function.
2022-05-07 12:05:59 +02:00
Po Lu
2fe4523518 Cache color lookup failures as well
* src/xterm.c (x_parse_color): Cache color lookup failures too.
* src/xterm.h (struct color_name_cache_entry): New field
`valid'.
2022-05-07 17:01:44 +08:00
Po Lu
293a97d61e Fix 32-bit Haiku build
* src/haiku_support.cc (MessageReceived): Fix type of
`old_what'.
2022-05-07 06:19:53 +00:00
Po Lu
a775528d17 Implement `sticky' frame parameter on Haiku
* src/haiku_support.cc (BWindow_set_sticky): New function.
* src/haiku_support.h: Update prototypes.
* src/haikufns.c (haiku_set_sticky, haiku_frame_parm_handlers):
New frame param handler.
2022-05-07 06:18:02 +00:00
Stefan Kangas
d14d86696e Merge from origin/emacs-28
afdf72eeb2 Fix bug#55274
5bfac7c774 Provide reference for OTF tags in the ELisp manual
2022-05-07 06:30:32 +02:00
Stefan Kangas
f7c4a62048 ; Merge from origin/emacs-28
The following commit was skipped:

936009cfe5 Be more resilient towards errors during error handling
2022-05-07 06:30:32 +02:00
Po Lu
43a640c20a Fix race conditions in the Haiku file dialog
* src/haiku_support.cc (current_file_panel_port): Delete
variable.
(class EmacsWindow, MessageReceived): Stop handling file panel
events here.
(class EmacsFilePanelCallbackLooper): New class.
(be_popup_file_dialog): Use a separate looper to handle file
panel events.
2022-05-07 03:20:35 +00:00
Po Lu
76233917c4 Fix freezes with some oddball menus
* src/xmenu.c (x_activate_menubar): Clear flag if dispatching
the event failed.
* src/xterm.c (handle_one_xevent): Check for sensitive
CascadeButton instead of row column type.
2022-05-07 09:34:35 +08:00
Stefan Monnier
95ed231015 (icomplete-exhibit): Fix use in-buffer
Also prefer #' to quote function names and remove redundant :group args.

* lisp/icomplete.el (icomplete-exhibit): Don't presume the completion
field ends at `point-max`.
2022-05-06 16:44:54 -04:00
Lars Ingebrigtsen
499f5f062e Make elisp-mode-syntax-propertize tighter to reflect syntax
* lisp/progmodes/elisp-mode.el (elisp-mode-syntax-propertize): ?\N
and #s are case sensitive, so don't case-fold.  (And adjust regexps.)
2022-05-06 22:13:41 +02:00
Lars Ingebrigtsen
0b3b295776 Make down-list signal an error if called inside a string
* lisp/emacs-lisp/lisp.el (down-list): Signal an error inside a
string (bug#5588).
2022-05-06 21:13:54 +02:00
Juri Linkov
cbd59395bd Add char-folding of double quotes in isearch-fold-quotes-mode (bug#24510)
* lisp/isearch.el (isearch-fold-quotes-mode): Add char-folding of
double quotation marks.

* test/lisp/subr-tests.el (test-local-set-state): Test values
after setting state.
2022-05-06 21:06:47 +03:00
Eric Abrahamsen
c57a6644ef Fix handling of IMAP search strings
* lisp/gnus/gnus-search.el (gnus-search-imap-handle-string): This was
a misunderstanding of what `multibyte-string-p' means.  The check was
actually supposed to be whether the string was non-ascii or not.
2022-05-06 10:15:51 -07:00
Lars Ingebrigtsen
b7e1176323 Further log-view-file-next fix-ups
* doc/emacs/maintaining.texi (VC Change Log): Remove the entries
for commands now removed from most VCs.
* lisp/vc/log-view.el (log-view-mode-menu): Disable menu entries
(bug#14531).
2022-05-06 19:09:29 +02:00
Eric Abrahamsen
6d4cc2358b Don't force Gnus cache usage in nnvirtual
* lisp/gnus/nnvirtual.el (nnvirtual-retrieve-headers): We're not sure
why this was happening, but it shouldn't be necessary. Simply calling
`gnus-retrieve-headers' directly will use the cache if the user has
configured it.
2022-05-06 09:43:59 -07:00
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