1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-06 11:55:48 +00:00
Commit Graph

156567 Commits

Author SHA1 Message Date
Stefan Kangas
364e3d7a4f ; Merge from origin/emacs-28
The following commit was skipped:

d24ea263e2 dired-do-query-replace-regexp doc string fix
2022-05-09 06:30:29 +02:00
Stefan Kangas
8343c2d5f6 Merge from origin/emacs-28
1d012e0a62 Linux console: don't translate ESC TAB to `backtab' in inp...
2022-05-09 06:30:28 +02:00
Stefan Kangas
1a21535725 ; Merge from origin/emacs-28
The following commit was skipped:

e683b08b3f Handle changed scp protocol in Tramp, don't merge
2022-05-09 06:30:28 +02:00
Po Lu
d8a4782310 Fix stipple bitmap caching on Haiku
* src/image.c (image_create_bitmap_from_file): Set file name on
the bitmap rec on Haiku.
2022-05-09 02:52:16 +00:00
Po Lu
6ec29d0566 Allow disabling Motif drag protocol
* lisp/cus-start.el (standard): Add new variable.
* src/xterm.c (x_dnd_update_state, handle_one_xevent): Respect
new variable.
(syms_of_xterm): New variable `x-dnd-disable-motif-drag'.
2022-05-09 10:13:43 +08:00
Po Lu
fd8eaa72a6 Allow precision-scrolling nonselected windows when the minibuffer is resized
* doc/lispref/windows.texi (Vertical Scrolling): Document new
`preserve-vscroll-p' parameter of `set-window-vscroll'.
* etc/NEWS: Announce new parameter.

* lisp/pixel-scroll.el (pixel-scroll-precision-scroll-down-page)
(pixel-scroll-precision-scroll-up-page): Use that parameter when
setting the vscroll.

* src/window.c (window_scroll_pixel_based, Fset_window_vscroll):
Adjust for new parameter.
* src/window.h (struct window): New flag `preserve_vscroll_p'.

* src/xdisp.c (redisplay_window): Preserve the vscroll inside
force_start on frozen windows with that flag set.  (bug#55312)
2022-05-09 09:37:58 +08:00
Po Lu
3d846efb85 Fix race conditions in handling of unsupported drops on X
* lisp/x-dnd.el (x-dnd-handle-unsupported-drop): Adjust for new
parameters.

* src/keyboard.c (kbd_buffer, kbd_fetch_ptr, kbd_store_ptr):
Export variables.
(kbd_buffer_get_event): Ignore already handled unsupported
drops.
* src/keyboard.h: Update prototypes.

* src/termhooks.h (enum event_kind): Document meaning of
`modifiers' in UNSUPPORTED_DROP_EVENTs.

* src/xterm.c (x_dnd_send_unsupported_drop): Set event modifiers
to current level.
(x_toggle_visible_pointer): Fix fixes fallback.
(x_dnd_begin_drag_and_drop): Handle UNSUPPORTED_DROP_EVENTs
already in the keyboard buffer before starting DND.
(syms_of_xterm): Give timestamp to unsupported drop function.

