Po Lu
195f5a0dfa
Switch to xwidget webkit buffer even if a session already exists
...
* lisp/xwidget.el (xwidget-webkit-goto-url): Make behavior
when there is an existing session consistent.
2021-11-11 15:40:57 +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
Miha Rihtaršič
0a93fb499b
Set minibuffer-completion-* variables locally in more places
...
* lisp/calc/calc-store.el (calc-read-var-name):
* lisp/emacs-lisp/crm.el (completing-read-multiple):
* lisp/progmodes/cc-styles.el (c-read-offset):
* lisp/window.el (read-buffer-to-switch):
Set `minibuffer-completion-*` variables buffer-locally instead of
using a global let-binding (bug#48925).
Follow-up to commit
2021-05-01 "* lisp/minibuffer.el (completing-read-default): Fix bug#45474"
2021-11-11 06:16:52 +01:00
Lars Ingebrigtsen
396355f46b
Re-fix charset issues when yanking non-plain-text elements
...
* lisp/select.el (gui-get-selection): Make (gui-get-selection
'CLIPBOARD 'text/html) get decoded correctly (bug#31149), but still
avoid the logic on Windows.
2021-11-11 05:22:02 +01:00
Lars Ingebrigtsen
42037d8948
Don't save places in literally-visited files
...
* lisp/saveplace.el (save-places-to-alist): Don't save places in
literally-visited files (bug#51740).
2021-11-11 05:04:31 +01:00
John Cummings
9b80fe55f9
Add tests for 'insert-directory'
...
* test/lisp/files-tests.el: Add 'insert-directory' tests.
* test/lisp/files-resources/insert-directory/: Create directories and files to
use for testing 'insert-directory'.
Add tests for 'insert-directory' base functionality and regression tests for
the issue where free space was reported for the current directory instead of
the target of 'list-directory' (Bug#50630).
2021-11-11 04:37:46 +01:00
Lars Ingebrigtsen
6c405b7a49
Note that loaddefs.el is copied to ldefs-boot.el
...
* lisp/emacs-lisp/autoload.el (autoload-rubric): Add a comment to
the file noting what'll happen to it.
2021-11-11 04:08:51 +01:00
Lars Ingebrigtsen
b73e904070
Re-generated to get autoloads additions in emoji.el
2021-11-11 04:02:43 +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
Filipp Gunbin
d3ccf0895d
; Refer to Repeating from compare-windows info node
...
* doc/emacs/files.texi (Comparing Files): C-x z (`repeat') is very
convenient to use with compare-windows, so refer to its node.
2021-11-10 23:01:13 +03:00
Juri Linkov
2963de6540
* lisp/vc/vc-git.el (vc-git-mergebase): More meaningful error message.
...
Display a readable error message instead of signaling an error on nil value.
2021-11-10 20:41:19 +02: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
Eli Zaretskii
32086ea233
Fix font weights on MS-Windows
...
* src/w32font.c (w32_decode_weight, w32_encode_weight)
(w32_to_fc_weight): Adjust weight translations to match those in
font.c and gtkutil.c:xg_weight_to_symbol. (Bug#51704)
2021-11-10 20:17:33 +02:00
Robert Pluim
a491b73c76
Improve 'ensure-empty-lines' docstring
...
* lisp/emacs-lisp/subr-x.el (ensure-empty-lines): Fix typo and improve
wording.
2021-11-10 17:42:30 +01: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
Yuuki Harano
4dd1f56f29
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs into feature/pgtk
2021-11-11 00:39:53 +09:00
Stefan Kangas
4424970b2b
* admin/update_autogen: Remove unused variables.
2021-11-10 16:37:52 +01:00
Stefan Kangas
3aad70326d
Use "grep -E" instead of deprecated "egrep"
...
* admin/emake:
* test/lisp/so-long-tests/so-long-tests.el: Use "grep -E" instead of
deprecated "egrep".
2021-11-10 16:30:50 +01:00
Stefan Kangas
810fa21d26
Avoid another byte-compiler warning in package-quickstart.el
...
* lisp/emacs-lisp/package.el (package-quickstart-refresh): Avoid
byte-compiler warning "assignment to free variable" in
package-quickstart.el.
2021-11-10 15:24:29 +01:00
Stefan Kangas
1e7720d39a
Avoid spurious byte-compiler warnings in package-quickstart.el
...
* lisp/emacs-lisp/package.el (package-quickstart-refresh): Disable the
"`make-variable-buffer-local' not called at toplevel" byte-compiler
warnings. Given that we wrap it all in a let-form, these are mostly
false positives and not helpful.
2021-11-10 14:52:38 +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
e3f5f5d867
* admin/automerge: Fix quoting of some variables.
2021-11-10 13:06:58 +01:00
Stefan Kangas
99abafdd0d
* admin/automerge: Use mktemp if it exists.
2021-11-10 13:06:58 +01:00
Po Lu
4d99388c16
Prevent GDK warning about missing event devices in most cases
...
* src/xwidget.c (synthesize_focus_in_event): Set event device to
selected frame's pointer if it's an X frame.
2021-11-10 19:43:53 +08:00
Po Lu
4ab7a22abe
Add `xwidget-webkit-isearch-yank-kill'
...
* lisp/xwidget.el: Bind C-y to xwidget-webkit-yank-kill in incremental
search.
(xwidget-webkit-isearch-mode): Update doc string.
(xwidget-webkit-yank-kill): New function.
2021-11-10 19:43:53 +08: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
Stefan Kangas
d7e7f92fc3
; Merge from origin/emacs-28
...
The following commit was skipped:
a83ccc46fa * lisp/progmodes/prog-mode.el (prog-context-menu): Use "Go...
2021-11-10 12:12:29 +01:00
Stefan Kangas
1bb3fb4e45
Merge from origin/emacs-28
...
2782bc113e Revert "Fix localized display of date and time in the NS p...
2021-11-10 12:12:29 +01:00
Po Lu
b1de4a2ede
Prevent skipping results while changing search direction
...
* lisp/xwidget.el (xwidget-webkit-isearch-forward)
(xwidget-webkit-isearch-backward): Avoid moving to the next result one
too many times.
2021-11-10 17:53:13 +08:00
Benj
754810add1
Make the python missing-readline warning more helpful
...
* lisp/progmodes/python.el
(python-shell-completion-native-turn-on-maybe): Mention the "readline"
package (bug#48998).
Copyright-paperwork-exempt: yes
2021-11-10 10:07:42 +01:00
Robert Pluim
5a58b2f58c
; * doc/lispref/files.texi: Fix typo.
2021-11-10 08:56:03 +01:00
Lars Ingebrigtsen
f7c08c8b41
Make `C-c C-c' in erts-mode work with Point-Char elems
...
* lisp/progmodes/erts-mode.el (erts-mode--preceding-spec):
Factor out into own function (bug#51680).
(erts-run-test): Respect Point-Char settings.
2021-11-10 08:52:33 +01:00
Po Lu
32d1a735ce
Remove obsolete limitation
...
* src/xwidget.c (Fxwidget_webkit_goto_history): Accept any fixnum as
REL-POS, to be consistent with docstring.
2021-11-10 15:47:56 +08:00
Po Lu
465ec29926
Fix incorrect offset calculation for clipped xwidget views
...
* src/xwidget.c (from_embedder, to_embedder): Remove incorrect
adjustment of position by view clipping.
2021-11-10 14:29:54 +08:00
Po Lu
9653cbf355
Fix invisible content in WebKit dialogs
...
* src/xwidget.c (webkit_script_dialog_cb): Use custom label instead of
dialog box title to display message.
2021-11-10 14:19:15 +08:00
Po Lu
1e5eb566cc
Set embedder correctly to fix menus appearing in the wrong location
...
* src/xwidget.c (record_osr_embedder, from_embedder, to_embedder): New
functions.
(Fmake_xwidget): Attach from-embedder and to-embedder signals.
(find_widget_for_offscreen_window): New function.
(xwidget_button, xwidget_motion_or_crossing): Set embedder on event.
(Fdelete_xwidget_view): Remove embedder status if applicable.
* src/xwidget.h (struct xwidget): New fields `embedder' and
`embedder-view'.
2021-11-10 14:06:07 +08:00
Po Lu
e27ca55ecb
Revert "Fix mouse face in NS port"
...
This reverts commit 278e4fc9c6 .
2021-11-10 14:04:26 +08:00
Po Lu
2e2260427e
Revert "*** empty log message ***"
...
This reverts commit 68a2a3307d .
2021-11-10 14:04:25 +08:00
Po Lu
b21f1cabd8
Revert "Add support for event processing via XInput 2"
...
This reverts commit 346cfc8124 .
2021-11-10 14:04:24 +08:00
Po Lu
12beb77ec8
Revert "Fix erasing cursor on top of raised boxes in NS port"
...
This reverts commit 2b5a2ab50b .
2021-11-10 14:04:22 +08:00
Po Lu
da5de19423
Revert "Revert "Fix erasing cursor on top of raised boxes in NS port""
...
This reverts commit 7117bbc7aa .
2021-11-10 14:04:21 +08:00
Po Lu
e9b954f0fd
Revert "Support opening the toolkit menu bar on NS"
...
This reverts commit ff9cf991c1 .
2021-11-10 14:04:05 +08:00
oldosfan
ff9cf991c1
Support opening the toolkit menu bar on NS
...
* src/nsmenu.m (ns_activate_menubar, Fns_open_menubar): New functions.
* src/nsterm.m (ns_create_terminal): Add activate_menubar_hook.
* lisp/menu-bar.el (menu-bar-open): Use ns-menu-bar-open on Nextstep.
2021-11-10 13:27:01 +08:00
oldosfan
7117bbc7aa
Revert "Fix erasing cursor on top of raised boxes in NS port"
...
This reverts commit 960f0eb9ab657af85c532574b937d8851049b178.
2021-11-10 13:27:01 +08:00