1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-18 17:01:01 -08:00
Commit graph

156312 commits

Author SHA1 Message Date
Eli Zaretskii
9beb04dd07 ; * doc/emacs/building.texi (Compilation Mode): Fix typo. 2022-05-10 15:47:06 +03:00
Po Lu
145727df29 Fix display of depressed buttons
* src/xterm.c (x_draw_relief_rect): Fix typo.
2022-05-10 17:38:53 +08:00
Po Lu
773c5c00d2 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.
2022-05-10 09:00:39 +00:00
Po Lu
e8d643eb83 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.
2022-05-10 16:50:10 +08:00
Po Lu
c7b48b61d0 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.
2022-05-10 16:01:00 +08:00
Po Lu
88545428f0 Handle deletion of opacity property too
* src/xterm.c (handle_one_xevent): Clear `alpha' frame parameter
when opacity prop is gone or invalid.
2022-05-10 14:40:26 +08:00
Po Lu
58f6cbeb58 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.
2022-05-10 14:38:53 +08:00
Lars Ingebrigtsen
d221c02fa1 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.
2022-05-10 07:05:43 +02:00
Stefan Kangas
93a74773b6 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
2022-05-10 06:30:34 +02:00
Po Lu
3c5e1f8ec8 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.
2022-05-10 04:11:48 +00:00
Lars Ingebrigtsen
e568c3845c 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.
2022-05-10 05:58:33 +02:00
Lars Ingebrigtsen
2d0085f756 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).
2022-05-10 05:09:15 +02:00
Lars Ingebrigtsen
4c4eda4c31 Make imenu find defalias entries
* lisp/emacs-lisp/lisp-mode.el (lisp-imenu-generic-expression):
Also find defalias (bug#7855).
2022-05-10 04:41:43 +02:00
Po Lu
20b27d475f Simplify XDND code
* src/xfns.c (Fx_begin_drag): Use SAFE_ALLOCA_STRING and encode
strings in the right coding system.
2022-05-10 10:39:13 +08:00
Sean Whitton
054062060e 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.
2022-05-09 18:49:13 -07:00
Lars Ingebrigtsen
54ab2b3674 Add NEWS entries for recent autosaved buffer modification status
* doc/lispref/buffers.texi (Buffer Modification): Note 'autosaved'
value.
2022-05-10 03:46:43 +02:00
Lars Ingebrigtsen
0bee4cda88 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.
2022-05-10 03:46:43 +02:00
Andrea Corallo
0b2f550e32 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).
2022-05-10 03:46:43 +02:00
Po Lu
b299f17349 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'.
2022-05-10 09:32:59 +08:00
Po Lu
b7167ba8d1 ; * src/xdisp.c (mark_window_display_accurate_1): Clear vscroll flag. 2022-05-10 08:48:36 +08:00
Alan Third
75f57e4c9e ; * admin/MAINTAINERS: Remove myself as NS port maintainer. 2022-05-09 21:56:42 +01:00
समीर सिंह Sameer Singh
57b69ff39c 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)
2022-05-09 21:24:18 +03:00
Michael Albinus
558286315c 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.
2022-05-09 20:10:10 +02:00
Eli Zaretskii
7b4bdf7b9b Remove the AUCTeX subsection from MS-Windows FAQ
* doc/misc/efaq-w32.texi (AUCTeX): Remove the subsection, it is no
longer useful.  (Bug#55330)
2022-05-09 16:37:49 +03:00
Eli Zaretskii
6fc54786c3 ; Fix documentation of completion options
* doc/emacs/mini.texi (Completion Commands, Completion Options):
Improve and clarify the wording.
2022-05-09 16:28:22 +03:00
Eli Zaretskii
9b2af37559 Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2022-05-09 16:08:56 +03:00
Eli Zaretskii
c7bfb4841b ; * lisp/textmodes/table.el (table-latex-environment): Doc fix. 2022-05-09 16:08:10 +03:00
Protesilaos Stavrou
0d32e33ed6
Shorten note about didactic space in TUTORIAL.el_GR (bug#55332) 2022-05-09 16:07:34 +03:00
Eli Zaretskii
04b1f779f2 ; Fix recent changes in regexp documentation
* doc/lispref/searching.texi (Regexp Backslash):
* doc/emacs/search.texi (Regexps): Fix typo and wording.
2022-05-09 16:02:58 +03:00
Po Lu
f54a71fa27 * src/haikuterm.c (haiku_draw_fringe_bitmap): Set stipple flag. 2022-05-09 12:48:13 +00:00
Eli Zaretskii
825b543582 ; * lisp/vc/ediff-util.el (ediff-show-diff-output): Doc fix. 2022-05-09 15:45:08 +03:00
Po Lu
83e2e961b0 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.
2022-05-09 20:23:40 +08:00
Po Lu
3eb82181fc 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.
2022-05-09 20:23:40 +08:00
Lars Ingebrigtsen
8a8b81c1e4 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).
2022-05-09 14:06:39 +02:00
João Távora
d377b39643 Allow non-interactive use of eldoc-doc-buffer
* lisp/emacs-lisp/eldoc.el (eldoc-doc-buffer): Allow
non-interactive use.
(Version): Bump minor.
2022-05-09 12:51:24 +01:00
Lars Ingebrigtsen
60a15fae02 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).
2022-05-09 13:40:03 +02:00
Po Lu
e195ac3df0 ; * src/haikuterm.c (haiku_draw_underwave): Fix default scale. 2022-05-09 11:21:15 +00:00
Po Lu
5921e31c45 Respect display scale factor drawing underwaves on Haiku
* src/haikuterm.c (haiku_get_scale_factor): New function.
(haiku_draw_underwave): Apply said factor.
2022-05-09 11:10:44 +00:00
Lars Ingebrigtsen
2e94903116 Add meta navigation keys to outline-minor-mode-cycle-map
* lisp/outline.el (outline-minor-mode-cycle-map): Add meta
navigate keys (bug#41129).
2022-05-09 12:37:11 +02:00
Arash Esbati
d2a5631552 Update AUCTeX FAQ entry
* doc/misc/efaq-w32.texi (AUCTeX): AUCTeX project isn't providing
pre-compiled versions for Windows anymore (bug#55330).
2022-05-09 12:10:10 +02:00
Vladimir Nikishkin
6b6b2c11ed 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.
2022-05-09 12:03:42 +02:00
Lars Ingebrigtsen
177718bc6d 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).
2022-05-09 11:57:46 +02:00
Lars Ingebrigtsen
74cc3b525f 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).
2022-05-09 11:46:56 +02:00
Po Lu
52a27a67c1 Fix file-based launching on Haiku
* src/haikuselect.c (Fhaiku_roster_launch): Canonicalize file
names before using them.
2022-05-09 08:22:03 +00:00
Po Lu
09866bb019 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.
2022-05-09 07:55:16 +00:00
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