* src/xterm.h: Update prototypes.
2022-05-09 09:17:28 +08:00
Sean Whitton
8d788a195f remember-notes: Use pop-to-buffer-same-window not switch-to-buffer
* lisp/textmodes/remember.el (remember-notes): Use
pop-to-buffer-same-window rather than switch-to-buffer, to allow
customization via display-buffer-alist.
2022-05-08 13:45:35 -07:00
Juri Linkov
21ef29d4b1 Minor documentation improvements for completions commands and options
* doc/emacs/mini.texi (Completion Commands): Mention prefix argument
of choose-completion.
(Completion Options): Improve documentation of completions-format
and completions-sort.
2022-05-08 21:01:34 +03:00
Eli Zaretskii
278b18a460 ; Fix typos and wording in a doc string
* lisp/textmodes/pixel-fill.el (pixel-fill-width): Fix doc
string.  (Bug#55318)
2022-05-08 19:08:34 +03:00
Protesilaos Stavrou
fad31cebe1 Add Greek translation of the tutorial
* etc/tutorials/TUTORIAL.el_GR: Add tutorial in Greek.  It is a
faithful translation of the TUTORIAL.
* etc/tutorials/TUTORIAL.translators (Author): Mention myself as
the author and the maintainer.
* etc/NEWS: Announce it.  (Bug#55314)

* lisp/language/greek.el (set-language-info-alist): Link to the
tutorial and include sample text.
2022-05-08 18:48:17 +03:00
Eli Zaretskii
e8ed4317e8 ; * etc/HELLO: Remove empty line. 2022-05-08 17:37:32 +03:00
समीर सिंह Sameer Singh
82f1f198c6 Add support for the Tirhuta script
* lisp/language/indian.el ("Tirhuta"): New language environment.
Add composition rules for Tirhuta.  Add sample text and input
method.
* lisp/international/fontset.el (script-representative-chars)
(setup-default-fontset): Support Tirhuta.
* lisp/leim/quail/indian.el ("tirhuta"): New input method.

* etc/HELLO: Add a Tirhuta greeting.
* etc/NEWS: Announce the new language environment and its
input method.
2022-05-08 17:35:29 +03:00
Stefan Monnier
b03d6265cd * lisp/emacs-lisp/oclosure.el (oclosure-define): Fix empty case 2022-05-08 10:33:49 -04:00
Lars Ingebrigtsen
7546179a01 Don't hang on trying to rename FIFOs between file systems
* src/fileio.c (Frename_file): Don't hang on trying to move FIFOs
(bug#34069).
2022-05-08 16:13:04 +02:00
Visuwesh
d24ea263e2 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'.  (Bug#55311)

(cherry picked from commit 4c505203f9)
2022-05-08 16:49:16 +03:00
Po Lu
d6e316db72 Fix display of fringes with stipples on X
* src/xterm.c (x_draw_fringe_bitmap): Set fill style and use
fill function correctly.
2022-05-08 21:28:28 +08:00
Po Lu
4d8527e580 Fix display of fringes with stipples on Haiku
* haikuterm.c (haiku_after_update_window_line): Fix coding
style.
(haiku_draw_fringe_bitmap): Handle display of stipples if
present.
2022-05-08 13:22:03 +00:00
Alan Mackenzie
f93c94996c CC Mode: Fix bug in c-parse-state. Fixes bug #55181.
* lisp/progmodes/cc-engine.el (c-state-cache-lower-good-pos): When in a
literal, return the start of that literal as a "good pos", not the parameter
POS.
2022-05-08 13:16:46 +00:00
Po Lu
c7bd76a3f0 Set stipple flag on PGTK as well
* pgtkterm.c (pgtk_draw_glyph_string_background):
(pgtk_draw_glyph_string): Set stipple flag on string row.
(pgtk_draw_fringe_bitmap):
(pgtk_defined_color): Fix coding style.
2022-05-08 21:10:45 +08:00
Lars Ingebrigtsen
33141b51c3 Allow term-mode to send function keys to the underlying shell
* lisp/term.el (term-bind-function-keys): New user option.
(term-raw-map): Bind f keys.
(term-send-function-key): Send the function key to the underlying
shell (bug#29920).
2022-05-08 15:04:36 +02:00
Po Lu
4b20ae908b Set stipple flags on Haiku as well
* src/haikuterm.c (haiku_draw_glyph_string): Set stipple flag
where stipples are actually drawn.  (This is different from X.)
2022-05-08 13:02:00 +00:00
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
Alan Mackenzie
1d012e0a62 Linux console: don't translate ESC TAB to `backtab' in input-decode-map.
This translation happened after the terminfo entry for <shift>TAB in the linux
section was changed to kcbt=\E^I in ncurses version 6.3.

* lisp/term/linux.el (terminal-init-linux): Add a define-key form to remove
the entry for "\e\t" from input-decode-map.

* etc/PROBLEMS: Add a new section under "character terminals" about S-TAB
wrongly doing the same thing as M-TAB, giving tips about amending the Linux
keyboard layout.
2022-05-08 11:39:45 +00: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
Michael Albinus
e683b08b3f Handle changed scp protocol in Tramp, don't merge
* 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-methods) <scp, scpx>: Use "%y".

* lisp/net/tramp.el (tramp-methods): Adapt docstring.
2022-05-08 11:43:19 +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