]> git.eshelyaron.com Git - emacs.git/log
emacs.git
2 years agoImprove display of relief rectangles on NS
Po Lu [Tue, 10 May 2022 13:34:19 +0000 (21:34 +0800)]
Improve display of relief rectangles on NS

* src/nsterm.m (ns_draw_relief): Respect cursor color and draw
corners like X.

2 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Tue, 10 May 2022 13:13:04 +0000 (16:13 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

2 years ago; * lisp/language/indian.el: Improve composition rules. (Bug#55341)
समीर सिंह Sameer Singh [Mon, 9 May 2022 19:19:58 +0000 (00:49 +0530)]
; * lisp/language/indian.el: Improve composition rules.  (Bug#55341)

2 years agoRespect `alpha-background' drawing relief corners
Po Lu [Tue, 10 May 2022 13:07:53 +0000 (21:07 +0800)]
Respect `alpha-background' drawing relief corners

* src/xterm.c (x_draw_relief_rect): Respect background alpha for
corner rects.

2 years ago; Fix recent documentation changes
Eli Zaretskii [Tue, 10 May 2022 13:06:10 +0000 (16:06 +0300)]
; Fix recent documentation changes

* src/fileio.c (Fdo_auto_save):
* src/buffer.c (Fbuffer_modified_p, Frestore_buffer_modified_p):
* doc/lispref/buffers.texi (Buffer Modification): Improve
documentation of 'do-auto-save', 'buffer-modified-p' and
'restore-buffer-modified-p'.

2 years agoMake `apropos-variable' include values in output
Lars Ingebrigtsen [Tue, 10 May 2022 13:01:00 +0000 (15:01 +0200)]
Make `apropos-variable' include values in output

* lisp/apropos.el (apropos-print): Include variable values in the
output (bug#13842).

2 years ago; * etc/NEWS: Clarify recently-added entries.
Eli Zaretskii [Tue, 10 May 2022 12:53:51 +0000 (15:53 +0300)]
; * etc/NEWS: Clarify recently-added entries.

2 years ago; * doc/emacs/building.texi (Compilation Mode): Fix typo.
Eli Zaretskii [Tue, 10 May 2022 12:47:06 +0000 (15:47 +0300)]
; * doc/emacs/building.texi (Compilation Mode): Fix typo.

2 years agoFix display of depressed buttons
Po Lu [Tue, 10 May 2022 09:38:53 +0000 (17:38 +0800)]
Fix display of depressed buttons

* src/xterm.c (x_draw_relief_rect): Fix typo.

2 years agoImprove relief rect handling on Haiku
Po Lu [Tue, 10 May 2022 09:00:39 +0000 (09:00 +0000)]
Improve relief rect handling on Haiku

* haikuterm.c (haiku_calculate_relief_colors): Calculate
backgrounds for image glyphs like on X.
(haiku_draw_relief_rect): Remove extra parameter.
(haiku_draw_string_box, haiku_draw_image_relief): Adjust
accordingly.

2 years agoFix X11 relief background clearning when hwidth is larger than vwidth
Po Lu [Tue, 10 May 2022 08:50:10 +0000 (16:50 +0800)]
Fix X11 relief background clearning when hwidth is larger than vwidth

* src/xterm.c (x_fill_triangle, x_make_point, x_inside_rect_p):
New functions.
(x_draw_relief_rect): Complete rewrite.  Use more sensible
primitives.

2 years agoImprove display of reliefs on NS
Po Lu [Tue, 10 May 2022 08:01:00 +0000 (16:01 +0800)]
Improve display of reliefs on NS

* src/nsfont.m (nsfont_draw): Don't compensate for left box
twice.
* src/nsterm.m (ns_draw_relief): Draw outer edges of box like on
X.

2 years agoHandle deletion of opacity property too
Po Lu [Tue, 10 May 2022 06:40:26 +0000 (14:40 +0800)]
Handle deletion of opacity property too

* src/xterm.c (handle_one_xevent): Clear `alpha' frame parameter
when opacity prop is gone or invalid.

2 years agoWork around some broken programs when reading opacity prop
Po Lu [Tue, 10 May 2022 06:38:22 +0000 (14:38 +0800)]
Work around some broken programs when reading opacity prop

* src/xterm.c (handle_one_xevent): Accept some other types that
property is set to by thoughtless programs.

2 years agoFix bibtex-map-entries regression at bobp
Lars Ingebrigtsen [Tue, 10 May 2022 05:05:43 +0000 (07:05 +0200)]
Fix bibtex-map-entries regression at bobp

* lisp/textmodes/bibtex.el (bibtex-map-entries): Fix regression
introduced by c32e8b33f (bug#55342) -- don't fail when the first
entry is at bobp.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Tue, 10 May 2022 04:30:34 +0000 (06:30 +0200)]
Merge from origin/emacs-28

7b4bdf7b9b Remove the AUCTeX subsection from MS-Windows FAQ
d2a5631552 Update AUCTeX FAQ entry
177718bc6d Update string-to-number documentation to bignum Emacs
74cc3b525f Fix doc string references to tags-loop-continue

2 years agoSimplify Haiku selection code
Po Lu [Tue, 10 May 2022 04:11:32 +0000 (04:11 +0000)]
Simplify Haiku selection code

* src/haiku_select.cc (get_clipboard_object): New function.
(BClipboard_find_data, BClipboard_get_targets, BClipboard_set_data)
(BClipboard_find_system_data)
(BClipboard_find_primary_selection_data)
(BClipboard_find_secondary_selection_data)
(BClipboard_set_system_data, BClipboard_set_primary_selection_data)
(BClipboard_set_secondary_selection_data, BClipboard_free_data)
(BClipboard_system_targets, BClipboard_primary_targets)
(BClipboard_secondary_targets): Delete functions.
(be_find_clipboard_data_1, be_set_clipboard_data_1)
(be_get_clipboard_targets_1, be_find_clipboard_data)
(be_set_clipboard_data, be_get_clipboard_targets): New
functions.
(be_lock_clipboard_message, be_unlock_clipboard): Use
`get_clipboard_object' to get clipboard from ID.

* src/haikuselect.c (haiku_get_clipboard_name): New function.
(Fhaiku_selection_data, Fhaiku_selection_put)
(Fhaiku_selection_owner_p): Adjust to use new simplified
functions.

* src/haikuselect.h: Update prototypes.

2 years agoAdd more compilation-auto-jump-to-first-error options
Lars Ingebrigtsen [Tue, 10 May 2022 03:58:33 +0000 (05:58 +0200)]
Add more compilation-auto-jump-to-first-error options

* doc/emacs/building.texi (Compilation Mode): Document it.
* lisp/progmodes/compile.el
(compilation-auto-jump-to-first-error): Extend type.
(compilation--file-known-p): New function.
(compilation-auto-jump): Use it to support the new values
(bug#8228).
(compilation-find-file-1): Factored out into own function.
(compilation-find-file): Factored out from here.

2 years agoMake dabbrev use the buffer's file name as a source for completions
Lars Ingebrigtsen [Tue, 10 May 2022 03:09:15 +0000 (05:09 +0200)]
Make dabbrev use the buffer's file name as a source for completions

* lisp/dabbrev.el (dabbrev--find-expansion): Include the buffer's
file name in the completions (bug#8163).

2 years agoMake imenu find defalias entries
Lars Ingebrigtsen [Tue, 10 May 2022 02:41:31 +0000 (04:41 +0200)]
Make imenu find defalias entries

* lisp/emacs-lisp/lisp-mode.el (lisp-imenu-generic-expression):
Also find defalias (bug#7855).

2 years agoSimplify XDND code
Po Lu [Tue, 10 May 2022 02:38:08 +0000 (10:38 +0800)]
Simplify XDND code

* src/xfns.c (Fx_begin_drag): Use SAFE_ALLOCA_STRING and encode
strings in the right coding system.

2 years agoFactor out *scratch* initialization
Sean Whitton [Thu, 5 May 2022 20:03:06 +0000 (13:03 -0700)]
Factor out *scratch* initialization

* lisp/simple.el (get-scratch-buffer-create): New function, factored
out of scratch-buffer, and additionally clearing the modification flag
and calling substitute-command-keys (bug#55257).
(scratch-buffer):
* lisp/server.el (server-execute):
* lisp/startup.el (normal-no-mouse-startup-screen, command-line-1):
* lisp/window.el (last-buffer, window-normalize-buffer-to-switch-to):
* src/buffer.c (Fother_buffer, other_buffer_safely): Use it.
(syms_of_buffer): Add Qget_scratch_buffer_create.
* lisp/startup.el (startup--get-buffer-create-scratch): Delete
now-unused function.
* doc/lispref/os.texi (Summary: Sequence of Actions at Startup):
* NEWS (Incompatible changes in Emacs 29.1): Document the change.

2 years agoAdd NEWS entries for recent autosaved buffer modification status
Lars Ingebrigtsen [Tue, 10 May 2022 01:46:34 +0000 (03:46 +0200)]
Add NEWS entries for recent autosaved buffer modification status

* doc/lispref/buffers.texi (Buffer Modification): Note 'autosaved'
value.

2 years agoReimplement recent with-silent-modifications auto-save changes
Lars Ingebrigtsen [Tue, 10 May 2022 01:38:01 +0000 (03:38 +0200)]
Reimplement recent with-silent-modifications auto-save changes

* doc/lispref/buffers.texi (Buffer Modification): Document
buffer-modified-p returning `autosaved'.
* lisp/subr.el (with-silent-modifications): Use
restore-buffer-modified-p instead of altering the buffer modiff
(since this has other side effects like not updating after async
`display' changes.

* src/buffer.c (Fbuffer_modified_p): Allow returning whether the
buffer has been autosaved after changes.
(Frestore_buffer_modified_p): Allow adjusting whether the buffer
has been autosaved after changes.

* src/fileio.c (Fdo_auto_save): Refill the doc string.

2 years agoFix syntax descriptor comparison in python-indent-region
Andrea Corallo [Mon, 9 May 2022 13:53:45 +0000 (15:53 +0200)]
Fix syntax descriptor comparison in python-indent-region

* lisp/progmodes/python.el (python-indent-region): Compare raw
syntax descriptors with equal (bug#45328) (because comparing them with
eq will always be false).

2 years agoUpdate alpha frame parameter when the window manager changes it
Po Lu [Tue, 10 May 2022 01:32:59 +0000 (09:32 +0800)]
Update alpha frame parameter when the window manager changes it

* src/xfns.c (x_set_alpha): New function.  Set
`alpha_identical_p' flag.
(x_frame_parm_handlers): Use it to handle `alpha' instead.

* src/xterm.c (x_set_frame_alpha): Make tests against current
alpha safer.
(handle_one_xevent): Set frame alpha when alpha property
changes.
* src/xterm.h (struct x_output): New flag `alpha_identical_p'.

2 years ago; * src/xdisp.c (mark_window_display_accurate_1): Clear vscroll flag.
Po Lu [Tue, 10 May 2022 00:48:36 +0000 (08:48 +0800)]
; * src/xdisp.c (mark_window_display_accurate_1): Clear vscroll flag.

2 years ago; * admin/MAINTAINERS: Remove myself as NS port maintainer.
Alan Third [Mon, 9 May 2022 20:56:42 +0000 (21:56 +0100)]
; * admin/MAINTAINERS: Remove myself as NS port maintainer.

2 years agoAdd support for the Sharada script
समीर सिंह Sameer Singh [Sun, 8 May 2022 22:52:57 +0000 (04:22 +0530)]
Add support for the Sharada script

* lisp/language/indian.el ("Sharada"): New language environment.
Add composition rules for Sharada.  Add sample text and input
method.
* lisp/international/fontset.el (script-representative-chars)
(setup-default-fontset): Support Sharada.
* lisp/leim/quail/indian.el ("sharada"): New input method.

* etc/HELLO: Add a Sharada greeting.
* etc/NEWS: Announce the new language environment and its
input method.  (Bug#55328)

2 years agoImprove Tramp tests
Michael Albinus [Mon, 9 May 2022 18:10:10 +0000 (20:10 +0200)]
Improve Tramp tests

* lisp/net/tramp-smb.el (tramp-smb-handle-copy-file):
Handle compressed files.

* lisp/net/tramp.el (tramp-skeleton-write-region):
Handle encrypted VISIT file.
(tramp-get-process-attributes): Add backward compatibility.

* test/lisp/net/tramp-tests.el (with-connection-local-variables):
Declare.
(auto-save-file-name-transforms): Don't declare.
(ert-resource-directory-format)
(ert-resource-directory-trim-left-regexp)
(ert-resource-directory-trim-right-regexp, ert-resource-directory)
(ert-resource-file): Define if they don't exist.
(tramp-test10-write-region-file-precious-flag)
(tramp-test10-write-region-other-file-name-handler)
(tramp-test31-interrupt-process, tramp-test31-signal-process)
(tramp--test-async-shell-command)
(tramp-test34-connection-local-variables)
(tramp-test39-make-lock-file-name)
(tramp-test39-detect-external-change): Extend tests.

2 years agoRemove the AUCTeX subsection from MS-Windows FAQ
Eli Zaretskii [Mon, 9 May 2022 13:37:49 +0000 (16:37 +0300)]
Remove the AUCTeX subsection from MS-Windows FAQ

* doc/misc/efaq-w32.texi (AUCTeX): Remove the subsection, it is no
longer useful.  (Bug#55330)

2 years ago; Fix documentation of completion options
Eli Zaretskii [Mon, 9 May 2022 13:28:22 +0000 (16:28 +0300)]
; Fix documentation of completion options

* doc/emacs/mini.texi (Completion Commands, Completion Options):
Improve and clarify the wording.

2 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Mon, 9 May 2022 13:08:56 +0000 (16:08 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

2 years ago; * lisp/textmodes/table.el (table-latex-environment): Doc fix.
Eli Zaretskii [Mon, 9 May 2022 13:08:10 +0000 (16:08 +0300)]
; * lisp/textmodes/table.el (table-latex-environment): Doc fix.

2 years agoShorten note about didactic space in TUTORIAL.el_GR (bug#55332)
Protesilaos Stavrou [Mon, 9 May 2022 07:38:23 +0000 (10:38 +0300)]
Shorten note about didactic space in TUTORIAL.el_GR (bug#55332)

2 years ago; Fix recent changes in regexp documentation
Eli Zaretskii [Mon, 9 May 2022 13:02:58 +0000 (16:02 +0300)]
; Fix recent changes in regexp documentation

* doc/lispref/searching.texi (Regexp Backslash):
* doc/emacs/search.texi (Regexps): Fix typo and wording.

2 years ago* src/haikuterm.c (haiku_draw_fringe_bitmap): Set stipple flag.
Po Lu [Mon, 9 May 2022 12:45:05 +0000 (12:45 +0000)]
* src/haikuterm.c (haiku_draw_fringe_bitmap): Set stipple flag.

2 years ago; * lisp/vc/ediff-util.el (ediff-show-diff-output): Doc fix.
Eli Zaretskii [Mon, 9 May 2022 12:45:08 +0000 (15:45 +0300)]
; * lisp/vc/ediff-util.el (ediff-show-diff-output): Doc fix.

2 years agoFix reading faces with a default value that is a symbol
Po Lu [Mon, 9 May 2022 12:23:20 +0000 (20:23 +0800)]
Fix reading faces with a default value that is a symbol

* lisp/faces.el (read-face-name): Don't try to intern face if it
is already a symbol.

2 years agoFix scroll optimizations being enabled for some rows with stipples
Po Lu [Mon, 9 May 2022 12:15:41 +0000 (20:15 +0800)]
Fix scroll optimizations being enabled for some rows with stipples

* src/dispnew.c (update_text_area): New parameter `partial_p'.
Set it if not enough glyphs were drawn to determine if a row
doesn't have a stipple.
(update_window_line): Preserve current_row->stipple_p in that
case, after making the desired row current.

* src/xterm.c (x_draw_fringe_bitmap): Set row->stipple.

2 years agoMake ediff-show-diff-output work better on unsaved buffers
Lars Ingebrigtsen [Mon, 9 May 2022 12:06:24 +0000 (14:06 +0200)]
Make ediff-show-diff-output work better on unsaved buffers

* lisp/vc/ediff-util.el (ediff-show-diff-output): Make the `D'
command work on unsaved buffers without a prefix (bug#45016).

2 years agoAllow non-interactive use of eldoc-doc-buffer
João Távora [Mon, 9 May 2022 11:29:59 +0000 (12:29 +0100)]
Allow non-interactive use of eldoc-doc-buffer

* lisp/emacs-lisp/eldoc.el (eldoc-doc-buffer): Allow
non-interactive use.
(Version): Bump minor.

2 years agoCopy edits for the regexp sections in the manuals
Lars Ingebrigtsen [Mon, 9 May 2022 11:38:40 +0000 (13:38 +0200)]
Copy edits for the regexp sections in the manuals

* doc/lispref/searching.texi (Regexp Backslash):
* doc/emacs/search.texi (Regexps, Regexp Backslash): Copy edits
from Jay Bingham (bug#41970).

2 years ago; * src/haikuterm.c (haiku_draw_underwave): Fix default scale.
Po Lu [Mon, 9 May 2022 11:21:15 +0000 (11:21 +0000)]
; * src/haikuterm.c (haiku_draw_underwave): Fix default scale.

2 years agoRespect display scale factor drawing underwaves on Haiku
Po Lu [Mon, 9 May 2022 11:10:13 +0000 (11:10 +0000)]
Respect display scale factor drawing underwaves on Haiku

* src/haikuterm.c (haiku_get_scale_factor): New function.
(haiku_draw_underwave): Apply said factor.

2 years agoAdd meta navigation keys to outline-minor-mode-cycle-map
Lars Ingebrigtsen [Mon, 9 May 2022 10:37:11 +0000 (12:37 +0200)]
Add meta navigation keys to outline-minor-mode-cycle-map

* lisp/outline.el (outline-minor-mode-cycle-map): Add meta
navigate keys (bug#41129).

2 years agoUpdate AUCTeX FAQ entry
Arash Esbati [Mon, 9 May 2022 10:10:10 +0000 (12:10 +0200)]
Update AUCTeX FAQ entry

* doc/misc/efaq-w32.texi (AUCTeX): AUCTeX project isn't providing
pre-compiled versions for Windows anymore (bug#55330).

2 years agoAdd new user option table-latex-environment
Vladimir Nikishkin [Mon, 9 May 2022 10:03:33 +0000 (12:03 +0200)]
Add new user option table-latex-environment

* lisp/textmodes/table.el (table-latex-environment): New user
option (bug#55333).
(table--generate-source-prologue): Use it.

2 years agoUpdate string-to-number documentation to bignum Emacs
Lars Ingebrigtsen [Mon, 9 May 2022 09:57:46 +0000 (11:57 +0200)]
Update string-to-number documentation to bignum Emacs

* doc/lispref/strings.texi (String Conversion): string-to-number
no longer converts integers to floating point numbers (bug#55334).

2 years agoFix doc string references to tags-loop-continue
Lars Ingebrigtsen [Mon, 9 May 2022 09:46:56 +0000 (11:46 +0200)]
Fix doc string references to tags-loop-continue

* lisp/vc/vc-dir.el (vc-dir-search, vc-dir-query-replace-regexp):
Fix reference to obsolete tags-loop-continue (bug#55311).

2 years agoFix file-based launching on Haiku
Po Lu [Mon, 9 May 2022 08:22:03 +0000 (08:22 +0000)]
Fix file-based launching on Haiku

* src/haikuselect.c (Fhaiku_roster_launch): Canonicalize file
names before using them.

2 years agoUse default external browser by default on Haiku
Po Lu [Mon, 9 May 2022 07:54:54 +0000 (07:54 +0000)]
Use default external browser by default on Haiku

* lisp/net/browse-url.el (browse-url-default-browser): Use that
by default on Haiku.
(browse-url-default-haiku-browser): New function.
* src/haiku_support.cc (be_roster_launch):
* src/haiku_support.h: New function.  Update prototypes.
* src/haikuselect.c (haiku_message_to_lisp): Encode and decode
files correctly.
(haiku_lisp_to_message): Encode and decode files correctly.
(Fhaiku_roster_launch): New function.
(syms_of_haikuselect): Update defsubrs.

2 years ago; Merge from origin/emacs-28
Stefan Kangas [Mon, 9 May 2022 04:30:29 +0000 (06:30 +0200)]
; Merge from origin/emacs-28

The following commit was skipped:

d24ea263e2 dired-do-query-replace-regexp doc string fix

2 years agoMerge from origin/emacs-28
Stefan Kangas [Mon, 9 May 2022 04:30:28 +0000 (06:30 +0200)]
Merge from origin/emacs-28

1d012e0a62 Linux console: don't translate ESC TAB to `backtab' in inp...

2 years ago; Merge from origin/emacs-28
Stefan Kangas [Mon, 9 May 2022 04:30:28 +0000 (06:30 +0200)]
; Merge from origin/emacs-28

The following commit was skipped:

e683b08b3f Handle changed scp protocol in Tramp, don't merge

2 years agoFix stipple bitmap caching on Haiku
Po Lu [Mon, 9 May 2022 02:52:16 +0000 (02:52 +0000)]
Fix stipple bitmap caching on Haiku

* src/image.c (image_create_bitmap_from_file): Set file name on
the bitmap rec on Haiku.

2 years agoAllow disabling Motif drag protocol
Po Lu [Mon, 9 May 2022 02:13:43 +0000 (10:13 +0800)]
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'.

2 years agoAllow precision-scrolling nonselected windows when the minibuffer is resized
Po Lu [Mon, 9 May 2022 01:37:58 +0000 (09:37 +0800)]
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)

2 years agoFix race conditions in handling of unsupported drops on X
Po Lu [Mon, 9 May 2022 01:17:28 +0000 (09:17 +0800)]
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.

2 years agoremember-notes: Use pop-to-buffer-same-window not switch-to-buffer
Sean Whitton [Sun, 8 May 2022 20:45:35 +0000 (13:45 -0700)]
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.

2 years agoMinor documentation improvements for completions commands and options
Juri Linkov [Sun, 8 May 2022 18:01:34 +0000 (21:01 +0300)]
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.

2 years ago; Fix typos and wording in a doc string
Eli Zaretskii [Sun, 8 May 2022 16:08:34 +0000 (19:08 +0300)]
; Fix typos and wording in a doc string

* lisp/textmodes/pixel-fill.el (pixel-fill-width): Fix doc
string.  (Bug#55318)

2 years agoAdd Greek translation of the tutorial
Protesilaos Stavrou [Sun, 8 May 2022 14:27:48 +0000 (17:27 +0300)]
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.

2 years ago; * etc/HELLO: Remove empty line.
Eli Zaretskii [Sun, 8 May 2022 14:37:32 +0000 (17:37 +0300)]
; * etc/HELLO: Remove empty line.

2 years agoAdd support for the Tirhuta script
समीर सिंह Sameer Singh [Sun, 8 May 2022 12:12:35 +0000 (17:42 +0530)]
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.

2 years ago* lisp/emacs-lisp/oclosure.el (oclosure-define): Fix empty case
Stefan Monnier [Sun, 8 May 2022 14:33:49 +0000 (10:33 -0400)]
* lisp/emacs-lisp/oclosure.el (oclosure-define): Fix empty case

2 years agoDon't hang on trying to rename FIFOs between file systems
Lars Ingebrigtsen [Sun, 8 May 2022 13:41:46 +0000 (15:41 +0200)]
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).

2 years agodired-do-query-replace-regexp doc string fix
Visuwesh [Sun, 8 May 2022 11:17:34 +0000 (13:17 +0200)]
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 4c505203f9171886f47638779326e257a95a1d79)

2 years agoFix display of fringes with stipples on X
Po Lu [Sun, 8 May 2022 13:28:28 +0000 (21:28 +0800)]
Fix display of fringes with stipples on X

* src/xterm.c (x_draw_fringe_bitmap): Set fill style and use
fill function correctly.

2 years agoFix display of fringes with stipples on Haiku
Po Lu [Sun, 8 May 2022 13:20:43 +0000 (13:20 +0000)]
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.

2 years agoCC Mode: Fix bug in c-parse-state. Fixes bug #55181.
Alan Mackenzie [Sun, 8 May 2022 13:14:14 +0000 (13:14 +0000)]
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.

2 years agoSet stipple flag on PGTK as well
Po Lu [Sun, 8 May 2022 13:07:44 +0000 (21:07 +0800)]
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.

2 years agoAllow term-mode to send function keys to the underlying shell
Lars Ingebrigtsen [Sun, 8 May 2022 13:03:59 +0000 (15:03 +0200)]
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).

2 years agoSet stipple flags on Haiku as well
Po Lu [Sun, 8 May 2022 13:02:00 +0000 (13:02 +0000)]
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.)

2 years agoDisable scrolling optimizations when a stipple is present
Po Lu [Sun, 8 May 2022 12:48:42 +0000 (20:48 +0800)]
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.

2 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Po Lu [Sun, 8 May 2022 11:43:13 +0000 (19:43 +0800)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

2 years agoLinux console: don't translate ESC TAB to `backtab' in input-decode-map.
Alan Mackenzie [Sun, 8 May 2022 11:39:45 +0000 (11:39 +0000)]
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.

2 years agodired-do-query-replace-regexp doc string fix
Visuwesh [Sun, 8 May 2022 11:17:34 +0000 (13:17 +0200)]
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'.

2 years agoFix crashes on ordinary menus on macOS
Po Lu [Sun, 8 May 2022 11:14:57 +0000 (19:14 +0800)]
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.

2 years agoFix bug in `pixel-scroll-precision-mode' on nonselected windows
Po Lu [Sun, 8 May 2022 11:02:06 +0000 (19:02 +0800)]
Fix bug in `pixel-scroll-precision-mode' on nonselected windows

* src/window.c (Fset_window_vscroll): Mark window for redisplay.
(bug#55299)

2 years agoHandle changed scp protocol in Tramp
Michael Albinus [Sun, 8 May 2022 09:51:59 +0000 (11:51 +0200)]
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.

2 years agoHandle changed scp protocol in Tramp, don't merge
Michael Albinus [Sun, 8 May 2022 09:43:19 +0000 (11:43 +0200)]
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.

2 years agoImprove handling of invisible cursor alloc failures
Po Lu [Sun, 8 May 2022 06:33:34 +0000 (14:33 +0800)]
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.

2 years agoFix file-based stipple on NS
Po Lu [Sun, 8 May 2022 06:27:13 +0000 (14:27 +0800)]
Fix file-based stipple on NS

* src/image.c (image_create_bitmap_from_file) [HAVE_NS]: Fix
loading XBM data from file.

2 years agoFix selection dialog display on MS-Windows
Eli Zaretskii [Sun, 8 May 2022 06:24:29 +0000 (09:24 +0300)]
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)

2 years agoFix display of hollow box cursor on NS
Po Lu [Sun, 8 May 2022 05:44:28 +0000 (13:44 +0800)]
Fix display of hollow box cursor on NS

* src/nsterm.m (ns_draw_window_cursor): Fix verbatim
translations from X.

2 years agoFix setting stipple via `set-face-stipple'
Po Lu [Sun, 8 May 2022 05:28:11 +0000 (05:28 +0000)]
Fix setting stipple via `set-face-stipple'

* lisp/faces.el (face-valid-attribute-values): Return results
for `:stipple' in correct format.

2 years agoImplement stipples for stretch glyphs
Po Lu [Sun, 8 May 2022 05:09:24 +0000 (05:09 +0000)]
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.

2 years agoFully implement stipples for text on Haiku
Po Lu [Sun, 8 May 2022 04:42:11 +0000 (04:42 +0000)]
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.

2 years agoImplement bitmap loading for faces on Haiku
Po Lu [Sun, 8 May 2022 03:08:42 +0000 (03:08 +0000)]
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.

2 years agoUse correct event structures to fetch time on XI2
Po Lu [Sun, 8 May 2022 01:06:40 +0000 (09:06 +0800)]
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.

2 years ago; Pacify some --without-x byte-compiler warnings.
Basil L. Contovounesios [Sat, 7 May 2022 17:17:23 +0000 (20:17 +0300)]
; Pacify some --without-x byte-compiler warnings.

2 years ago* src/fns.c: Fix IDs in comments to match code.
Paul Eggert [Sat, 7 May 2022 16:48:27 +0000 (09:48 -0700)]
* src/fns.c: Fix IDs in comments to match code.

2 years agoFix Bengali composition rules
Eli Zaretskii [Sat, 7 May 2022 16:34:53 +0000 (19:34 +0300)]
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)

2 years agoMake 'delete-process' into a command
Lars Ingebrigtsen [Sat, 7 May 2022 16:21:29 +0000 (18:21 +0200)]
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).

2 years ago; Fix last change of Devanagari composition rules.
Eli Zaretskii [Sat, 7 May 2022 15:10:42 +0000 (18:10 +0300)]
; Fix last change of Devanagari composition rules.

2 years agoImprove Devanagari character composition rules
Eli Zaretskii [Sat, 7 May 2022 14:54:19 +0000 (17:54 +0300)]
Improve Devanagari character composition rules

* lisp/language/indian.el (devanagari-composable-pattern): Add
rules for Vedic accents.  Suggested by Madhu <enometh@meer.net>.

2 years ago(dabbrev-completion): Fix bug#45768
Stefan Monnier [Sat, 7 May 2022 14:21:26 +0000 (10:21 -0400)]
(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.

2 years agoClean up some variables in the Haiku code
Po Lu [Sat, 7 May 2022 13:38:42 +0000 (13:38 +0000)]
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.

2 years agoAdd support for the Kaithi script
समीर सिंह Sameer Singh [Sat, 7 May 2022 12:25:25 +0000 (17:55 +0530)]
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.