Stefan Kangas
a463dccdd0
Merge from origin/emacs-28
...
b4067394dc
Set `default-directory' of Tramp archive connection buffer
2529e82002
; * doc/lispref/functions.texi (Declare Form): Fix typo.
54c4ceb009
Update the documentation of 'declare' forms
7263631dca
Fix bookmark support for Help functions in native-compilat...
# Conflicts:
# lisp/help.el
2022-07-24 09:55:01 +02:00
Stefan Kangas
279eb4e6ab
; Merge from origin/emacs-28
...
The following commit was skipped:
ba7a75e052
Fix mode line mouse-1 binding when showing only column num...
2022-07-24 09:53:17 +02:00
Po Lu
928ea0fbf1
; * lisp/x-dnd.el (x-dnd-init-frame): Ignore tip frames.
2022-07-24 10:43:52 +08:00
Po Lu
235045f712
Prevent exposing tooltip frames to Lisp code during drag-and-drop
...
* src/xterm.c (x_dnd_compute_toplevels): Ignore tooltip frames.
(x_tooltip_window_to_frame): Allow unrelated_tooltip_p to be
NULL.
(handle_one_xevent): Ignore DND events to tooltip frames.
2022-07-24 10:42:02 +08:00
Dmitry Gutov
1b99f2908b
* lisp/progmodes/xref.el: Bump the version.
2022-07-23 21:13:39 +03:00
Michael Albinus
b4067394dc
Set `default-directory' of Tramp archive connection buffer
...
* lisp/net/tramp-archive.el (tramp-archive-file-name-handler):
Set `default-directory' of Tramp connection buffer. (Bug#56628)
2022-07-23 19:45:24 +02:00
Mattias Engdegård
96926fa6eb
Fix lsh
warning shortcomings (bug#56641)
...
Reported by Basil Contovounesios.
* etc/NEWS: Mention how to suppress the warning.
* lisp/emacs-lisp/byte-run.el (with-suppressed-warnings): Amend doc string.
* lisp/subr.el: Use `macroexp-warn-and-return` to delay the warning
until codegen time (which makes it suppressible) and to prevent
repeated warnings.
* test/lisp/international/ccl-tests.el (shift):
* test/src/data-tests.el (data-tests-ash-lsh):
Suppress warning in tests of `lsh` itself.
2022-07-23 18:42:11 +02:00
Basil L. Contovounesios
26f4bcc6d7
Update pdumper.c after recent long lines changes
...
For discussion, see:
https://lists.gnu.org/r/emacs-devel/2022-07/msg00761.html
* src/pdumper.c (dump_buffer): Dump new field
long_line_optimizations_p introduced in commit e7b5912b23
of
2022-07-16 "Improvements to long lines handling."
(dump_buffer) [CHECK_STRUCTS]: Update hash accordingly
for --enable-checking=structs.
2022-07-23 16:33:09 +03:00
Mattias Engdegård
aa28829eb7
Correct symbol in error for failed CHECK_INTEGER (bug#56723)
...
Reported by Jeronimo Pellegrini.
* src/lisp.h (CHECK_INTEGER): Use integerp, not numberp.
2022-07-23 14:55:54 +02:00
Dmitry Gutov
38d5e346df
Support new "binary file matches" format in Ripgrep 13
...
* lisp/progmodes/xref.el (xref-matches-in-files):
Support new "binary file matches" format in Ripgrep 13
(bug#56624).
2022-07-23 15:23:56 +03:00
Po Lu
cf83da0708
Remove macOS region color code
...
* lisp/faces.el (region): Remove macOS specific definition.
Equivalent functionality is no longer available on free
operating systems.
2022-07-23 20:00:04 +08:00
Eli Zaretskii
9171fa0933
; * etc/NEWS: Fix wording and punctuation of 'comint-delete-old-input'.
2022-07-23 13:46:06 +03:00
Eli Zaretskii
74152fe806
; * etc/NEWS: Fix typo.
2022-07-23 13:42:13 +03:00
Eli Zaretskii
cc095d2873
; * etc/NEWS: Move the 'lsh' item to its proper place.
2022-07-23 13:39:50 +03:00
Mattias Engdegård
92892e5611
Use ash
instead of lsh
in verilog-mode (bug#56641)
...
* lisp/progmodes/verilog-mode.el (verilog-simplify-range-expression):
Use `ash`; the result will be the same because the first argument is
nonnegative.
2022-07-23 12:29:35 +02:00
Mattias Engdegård
72a457e92e
Warn about calls to lsh
(bug#56641)
...
* lisp/subr.el (lsh): Warn when compiled; recommend `ash`.
* etc/NEWS: Add note.
2022-07-23 12:19:04 +02:00
Eli Zaretskii
2529e82002
; * doc/lispref/functions.texi (Declare Form): Fix typo.
2022-07-23 12:56:00 +03:00
Eli Zaretskii
54c4ceb009
Update the documentation of 'declare' forms
...
* doc/lispref/compile.texi (Native-Compilation Variables): Mention
the 'declare' alternative for 'native-comp-speed'.
* doc/lispref/functions.texi (Declare Form): Document 'declare'
forms that were previously undocumented.
2022-07-23 12:54:07 +03:00
Mattias Engdegård
3d6cfdf1c5
; * lisp/emacs-lisp/bytecomp.el: comment cleanup
2022-07-23 11:05:37 +02:00
Po Lu
49d16a7eb4
Undo C parts of "Don't use the Gtk region face"
...
This reverts commit a24f710395
, apart
from the change to faces.el and NEWS.
2022-07-23 17:03:04 +08:00
Lars Ingebrigtsen
a24f710395
Don't use the Gtk region face
...
* lisp/faces.el (region): Don't use the Gtk region face, because
it produces low contrast combinations (bug#46493).
* src/gtkutil.h:
* src/gtkutil.c (xg_check_special_colors): Remove.
* src/xfns.c (x_defined_color):
* src/pgtkterm.c (pgtk_defined_color): Don't call.
2022-07-23 10:52:30 +02:00
kobarity
09e433ec7f
Fix Python navigation problem with a line continuation using backslash
...
* lisp/progmodes/python.el (python-nav--beginning-of-defun): Fix
line continuation using backslash in nested defun (bug#56615).
2022-07-23 10:26:33 +02:00
Eli Zaretskii
7263631dca
Fix bookmark support for Help functions in native-compilation builds
...
* lisp/help.el (describe-key--helper, describe-function--helper):
New helper functions.
(describe-key): Call 'describe-key--helper' instead of a
lambda-function.
* lisp/help-fns.el (describe-function): Call
'describe-function--helper' instead of a lambda-function.
(Bug#56643)
2022-07-23 11:11:47 +03:00
Lars Ingebrigtsen
df667e9f17
Fix wdired entry when there are hidden subdirs
...
* lisp/dired.el (dired--unhide): Allow `C-c C-q' to work when
there are hidden inserted subdirs (bug#56698).
2022-07-23 09:33:18 +02:00
Miha Rihtarsic
ba7a75e052
Fix mode line mouse-1 binding when showing only column numbers
...
* lisp/bindings.el (mode-line-position): Fix the mouse-1 binding
when showing only column numbers (bug#56694). Do not merge to
master.
2022-07-23 10:32:50 +03:00
Visuwesh
e5de76b72e
New user option to disable deleting current input in comint mouse-2
...
* etc/NEWS: Announce the user option (bug#56646).
* lisp/comint.el (comint-delete-old-input): New user option to disable
deleting current input when insert an old input using mouse-2.
(comint-insert-input): Use it.
2022-07-23 09:15:24 +02:00
Lars Ingebrigtsen
97abe8511a
Use special-mode in eldoc--doc-buffer
...
* lisp/emacs-lisp/eldoc.el (eldoc--format-doc-buffer): Use
`special-mode' to allow normal customizations of the buffer
(bug#56659).
2022-07-23 09:14:04 +02:00
Po Lu
a4339190ec
Fix PGTK DND after a source leaves without dropping anything
...
* lisp/pgtk-dnd.el (pgtk-dnd-clear-data-on-motion): New flag.
(pgtk-dnd-handle-gdk): Set flag upon drag-leave. Clear state
upon drag-motion if it is set.
2022-07-23 15:00:34 +08:00
Lars Ingebrigtsen
51f5c4b773
Fix off-by-one error in string-truncate-left
...
* lisp/emacs-lisp/subr-x.el (string-truncate-left): Fix off-by-one
error (bug#56685).
2022-07-23 08:58:53 +02:00
Po Lu
33602132ac
Handle text scale and global text scale during DND wheel movement
...
* lisp/x-dnd.el (x-dnd-mwheel-scroll): Handle `text-scale' and
`global-text-scale' mwheel actions.
2022-07-23 14:19:03 +08:00
Miha Rihtaršič
825f4fdb51
Fix mode line mouse-1 binding when showing only column numbers
...
* lisp/bindings.el (mode-line-position): Fix the mouse-1 binding
when showing only column numbers (bug#56694).
2022-07-23 08:02:48 +02:00
Lars Ingebrigtsen
e00f882905
Don't bug out in src when there's no srcset
...
* lisp/net/shr.el (shr--preferred-image): Don't bug out when
there's no srcset.
2022-07-23 07:46:52 +02:00
Lars Ingebrigtsen
2ebede7d75
Fix srcset parsing in shr
...
* lisp/net/shr.el (shr--preferred-image): Factor out srcset
parsing for easier testing.
(shr--parse-srcset): Don't misparse URLs with commas in them.
2022-07-23 07:43:45 +02:00
Po Lu
792734a6e2
Improve efficiency of DND tooltip movement
...
* src/xterm.c (x_dnd_begin_drag_and_drop): Clear new flag.
(x_dnd_update_tooltip_position): Save last tooltip X and Y
somewhere, so we don't move it upon client lists being updated.
2022-07-23 09:35:20 +08:00
Stefan Kangas
df508ffd2b
Merge from origin/emacs-28
...
ae1ace1cf4
Adjust help-fns.el tests for recent change
04bdcf4aaa
* src/terminal.c (Fframe_terminal): Use active voice
7fa491a9e9
Improve 'terminal-live-p' docstring some more
b9ac8c29ae
Improve terminal-live-p docstring
0b4c81a152
* lisp/net/tramp-gvfs.el (tramp-gvfs-dbus-event-vector): F...
8f8373170f
* lisp/progmodes/cperl-mode.el: Don't mention obsolete arc...
25bc330a6d
Make 'describe-function' say "byte-compiled" when appropriate
2b31e667be
;Improve documentation of locale-specific string comparison
2022-07-23 01:37:59 +02:00
Stefan Kangas
ae1ace1cf4
Adjust help-fns.el tests for recent change
...
* test/lisp/help-fns-tests.el (help-fns-test-lisp-defun)
(help-fns-test-lisp-defsubst): Adjust tests for recent change.
2022-07-23 00:06:38 +02:00
Lars Ingebrigtsen
f268cdc185
Fix typo in error message in native-compile-prune-cache
...
* lisp/emacs-lisp/comp.el (native-compile-prune-cache): Fix typo
(bug#56713).
2022-07-23 00:01:00 +02:00
Lars Ingebrigtsen
dd902c43f3
Fix spacing in *Help* buttons
...
* lisp/help-mode.el (help-xref--navigation-buttons): Fix spacing
before single [forward] button.
2022-07-22 22:43:38 +02:00
Lars Ingebrigtsen
963c8c35c3
Give a better error message in native-compile-prune-cache
...
* lisp/emacs-lisp/comp.el (native-compile-prune-cache): Give a
better error message in non-nativecomp builds.
2022-07-22 21:55:23 +02:00
Robert Pluim
1767f796b0
; * src/xdisp.c (set_vertical_scroll_bar): Fix typo
2022-07-22 16:20:36 +02:00
Eli Zaretskii
12a3137cd3
Fix display of scroll-bar in mini-windows
...
* src/xdisp.c (set_vertical_scroll_bar): Ensure current_buffer is
set correctly when displaying scroll bar of a mini-window.
(Bug#56692)
2022-07-22 16:15:38 +03:00
Robert Pluim
04bdcf4aaa
* src/terminal.c (Fframe_terminal): Use active voice
2022-07-22 14:19:04 +02:00
Robert Pluim
7fa491a9e9
Improve 'terminal-live-p' docstring some more
...
* terminal.c (Fterminal_live_p): Improve description of arguments and
return value.
2022-07-22 14:10:10 +02:00
Po Lu
82116a5ea3
Fix bug#56692 questionably
...
* src/xdisp.c (set_vertical_scroll_bar): Don't recompute window
end of a mini window. (bug#56692)
2022-07-22 19:54:57 +08:00
Michael Albinus
7220a5a09a
; * etc/NEWS: Fix typos.
2022-07-22 13:31:38 +02:00
Robert Pluim
8434396fa3
Explain how to override Author with VC
...
* CONTRIBUTE: Describe how to use Author header line and
'log-edit-setup-add-author'.
2022-07-22 10:36:30 +02:00
Robert Pluim
b9ac8c29ae
Improve terminal-live-p docstring
...
* src/terminal.c (Fterminal_live_p): Explain what happens when the
argument is nil.
2022-07-22 10:14:45 +02:00
Robert Pluim
0b4c81a152
* lisp/net/tramp-gvfs.el (tramp-gvfs-dbus-event-vector): Fix grammar
2022-07-22 10:11:21 +02:00
Eli Zaretskii
51209fd735
; Improve doc strings of 2 outline-minor-mode options
...
* lisp/outline.el (outline-minor-mode-use-buttons)
(outline-minor-mode-buttons): Improve the doc strings. (Bug#56691)
2022-07-22 10:58:59 +03:00
Po Lu
f173028d15
Fix handling hscroll during drag-and-drop
...
* lisp/x-dnd.el (x-dnd-hscroll-flags): Delete function.
(x-dnd-get-modifiers, x-dnd-wheel-modifier-type): New functions.
(x-dnd-mwheel-scroll): Use that to determine hscroll instead.
* src/window.c (set_window_hscroll): Mark window as needing
redisplay if the hscroll really changed.
2022-07-22 15:37:28 +08:00