Lars Ingebrigtsen [Tue, 26 Jul 2022 12:31:04 +0000 (14:31 +0200)]
Add a test for print-unreadable-function
* test/lisp/subr-tests.el (test-print-unreadable-function): Add
failing test (bug#56773).
Mattias Engdegård [Mon, 20 Jun 2022 09:16:26 +0000 (11:16 +0200)]
Add duplicate-dwim (bug#56418)
Like duplicate-line but duplicates the region instead if active.
Rectangular regions are duplicated on the right-hand side.
The region remains active afterwards, to facilitate further
duplication or other operations on the same text.
* lisp/rect.el (rectangle--duplicate-right):
* lisp/misc.el (duplicate-dwim): New.
* test/lisp/misc-tests.el (misc--duplicate-dwim): New test.
* etc/NEWS: Announce.
Robert Pluim [Mon, 25 Jul 2022 10:17:07 +0000 (12:17 +0200)]
Teach 'network-lookup-address-info' to validate numeric addresses
* src/process.c (Fnetwork_lookup_address_info): Add optional 'hints'
argument, pass AI_NUMERICHOST to 'getaddrinfo' if it's 'numeric'.
(syms_of_process): Add 'numeric' symbol.
* doc/lispref/processes.texi (Misc Network): Expunge passive voice.
Update 'network-lookup-address-info' description.
* test/src/process-tests.el (lookup-hints-specification):
(lookup-hints-values): Test new functionality.
* etc/NEWS: Announce change.
Michael Albinus [Tue, 26 Jul 2022 12:10:50 +0000 (14:10 +0200)]
Fix regression in last Tramp change
* lisp/net/tramp-sh.el (tramp-readlink-file-truename): Remove.
(tramp-sh-handle-file-truename): Revert implementation. (Bug#56774)
Po Lu [Tue, 26 Jul 2022 08:12:06 +0000 (16:12 +0800)]
Fix flicker when moving tooltips between frames during mouse drag-and-drop
* src/haikufns.c (Fx_show_tip):
* src/nsfns.m (Fx_show_tip): Allow sharing existing tooltip
frames between any two frames.
* src/xfns.c (Fx_show_tip): Allow that but only between frames
on the same X display.
Po Lu [Tue, 26 Jul 2022 05:41:25 +0000 (05:41 +0000)]
Handle modifiers during Haiku DND wheel movement
* lisp/term/haiku-win.el (haiku-dnd-modifier-mask)
(haiku-dnd-wheel-modifier-type): New functions.
(haiku-handle-drag-wheel): Use them.
* lisp/x-dnd.el (x-dnd-modifier-mask): Remove outdated comment.
* src/haikuselect.c (haiku_note_drag_wheel): Pass modifiers to
wheel function.
(syms_of_haikuselect): Update doc strings.
Stefan Kangas [Tue, 26 Jul 2022 04:30:19 +0000 (06:30 +0200)]
Merge from origin/emacs-28
970190b844 Avoid infloop in 'recenter'
a866674b2a Fix inaccuracies in "lax search" documentation
Po Lu [Tue, 26 Jul 2022 02:29:16 +0000 (10:29 +0800)]
Remove some redundant checks in the DND code
* src/xterm.c (handle_one_xevent): Don't check tab_bar_p or
tool_bar_p before clearing last items during drag-and-drop.
Paul Eggert [Mon, 25 Jul 2022 19:59:26 +0000 (12:59 -0700)]
Note guideline for doc string expressions
* doc/lispref/tips.texi (Documentation Tips):
Mention \\=' and \\=` and say that expressions like
(NAME TYPE RANGE) should not be quoted.
Eli Zaretskii [Mon, 25 Jul 2022 18:59:55 +0000 (21:59 +0300)]
Avoid infloop in 'recenter'
* src/window.c (Frecenter): Avoid infinite loop in the minibuffer
under 'fido-vertical-mode'. (Bug#56765)
Mattias Engdegård [Mon, 25 Jul 2022 16:08:47 +0000 (18:08 +0200)]
; * test/lisp/net/tramp-tests.el (tramp--test-enabled): fix regexp
Michael Albinus [Mon, 25 Jul 2022 15:19:02 +0000 (17:19 +0200)]
Fix regexp in tramp-tests.el
* test/lisp/net/tramp-tests.el (tramp--test-enabled): Fix regexp
for Tramp test files.
Robert Pluim [Tue, 1 Mar 2022 10:34:11 +0000 (11:34 +0100)]
Make package-archives URL treatment slighty laxer
'package-archives' URLs are expected to end in '/', but we can
cater for people typoing that by using 'url-expand-file-name'.
* lisp/emacs-lisp/package.el (package--with-response-buffer-1): Use
'url-expand-file-name' instead of 'concat'.
João Távora [Fri, 22 Jul 2022 08:23:02 +0000 (09:23 +0100)]
Clean up more robustly in compile.el
* lisp/progmodes/compile.el (compilation-sentinel): Use
unwind-protect.
Eli Zaretskii [Mon, 25 Jul 2022 11:49:23 +0000 (14:49 +0300)]
Fix inaccuracies in "lax search" documentation
* doc/emacs/search.texi (Lax Search): Update the examples of
character folding in search. (Bug#56747)
Michael Albinus [Mon, 25 Jul 2022 09:47:43 +0000 (11:47 +0200)]
; Instrument tramp-tests.el
Po Lu [Mon, 25 Jul 2022 09:38:06 +0000 (09:38 +0000)]
Fix mouse face handling during frame reentry on Haiku
* src/haikuterm.c (haiku_read_socket): Clear
last_mouse_glyph_frame like on X.
Stefan Kangas [Mon, 25 Jul 2022 04:30:18 +0000 (06:30 +0200)]
Merge from origin/emacs-28
ba70d0f77c Update to Org 9.5.4-17-g6e991f
Stefan Kangas [Mon, 25 Jul 2022 04:30:18 +0000 (06:30 +0200)]
; Merge from origin/emacs-28
The following commit was skipped:
f7fd7bf477 Find libgccjit.dylib on Homebrew Macos
Po Lu [Mon, 25 Jul 2022 02:08:37 +0000 (10:08 +0800)]
Fix typo in x-dnd-tests.el
* test/lisp/x-dnd-tests.el (x-begin-drag): Avoid extra leading /
in file names. (bug#56712)
Po Lu [Mon, 25 Jul 2022 02:07:30 +0000 (10:07 +0800)]
Fix mouse face handling with tooltips
* src/xterm.c (handle_one_xevent): Clear last_mouse_motion_frame
and last_mouse_glyph_frame on LeaveNotify. Otherwise, mouse
face will be restored by gui_redo_mouse_highlight and will not
be restored if an EnterNotify is later sent on top of the same
glyph.
Po Lu [Mon, 25 Jul 2022 01:23:15 +0000 (09:23 +0800)]
; Rename misnamed function in xterm.c
* src/xterm.c (x_init_master_valuators): Rename to
`x_cache_xi_devices'. Update comment accordingly. All callers
changed.
Kyle Meyer [Sun, 24 Jul 2022 20:24:24 +0000 (16:24 -0400)]
Update to Org 9.5.4-17-g6e991f
Mike Kupfer [Sun, 17 Jul 2022 18:49:56 +0000 (11:49 -0700)]
Fix the prompt for mh-mime-save-parts (SF#500)
* mh-mime.el (mh-mime-save-parts): Use the default argument to
read-directory-name; don't use format-prompt.
Mike Kupfer [Sun, 17 Jul 2022 18:23:48 +0000 (11:23 -0700)]
* mh-mime.el (mh-mime-save-parts): Restore default-directory (SF#498)
Michael Albinus [Sun, 24 Jul 2022 14:02:10 +0000 (16:02 +0200)]
Refactor Tramp
* lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist):
Use `tramp-adb-handle-get-remote-gid' and
`tramp-adb-handle-get-remote-uid'.
(tramp-adb-handle-file-attributes): Use `tramp-convert-file-attributes'.
(tramp-do-parse-file-attributes-with-ls): Remove ID-FORMAT.
(tramp-adb-handle-directory-files-and-attributes):
Use `tramp-skeleton-directory-files-and-attributes'.
(tramp-adb-handle-file-local-copy): Use `tramp-skeleton-file-local-copy'.
(tramp-adb-handle-copy-file, tramp-adb-handle-rename-file):
Use `tramp-barf-if-file-missing'.
(tramp-adb-handle-get-remote-uid)
(tramp-adb-handle-get-remote-gid): New defuns.
* lisp/net/tramp-archive.el (tramp-archive-file-name-handler-alist):
Use `tramp-archive-handle-directory-files'.
(tramp-archive-handle-directory-files): New defun.
* lisp/net/tramp-cache.el (tramp-file-property-p): New defun.
* lisp/net/tramp-compat.el (tramp-compat-take): New defalias.
* lisp/net/tramp-crypt.el (tramp-crypt-do-copy-or-rename-file):
Use `tramp-barf-if-file-missing'.
(tramp-crypt-handle-directory-files):
Use `tramp-skeleton-directory-files'.
* lisp/net/tramp-fuse.el (tramp-fuse-handle-directory-files):
Use `tramp-skeleton-directory-files'.
* lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file):
Use `tramp-barf-if-file-missing'.
* lisp/net/tramp-rclone.el (tramp-rclone-do-copy-or-rename-file):
Use `tramp-barf-if-file-missing'.
* lisp/net/tramp-sh.el (tramp-readlink-file-truename)
(tramp-stat-file-attributes)
(tramp-stat-directory-files-and-attributes): New defconsts.
(tramp-perl-file-attributes)
(tramp-perl-directory-files-and-attributes): Adapt.
(tramp-sh-handle-make-symbolic-link): Flush TARGET file properties.
(tramp-sh-handle-file-truename): Use `tramp-readlink-file-truename'
(tramp-sh-handle-file-exists-p)
(tramp-sh-handle-file-executable-p)
(tramp-sh-handle-file-readable-p)
(tramp-sh-handle-file-directory-p)
(tramp-sh-handle-file-writable-p): Adapt check of file properties.
(tramp-sh-handle-file-attributes): Simplify.
(tramp-do-file-attributes-with-ls): Remove ID-FORMAT. Combine two
remote commands. Compute both versions of uid and gid together.
(tramp-do-file-attributes-with-perl)
(tramp-do-directory-files-and-attributes-with-perl):
Remove ID-FORMAT.
(tramp-do-file-attributes-with-stat): Remove ID-FORMAT. Use
`tramp-stat-file-attributes'.
(tramp-sh-handle-directory-files-and-attributes):
Use `tramp-skeleton-directory-files-and-attributes'.
(tramp-do-directory-files-and-attributes-with-stat):
Remove ID-FORMAT. Use `tramp-stat-directory-files-and-attributes'.
(tramp-sh-handle-copy-directory): Use `tramp-skeleton-copy-directory'.
(tramp-do-copy-or-rename-file): Use `tramp-barf-if-file-missing'.
(tramp-sh-handle-file-local-copy): Use `tramp-skeleton-file-local-copy'.
(tramp-sh-handle-write-region): Combine two remote commands.
(tramp-sh-gio-monitor-process-filter): Simplify `cond' call.
(tramp-expand-script): Extend for ls, readling and stat.
(tramp-open-connection-setup-interactive-shell): Do not set
`tramp-end-of-output'.
(tramp-open-connection-setup-interactive-shell): Do not send
prompt formatting command, it's superfluous.
(tramp-send-command-and-check): Rearrange in order to accept also
heredoc scripts.
(tramp-convert-file-attributes): Move function to tramp.el.
(tramp-get-remote-id): Set connection property.
(tramp-get-remote-uid-with-id): Use it.
(tramp-get-remote-python): Don't check for python2 anymore.
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist):
Use `tramp-handle-directory-files'.
(tramp-smb-handle-copy-directory): Use `tramp-skeleton-copy-directory'.
(tramp-smb-handle-directory-files): Remove.
(tramp-smb-handle-file-attributes): Use `tramp-convert-file-attributes'.
(tramp-smb-do-file-attributes-with-stat): Remove ID-FORMAT.
(tramp-smb-handle-file-local-copy): Use `tramp-skeleton-file-local-copy'.
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-do-copy-or-rename-file):
Use `tramp-barf-if-file-missing'.
(tramp-sudoedit-file-attributes): New defconst.
(tramp-sudoedit-handle-file-attributes): Simplify code.
* lisp/net/tramp.el (tramp-setup-debug-buffer): Set debug buffer
as not modified.
(tramp-barf-if-file-missing, tramp-skeleton-copy-directory)
(tramp-skeleton-directory-files)
(tramp-skeleton-directory-files-and-attributes)
(tramp-skeleton-file-local-copy): New macros.
(tramp-handle-copy-directory): Use `tramp-skeleton-copy-directory'.
(tramp-handle-directory-files): Use `tramp-skeleton-directory-files'.
(tramp-handle-file-local-copy): Use `tramp-skeleton-file-local-copy'.
(tramp-handle-insert-file-contents): Use `tramp-barf-if-file-missing'.
(tramp-get-process-attributes, tramp-action-out-of-band):
Simplify `cond' call.
(tramp-check-cached-permissions): Simplify.
(tramp-make-tramp-temp-file): Reimplement.
* test/lisp/net/tramp-archive-tests.el (tramp-copy-size-limit):
Don't set.
* test/lisp/net/tramp-tests.el (tramp--test-enabled):
Remove superfluous test files.
(tramp-test21-file-links): Protect file name deletion.
Po Lu [Sun, 24 Jul 2022 13:32:42 +0000 (21:32 +0800)]
Throw errors in XDS handler directly
* lisp/x-dnd.el (x-dnd-xds-testing): New defvar.
(x-dnd-handle-direct-save): Signal errors directly if it is
true.
* test/lisp/x-dnd-tests.el (x-dnd-xds-testing): New defvar.
(x-dnd-tests-do-direct-save-internal): Bind it to t around
x-begin-drag. (bug#56712)
Eugene Ha [Thu, 28 Apr 2022 21:48:38 +0000 (23:48 +0200)]
Find libgccjit.dylib on Homebrew Macos
* configure.ac: Also find libggcjit on Homebrew (bug#55173).
Copyright-paperwork-exempt: yes
(cherry picked from commit
faa29fa2c9e9d5a5d7544a1a39b2a89cf57a8439)
Paul Pogonyshev [Sun, 24 Jul 2022 09:06:19 +0000 (11:06 +0200)]
Don't exclude current dir in `package--reload-previously-loaded'
* lisp/emacs-lisp/package.el (package--reload-previously-loaded):
Don't exclude the current directory (bug#56614).
YugaEgo [Sun, 24 Jul 2022 09:01:50 +0000 (11:01 +0200)]
Add new user option 'diff-whitespace-style'
* lisp/vc/diff-mode.el (diff-whitespace-style): New user option.
(diff-setup-whitespace): Use it (Bug#56679).
(top level): require 'whitespace.
(whitespace-style, whitespace-trailing-regexp): Remove defvars.
Stefan Kangas [Sun, 24 Jul 2022 07:55:01 +0000 (09:55 +0200)]
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
Stefan Kangas [Sun, 24 Jul 2022 07:53:17 +0000 (09:53 +0200)]
; Merge from origin/emacs-28
The following commit was skipped:
ba7a75e052 Fix mode line mouse-1 binding when showing only column num...
Po Lu [Sun, 24 Jul 2022 02:43:52 +0000 (10:43 +0800)]
; * lisp/x-dnd.el (x-dnd-init-frame): Ignore tip frames.
Po Lu [Sun, 24 Jul 2022 02:42:02 +0000 (10:42 +0800)]
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.
Dmitry Gutov [Sat, 23 Jul 2022 18:13:17 +0000 (21:13 +0300)]
* lisp/progmodes/xref.el: Bump the version.
Michael Albinus [Sat, 23 Jul 2022 17:45:24 +0000 (19:45 +0200)]
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)
Mattias Engdegård [Sat, 23 Jul 2022 16:42:11 +0000 (18:42 +0200)]
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.
Basil L. Contovounesios [Sat, 23 Jul 2022 11:22:09 +0000 (14:22 +0300)]
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.
Mattias Engdegård [Sat, 23 Jul 2022 12:55:54 +0000 (14:55 +0200)]
Correct symbol in error for failed CHECK_INTEGER (bug#56723)
Reported by Jeronimo Pellegrini.
* src/lisp.h (CHECK_INTEGER): Use integerp, not numberp.
Dmitry Gutov [Sat, 23 Jul 2022 12:23:56 +0000 (15:23 +0300)]
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).
Po Lu [Sat, 23 Jul 2022 11:57:50 +0000 (19:57 +0800)]
Remove macOS region color code
* lisp/faces.el (region): Remove macOS specific definition.
Equivalent functionality is no longer available on free
operating systems.
Eli Zaretskii [Sat, 23 Jul 2022 10:46:06 +0000 (13:46 +0300)]
; * etc/NEWS: Fix wording and punctuation of 'comint-delete-old-input'.
Eli Zaretskii [Sat, 23 Jul 2022 10:42:13 +0000 (13:42 +0300)]
; * etc/NEWS: Fix typo.
Eli Zaretskii [Sat, 23 Jul 2022 10:39:50 +0000 (13:39 +0300)]
; * etc/NEWS: Move the 'lsh' item to its proper place.
Mattias Engdegård [Sat, 23 Jul 2022 10:29:35 +0000 (12:29 +0200)]
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.
Mattias Engdegård [Sat, 23 Jul 2022 10:15:08 +0000 (12:15 +0200)]
Warn about calls to `lsh` (bug#56641)
* lisp/subr.el (lsh): Warn when compiled; recommend `ash`.
* etc/NEWS: Add note.
Eli Zaretskii [Sat, 23 Jul 2022 09:56:00 +0000 (12:56 +0300)]
; * doc/lispref/functions.texi (Declare Form): Fix typo.
Eli Zaretskii [Sat, 23 Jul 2022 09:54:07 +0000 (12:54 +0300)]
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.
Mattias Engdegård [Sat, 23 Jul 2022 09:04:28 +0000 (11:04 +0200)]
; * lisp/emacs-lisp/bytecomp.el: comment cleanup
Po Lu [Sat, 23 Jul 2022 09:02:22 +0000 (17:02 +0800)]
Undo C parts of "Don't use the Gtk region face"
This reverts commit
a24f710395f9777cb9f8b000300e5e9c892d7794, apart
from the change to faces.el and NEWS.
Lars Ingebrigtsen [Sat, 23 Jul 2022 08:52:30 +0000 (10:52 +0200)]
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.
kobarity [Sat, 23 Jul 2022 08:26:33 +0000 (10:26 +0200)]
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).
Eli Zaretskii [Sat, 23 Jul 2022 08:11:47 +0000 (11:11 +0300)]
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)
Lars Ingebrigtsen [Sat, 23 Jul 2022 07:33:18 +0000 (09:33 +0200)]
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).
Miha Rihtarsic [Sat, 23 Jul 2022 07:32:50 +0000 (10:32 +0300)]
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.
Visuwesh [Sat, 23 Jul 2022 07:15:24 +0000 (09:15 +0200)]
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.
Lars Ingebrigtsen [Sat, 23 Jul 2022 07:13:30 +0000 (09:13 +0200)]
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).
Po Lu [Sat, 23 Jul 2022 07:00:12 +0000 (15:00 +0800)]
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.
Lars Ingebrigtsen [Sat, 23 Jul 2022 06:55:20 +0000 (08:55 +0200)]
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).
Po Lu [Sat, 23 Jul 2022 06:18:18 +0000 (14:18 +0800)]
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.
Miha Rihtaršič [Sat, 23 Jul 2022 06:02:48 +0000 (08:02 +0200)]
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).
Lars Ingebrigtsen [Sat, 23 Jul 2022 05:46:52 +0000 (07:46 +0200)]
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.
Lars Ingebrigtsen [Sat, 23 Jul 2022 05:43:45 +0000 (07:43 +0200)]
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.
Po Lu [Sat, 23 Jul 2022 01:35:20 +0000 (09:35 +0800)]
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.
Stefan Kangas [Fri, 22 Jul 2022 23:37:59 +0000 (01:37 +0200)]
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
Stefan Kangas [Fri, 22 Jul 2022 22:06:38 +0000 (00:06 +0200)]
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.
Lars Ingebrigtsen [Fri, 22 Jul 2022 22:01:00 +0000 (00:01 +0200)]
Fix typo in error message in native-compile-prune-cache
* lisp/emacs-lisp/comp.el (native-compile-prune-cache): Fix typo
(bug#56713).
Lars Ingebrigtsen [Fri, 22 Jul 2022 20:43:38 +0000 (22:43 +0200)]
Fix spacing in *Help* buttons
* lisp/help-mode.el (help-xref--navigation-buttons): Fix spacing
before single [forward] button.
Lars Ingebrigtsen [Fri, 22 Jul 2022 19:55:23 +0000 (21:55 +0200)]
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.
Robert Pluim [Fri, 22 Jul 2022 14:20:36 +0000 (16:20 +0200)]
; * src/xdisp.c (set_vertical_scroll_bar): Fix typo
Eli Zaretskii [Fri, 22 Jul 2022 13:15:38 +0000 (16:15 +0300)]
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)
Robert Pluim [Fri, 22 Jul 2022 12:19:04 +0000 (14:19 +0200)]
* src/terminal.c (Fframe_terminal): Use active voice
Robert Pluim [Fri, 22 Jul 2022 12:03:01 +0000 (14:03 +0200)]
Improve 'terminal-live-p' docstring some more
* terminal.c (Fterminal_live_p): Improve description of arguments and
return value.
Po Lu [Fri, 22 Jul 2022 11:51:56 +0000 (19:51 +0800)]
Fix bug#56692 questionably
* src/xdisp.c (set_vertical_scroll_bar): Don't recompute window
end of a mini window. (bug#56692)
Michael Albinus [Fri, 22 Jul 2022 11:31:38 +0000 (13:31 +0200)]
; * etc/NEWS: Fix typos.
Robert Pluim [Fri, 22 Jul 2022 08:18:41 +0000 (10:18 +0200)]
Explain how to override Author with VC
* CONTRIBUTE: Describe how to use Author header line and
'log-edit-setup-add-author'.
Robert Pluim [Fri, 22 Jul 2022 08:14:45 +0000 (10:14 +0200)]
Improve terminal-live-p docstring
* src/terminal.c (Fterminal_live_p): Explain what happens when the
argument is nil.
Robert Pluim [Fri, 22 Jul 2022 08:10:36 +0000 (10:10 +0200)]
* lisp/net/tramp-gvfs.el (tramp-gvfs-dbus-event-vector): Fix grammar
Eli Zaretskii [Fri, 22 Jul 2022 07:58:59 +0000 (10:58 +0300)]
; 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)
Po Lu [Fri, 22 Jul 2022 07:37:28 +0000 (15:37 +0800)]
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.
Po Lu [Fri, 22 Jul 2022 01:38:32 +0000 (09:38 +0800)]
Fix posn-timestamp of scroll bar events on GTK
* src/xterm.c (x_get_last_toolkit_time): New function.
(x_scroll_bar_to_input_event)
(x_horizontal_scroll_bar_to_input_event): Use it to retrieve
toolkit time.
(xg_scroll_callback, xg_end_scroll_callback): Set last user time
if possible.
Stefan Monnier [Fri, 22 Jul 2022 00:01:36 +0000 (20:01 -0400)]
* lisp/help-mode.el (help-news): Use `view-file`
Stefan Monnier [Thu, 21 Jul 2022 23:50:23 +0000 (19:50 -0400)]
* lisp/vc/vc-dispatcher.el (vc-log-edit): Un-quote the lambda
Stefan Monnier [Thu, 21 Jul 2022 23:50:05 +0000 (19:50 -0400)]
* lisp/progmodes/verilog-mode.el (verilog-surelint-off): Silence warning
Stefan Monnier [Thu, 21 Jul 2022 22:39:11 +0000 (18:39 -0400)]
(compilation-parse-errors-function): Remove obsolete var
* lisp/progmodes/compile.el (compilation-parse-errors-function): Remove.
(compilation--parse-region): Simplify accordingly.
(compilation--compat-parse-errors): Remove function, not used any more.
(compilation-error-list, compilation-parsing-end)
(compilation-old-error-list): Remove vars, not used any more.
(compilation-last-buffer): Mark as obsolete (sadly, forgot to do that
back in Emacs-22).
* lisp/textmodes/tex-mode.el: Remove old code that was needed for
Emacs<24.
* lisp/progmodes/prolog.el (prolog-consult-compile): Remove long-dead code.
(compilation-parse-errors-function): Remove declaration, not used any more.
(prolog-parse-sicstus-compilation-errors): Remove function, not used any more.
Stefan Kangas [Thu, 21 Jul 2022 19:07:54 +0000 (21:07 +0200)]
image-dired: Don't end messages with "."
* lisp/image-dired.el (image-dired-toggle-dired-display-properties)
(image-dired--on-file-in-dired-buffer)
(image-dired-thumbnail-set-image-description)
(image-dired-mark-tagged-files)
(image-dired-dired-edit-comment-and-tags)
(image-dired-modify-mark-on-thumb-original-file): Don't end messages
with "." to better comply with '(elisp) Programming Tips'.
Stefan Kangas [Thu, 21 Jul 2022 19:00:41 +0000 (21:00 +0200)]
; * lisp/wid-browse.el (widget-browse): Delete commented out code.
This has been commented out since 1997.
Eli Zaretskii [Thu, 21 Jul 2022 16:22:16 +0000 (19:22 +0300)]
Fix reference to 'x-max-tooltip-size' in complete.el
* lisp/cedet/semantic/complete.el: Don't assume that
x-max-tooltip-size is a cons cell.
Mattias Engdegård [Thu, 21 Jul 2022 14:22:23 +0000 (16:22 +0200)]
; * etc/NEWS: use the right outline level
Mattias Engdegård [Thu, 21 Jul 2022 10:18:59 +0000 (12:18 +0200)]
; * lisp/emacs-lisp/byte-opt.el (byte-optimize--fixnump): Optimise.
Eli Zaretskii [Thu, 21 Jul 2022 12:59:50 +0000 (15:59 +0300)]
; Clarify doc string of 'long-line-threshold'
* src/buffer.c (syms_of_buffer) <long-line-threshold>: Clarify the
doc string.
Gregory Heytings [Thu, 21 Jul 2022 10:37:45 +0000 (12:37 +0200)]
Merge branch 'feature/fix-the-long-lines-display-bug'
Eli Zaretskii [Thu, 21 Jul 2022 09:40:28 +0000 (12:40 +0300)]
Update buffer's chars-modified tick when inserting from gap
* src/insdel.c (insert_from_gap): Update buffer's chars-modified
tick. (Bug#56393)
* test/src/buffer-tests.el (test-buffer-chars-modified-ticks): New
test.
Stefan Kangas [Thu, 21 Jul 2022 08:42:24 +0000 (10:42 +0200)]
* lisp/progmodes/cperl-mode.el: Don't mention obsolete archive.
Po Lu [Thu, 21 Jul 2022 08:26:34 +0000 (16:26 +0800)]
Apply tooltip assertions to all instances of x-show-tip
* src/haikufns.c (Fx_show_tip):
(syms_of_haikufns):
* src/nsfns.m (Fx_show_tip):
(syms_of_nsfns):
* src/pgtkfns.c (Fx_show_tip):
(syms_of_pgtkfns):
* src/xfns.c (Fx_show_tip):
(syms_of_xfns): Add assertion and adjust default values.
Stefan Kangas [Thu, 21 Jul 2022 07:23:27 +0000 (09:23 +0200)]
Minor doc fix in search-forward-help-for-help
* lisp/help.el (search-forward-help-for-help): Use command
substitution.
Stefan Kangas [Thu, 21 Jul 2022 07:04:12 +0000 (09:04 +0200)]
Make bs-help obsolete in favor of describe-mode
* lisp/bs.el (bs-help): Make obsolete in favor of describe-mode.
Update uses.
Stefan Kangas [Thu, 21 Jul 2022 06:56:59 +0000 (08:56 +0200)]
Make dictionary-help obsolete in favor of describe-mode
* lisp/net/dictionary.el (dictionary-help): Make obsolete in favor
of describe-mode. Update uses.
Stefan Kangas [Thu, 21 Jul 2022 06:55:28 +0000 (08:55 +0200)]
Don't list obsolete in "other commands" help section
* lisp/help-fns.el (help-fns--list-local-commands): Don't list
obsolete commands.
Eli Zaretskii [Thu, 21 Jul 2022 07:18:30 +0000 (10:18 +0300)]
Make 'describe-function' say "byte-compiled" when appropriate
* lisp/help-fns.el (help-fns-function-description-header): Say
"byte-compiled" when describing byte-compiled functions.