1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-26 15:21:51 -08:00
Commit graph

10850 commits

Author SHA1 Message Date
Po Lu
c3f53d2604 Expose xwidget navigation history to Lisp code
* doc/lispref/display.texi (Xwidgets): Document changes.
* etc/NEWS: Announce new function.
* src/xwidget.c (Fxwidget_webkit_back_forward_list): New
function.
(syms_of_xwidget): Define new subr.
2021-11-14 17:45:23 +08:00
Stefan Kangas
b4c6ab8cb6 Merge from origin/emacs-28
42d4e24ff3 ; Fix typos
0d0125daae Improve documentation of 'decode-coding-region'
2021-11-13 07:00:30 +01:00
Stefan Kangas
42d4e24ff3 ; Fix typos 2021-11-12 13:59:58 +01:00
Po Lu
12d554e5c5 Fix typos in etc/PROBLEMS
* etc/PROBLEMS (Internationalization problems): Fix typos.
2021-11-12 20:17:28 +08:00
Po Lu
449bc51dcd Document problem with fcitx and xwidgets
* etc/PROBLEMS (Internationalization problems): Document buggy fcitx
with xwidgets.
2021-11-12 20:17:03 +08:00
Michael Albinus
75e219167e ; * etc/NEWS: Fix typos. 2021-11-12 13:05:54 +01:00
Lars Ingebrigtsen
2d9e750881 Move Info-goto-node-web to "G"
* lisp/info.el (Info-mode-map): Change the Info-goto-node-web
binding to "G" for symmetry with "Info-goto-node".
2021-11-12 04:35:46 +01:00
Stefan Kangas
1d95cef0fe image-dired: Revamp slideshow functionality
* lisp/image-dired.el
(image-dired-slideshow-delay): New defcustom.
(image-dired--slideshow-initial): New defvar.
(image-dired-slideshow-start): Don't show any prompts when starting a
slideshow, unless user gave a negative prefix argument.  Use the value
of the above new defcustom as the default delay.
(image-dired-slideshow-stop): Don't count number of images.  Instead,
continue the slideshow until the next command.
(image-dired-slideshow-step): Use the correct buffer.
(image-dired-slideshow-count, image-dired-slideshow-times): Make
obsolete.
(image-dired--slideshow-timer): Rename from
'image-dired-slideshow-timer'.  Make the old name into an obsolete
variable alias.
(image-dired-display-image-mode-map)
(image-dired-thumbnail-mode-map): Bind 'image-dired-slideshow-start'
to "S".
(image-dired-thumbnail-mode-menu): Add 'image-dired-slideshow-start'.
2021-11-12 04:27:35 +01:00
Jim Porter
6c9ac53249 Improve performance of 'file-name-case-insensitive-p' for Tramp files
Previously, each function in 'tramp-foreign-file-name-handler-alist'
would call 'tramp-dissect-file-name', resulting in it being called
several times whenever 'tramp-find-foreign-file-name-handler' was
called.  Now, functions take the dissected file name to avoid this
duplicated effort.  (Bug#51699)

* etc/NEWS: Announce this change.

* lisp/net/tramp-adb.el (tramp-adb-file-name-p):
* lisp/net/tramp-ftp.el (tramp-ftp-file-name-p):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-p):
* lisp/net/tramp-rclone.el (tramp-rclone-file-name-p):
* lisp/net/tramp-smb.el (tramp-smb-file-name-p):
* lisp/net/tramp-sshfs.el (tramp-sshfs-file-name-p):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-p):
Accept dissected file names.

* lisp/net/tramp.el (tramp-ensure-dissected-file-name): New function.
(tramp-find-foreign-file-name-handler): Pass dissected file name to
functions.
(tramp-connectable-p): Use 'tramp-ensure-dissected-file-name'.
2021-11-11 19:34:17 +01:00
Lars Ingebrigtsen
bf9364a56e Add a command to go the gnu.org version of the info page
* lisp/info.el (Info-url-for-node):
(Info-goto-node-web): New function (bug#44895).

Based on code from Drew Adams <drew.adams@oracle.com>.
2021-11-11 13:20:38 +01:00
Eli Zaretskii
51e3625dec ; * etc/NEWS: Improve a recently added entry. 2021-11-11 12:58:58 +02:00
Feng Shu
f69a808ddc xwidget: Add xwidget-webkit-buffer-name-format.
* lisp/xwidget.el (xwidget-webkit-buffer-name-prefix):
Remove variable.
(xwidget-webkit-buffer-name-format): New variable.
(xwidget-webkit-callback): Use
xwidget-webkit-buffer-name-format instead.
(format-spec): required.

* etc/NEWS: Note xwidget-webkit-buffer-name-format.
2021-11-11 18:26:05 +08:00
Stefan Kangas
3e23494394 Merge from origin/emacs-28
2963de6540 * lisp/vc/vc-git.el (vc-git-mergebase): More meaningful er...
a9148cdee5 ; Fix heading in etc/NEWS
9623342216 ; * etc/NEWS: Move a bookmark related item further down.

# Conflicts:
#	etc/NEWS
2021-11-11 07:17:56 +01:00
Tim Ruffing
f30f531159 Support Tc terminfo flag for 24-bit color support in terminal
* src/term.c (init_tty): Use the Tc flag (bug#44950).

Copyright-paperwork-exempt: yes
2021-11-11 07:14:57 +01:00
Gregory Heytings
894dd18804 Options to automatically stop the Emacs server
* doc/emacs/misc.texi (Emacs Server): Document the new function.
Also mention that an Emacs server can be started with emacsclient.

* etc/NEWS: Describe the new function (bug#51377).
* lisp/server.el (server-stop-automatically): New function.
(server-stop-automatically): New auxiliary variable.
(server-stop-automatically--maybe-kill-emacs)
(server-stop-automatically--handle-delete-frame): New auxiliary
functions.
(server-save-buffers-kill-terminal): Call the new auxiliary
function when necessary.
2021-11-11 06:43:10 +01:00
Po Lu
3d253fa3aa Add `xwidget-webkit-load-html'
* doc/lispref/display.texi (Xwidgets): Document new function.
* etc/NEWS: Announce new function.
* src/xwidget.c (Fxwidget_webkit_load_html): New function.
(syms_of_xwidget): Define new subr.
2021-11-11 08:31:09 +08:00
Juri Linkov
b7e212aca4 * etc/NEWS.28: Add changes omitted while merging from emacs-28 NEWS. 2021-11-10 20:36:41 +02:00
Juri Linkov
cb6cd6c8a2 * etc/NEWS: Remove old news accidentally merged from emacs-28. 2021-11-10 20:24:00 +02:00
Robert Pluim
c5e7a0225b ; * etc/NEWS: Improve some entries. 2021-11-10 17:05:10 +01:00
Robert Pluim
bf4151c65d ; * etc/NEWS: Fix merge error 2021-11-10 17:04:08 +01:00
Robert Pluim
77aff4c56e ; * etc/NEWS: Fix merge error 2021-11-10 16:53:44 +01:00
Michael Albinus
a9148cdee5 ; Fix heading in etc/NEWS 2021-11-10 13:40:44 +01:00
Stefan Kangas
9623342216 ; * etc/NEWS: Move a bookmark related item further down. 2021-11-10 13:19:02 +01:00
Stefan Kangas
acf408934d Merge from origin/emacs-28
8d81ab374d time-stamp: %F is "file name" not "pathname" + other doc
beaa7e14f3 ; Fix typos in CONTRIBUTE, ELisp manual, ediff
747a1ae4ac * doc/misc/eww.texi (Advanced): Fix missed variable name e...
52fe2340b8 * doc/emacs/windows.texi (Window Convenience): Use @code f...
7d3a654e2a * doc/emacs/maintaining.texi (Basic VC Editing): Mention D...
aeb19af4b5 ; * doc/emacs/building.texi (Lisp Libraries): Fix a typo. ...

# Conflicts:
#	etc/NEWS
2021-11-10 12:12:30 +01:00
Lars Ingebrigtsen
2e6ed253ce Add new function 'file-name-split'
* doc/lispref/files.texi (File Name Components): Document it.
* lisp/files.el (file-name-split): New function (bug#50572).

* lisp/emacs-lisp/shortdoc.el (file-name): Mention it.
2021-11-10 00:26:32 +01:00
Juri Linkov
747a1ae4ac * doc/misc/eww.texi (Advanced): Fix missed variable name eww-retrieve-command. 2021-11-09 22:45:17 +02:00
Juri Linkov
52fe2340b8 * doc/emacs/windows.texi (Window Convenience): Use @code for windmove.
This refers to both a command and a user option.

* etc/NEWS: Add some ---.
2021-11-09 22:43:54 +02:00
Juri Linkov
7d3a654e2a * doc/emacs/maintaining.texi (Basic VC Editing): Mention Dired buffer.
* doc/emacs/text.texi (Outline Mode): Replace S-TAB with with S-<TAB>.

* etc/NEWS: Add some missing +++/--- and move some related items closer.
2021-11-09 22:40:15 +02:00
Lars Ingebrigtsen
e379cb6f13 Expand the etc/NEWS section about the `medium' font changes
* etc/NEWS: Expand upon the addition of the `medium' weight
(bug#51704).
2021-11-09 08:36:28 +01:00
Stefan Kangas
ba0e4f3ad3 Merge from origin/emacs-28
307d164c9c * lisp/mouse.el (mouse-buffer-menu-mode-groups): Tighten "...
818211ed89 * doc/emacs/search.texi (Isearch Yank): Add isearch-forwar...

# Conflicts:
#	etc/NEWS
2021-11-09 06:59:24 +01:00
Lars Ingebrigtsen
9a67efa11b Optionally use use xwidgets to display <video> elements in shr
* doc/misc/eww.texi (Advanced): Document it.
* lisp/net/shr.el (shr-use-xwidgets-for-media): New user option.
(shr-tag-video): Use xwidgets to display <video> elements.
2021-11-09 06:19:09 +01:00
Feng Shu
06fb81922d xwidget.el: limit buffer-name flicker in mode-line
* lisp/xwidget.el (xwidget-webkit): New customization group.
(xwidget-webkit-buffer-name-prefix): New user option.
(xwidget-webkit-callback): with-current-buffer only after get title,
which can limit buffer-name change in mode-line.
(xwidget-webkit-new-session, xwidget-webkit-import-widget): Use
current buffer to generate a temp xwidget-webkit buffer.
2021-11-09 04:52:59 +01:00
Juri Linkov
818211ed89 * doc/emacs/search.texi (Isearch Yank): Add isearch-forward-thing-at-point.
; * etc/NEWS: Add +++ for isearch-forward-thing-at-point, reorder (bug#51444).
2021-11-08 19:36:57 +02:00
Campbell Barton
5861b8d027 * lisp/subr.el (with-undo-amalgamate): New macro
This allows commands to be made without adding undo-barriers, e.g.
kmacro-exec-ring-item.
2021-11-08 08:34:52 -05:00
Stefan Kangas
2b7a0397e1 Merge from origin/emacs-28
fe91f4438c ; * etc/PROBLEMS: Move librsvg-related item to better loca...
2021-11-08 09:30:18 +01:00
Lars Ingebrigtsen
60d205d201 Mention yank-media-types in the manual
* doc/lispref/frames.texi (Yanking Media): Mention yank-media-types.
2021-11-08 06:08:33 +01:00
Lars Ingebrigtsen
4287e94c30 Add a new debugging/exploration command `yank-media-types'
* lisp/yank-media.el (yank-media-types): New command.
(yank-media-types--format): Helper command.
2021-11-08 05:44:10 +01:00
Stefan Kangas
fe91f4438c ; * etc/PROBLEMS: Move librsvg-related item to better location.
Reported by Mike Kupfer <mkupfer@alum.berkeley.edu>.
2021-11-08 04:53:20 +01:00
Lars Ingebrigtsen
5f70682d7b Allow 'C-x n d' to work in texinfo-mode
* lisp/textmodes/texinfo.el (texinfo-mode): Set
beginning/end-of-defun functions to allow narrowing to the current
node.
(texinfo--beginning-of-defun, texinfo--end-of-defun): New functions.
2021-11-07 23:57:04 +01:00
Alan Mackenzie
9e34efb29a Merge from origin/emacs-28
0c51db6bb1 Amend Follow Mode to handle header lines and tab lines cor...
261367781b * lisp/files.el (user-emacs-directory-warning): Clarify do...
8d9b55330d * doc/emacs/frames.texi (Tab Bars): Add text about mouse a...
d9b0b730e8 * doc/emacs/frames.texi (Tab Bars): Describe tab-last.
2021-11-07 20:53:21 +00:00
Juri Linkov
8d9b55330d * doc/emacs/frames.texi (Tab Bars): Add text about mouse and tab-bar-format
Briefly describe mouse commands on the tab bar and tab-bar-format (bug#51444)
2021-11-07 20:00:56 +02:00
Juri Linkov
d9b0b730e8 * doc/emacs/frames.texi (Tab Bars): Describe tab-last.
'C-9' and 'M-9' already had kindex, so describe them in the text as well
(bug#51444).
2021-11-07 19:56:28 +02:00
Stefan Kangas
ffe40045dc ; * etc/PROBLEMS: Minor clarification of a recent entry.
This was accidentally committed to master instead of emacs-28.

(cherry picked from commit a95520d3df)
2021-11-07 18:43:17 +01:00
Stefan Kangas
a95520d3df ; * etc/PROBLEMS: Minor clarification of a recent entry. 2021-11-07 18:32:28 +01:00
Michael Albinus
54fd811eec Merge from origin/emacs-28
7fdb2ae412 Add some unit tests for 'abbreviate-file-name'
21de5e7b2e Fix compilation MinGW warnings
54b726c815 ; * etc/PROBLEMS: More specific recipe for WebKit-related ...
d85cf33e49 Escape '%' in filenames to fix flymake warnings
6243a43ac2 Fix search string generation in nnimap-make-thread-query
f05b8a939b Update to Org 9.5-68-g77e2ec
2021-11-07 18:06:24 +01:00
Eli Zaretskii
4fdbd72025 'yank-media' is not universally supported
* doc/emacs/killing.texi (Clipboard):
* etc/NEWS: Say that 'yank-media' is not universally supported.
2021-11-07 16:31:29 +02:00
Eli Zaretskii
d5bb053809 Fix documentation and coding style in recent xwidget commits
* src/xwidget.c (Fmake_xwidget, find_widget)
(xwidget_motion_or_crossing, xwidget_button_1, xwidget_button):
Fix style in comments.
(Fxwidget_perform_lispy_event): Doc fix.
* src/xwidget.c (set_widget_if_text_view, kill_frame_xwidget_views):
* src/keyboard.c (make_lispy_event): Fix style of braces.

* lisp/xwidget.el (xwidget-webkit-isearch-mode): Fix keys in doc
string.

* doc/lispref/commands.texi (Xwidget Events): Fix markup and
wording.
* doc/lispref/display.texi (Xwidgets): Fix wording and markup.
* doc/emacs/misc.texi (Embedded WebKit Widgets): Fix wording.

* etc/NEWS: Fix wording and punctuation.
2021-11-07 11:50:06 +02:00
Eli Zaretskii
54b726c815 ; * etc/PROBLEMS: More specific recipe for WebKit-related crashes. 2021-11-07 09:34:30 +02:00
Po Lu
eabd735e6c Default to creating new related sessions
* doc/lispref/display.texi:
* etc/NEWS: Document changes.

* lisp/xwidget.el (xwidget-insert): Accept an extra RELATED argument.
(xwidget-webkit-new-session): Pass current session as RELATED if
present.

* src/xwidget.c (Fmake_xwidget): Make RELATED argument public.
2021-11-07 02:59:42 +01:00
Po Lu
0be966f97e Make "open in new window" from an xwidget's context menu work
* doc/lispref/commands.texi (Xwidget Events): Document new event type.
* doc/lisprefdisplay.texi (Xwidgets): Document new argument to
make-xwidget, and new function.
* etc/NEWS: Document changes.
* lisp/xwidget.el: Bind xwidget-display-event to
xwidget-webkit-display-event.

(xwidget-webkit-import-widget): New function.
(xwidget-webkit-display-event): New command.
* src/keyboard.c (kbd_buffer_get_event): New event type.
(make_lispy_event): Handle XWIDGET_DISPLAY_EVENTs.
(syms_f_keyboard): Define new symbol.
* src/termhooks.h (enum event_kind): New enum XWIDGET_DISPLAY_EVENT.

* src/xwidget.c (webkit_create_cb)
(store_xwidget_display_event)
(webkit_ready_to_show)
(webkit_create_cb_1, webkit_create_cb)
(Fset_xwidget_buffer): New functions.

(Fmake_xwidget): Add internal argument RELATED and connect create
signal.
(syms_of_xwidget): Define now subrs.
2021-11-07 02:59:42 +01:00