1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-02 21:52:04 -08:00
Commit graph

155589 commits

Author SHA1 Message Date
Lars Ingebrigtsen
69c3ae2969 Make `next-buffer' order reflect command line file order
* lisp/startup.el (command-line-1): Make `next-buffer' order
reflect the command line file order (bug#21505).
2022-02-21 15:42:59 +01:00
Eli Zaretskii
b38223a844 A friendlier error message from image-mode in an empty buffer
* lisp/image-mode.el (image-mode): Handle the case where the empty
buffer doesn't visit a file  (Bug#54084)
2022-02-21 14:51:37 +02:00
Po Lu
9e084ddad1 Try to fix bug#54051
* src/xterm.c (handle_one_xevent): Don't give obviously bogus
configure events to Xt.
2022-02-21 19:40:28 +08:00
Po Lu
fc281e0df3 Prevent Haiku display from being opened multiple times
* src/haikufns.c (Fx_open_connection): Return if display
connection already exists.
2022-02-21 07:42:01 +00:00
Po Lu
e087c89b1e Prevent GTK from setting unreasonable size hints with large menu bars
* src/gtkutil.c (struct _EmacsMenuBar): New struct.
(emacs_menu_bar_init):
(emacs_menu_bar_class_init):
(emacs_menu_bar_get_preferred_width):
(emacs_menu_bar_new): New functions.
(xg_update_menu_item): Use our own menu bar class on GTK 3.
* src/gtkutil.h (EmacsMenuBar): New class.
2022-02-21 14:29:58 +08:00
Po Lu
816cf19a3a Implement left-right separators for dialog boxes on Haiku
* src/haiku_support.cc (BAlert_set_offset_spacing): New
function.
* src/haiku_support.h: Update prototypes.
* src/haikumenu.c (struct submenu_stack_cell): Remove unused
struct.
(haiku_dialog_show): Use offset spacing if a left-right boundary
was seen and make sure the user can always quit a dialog if no
enabled items exist.
2022-02-21 03:28:46 +00:00
Dmitry Gutov
f0ac4b7797 Bump xref.el version.
* lisp/progmodes/xref.el: Bump version to 1.4.0.
2022-02-21 04:15:39 +02:00
Dmitry Gutov
3d106897fd Public-ize xref-show-xrefs
* lisp/progmodes/xref.el (xref-show-xrefs):
New function (wrapper for an older, private one, bug#42967).
2022-02-21 03:57:27 +02:00
Po Lu
7159c1af08 ; * src/haikuterm.c (haiku_read_socket): Add extra keyboard modifiers. 2022-02-21 01:40:01 +00:00
Po Lu
9e6df01bf1 Respect `extra-keyboard-modifiers' when handling XI2 keyboard input
* src/xterm.c (handle_one_xevent): Add extra modifiers to
XI2 keyboard state.
2022-02-21 09:33:54 +08:00
Dmitry Gutov
3d2c213ce9 Public-ize xref-current-item
* lisp/progmodes/xref.el (xref--current-item):
Rename to 'xref-current-item' (bug#53956).  Update all references.
2022-02-21 02:59:50 +02:00
Lars Ingebrigtsen
0b755ee695 Further fixes for eww-open-url on Tramp files
* lisp/url/url-file.el (url-file-asynch-callback): Simplify
slightly (bug#40425).
* lisp/url/url-queue.el (url-queue-start-retrieve): Allow
non-local files here, too.
2022-02-20 22:37:04 +01:00
Kyle Meyer
b7a651ba37 Update to Org 9.5.2-17-gea6b74 2022-02-20 14:04:28 -05:00
Juri Linkov
17c75146a4 * lisp/mouse.el (context-menu-entry): Remove help-buffer-under-preparation.
(bug#53910)
2022-02-20 20:56:06 +02:00
Lars Ingebrigtsen
4450ae0f78 Fix a compilation warning in cus-edit-tests.el 2022-02-20 19:17:49 +01:00
Stefan Monnier
48c65f219d (loadhist_initialize): Fix regression test failure
* src/lread.c (loadhist_initialize): Adjust assertion for the nil case.
(readevalloop): Signal an error for non-string `sourcename`.
2022-02-20 13:16:35 -05:00
Eli Zaretskii
e6f541f238 Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2022-02-20 18:43:43 +02:00
Eli Zaretskii
92ce3b5d54 ; Fix compilation warnings
* src/keyboard.c (kbd_buffer_get_event):
* src/xterm.c (handle_one_xevent): Fix compiler warnings.
2022-02-20 18:42:33 +02:00
Lars Ingebrigtsen
c52ef7ec4b Adjust doc-tests-documentation/autoloaded-macro
* test/src/doc-tests.el
(doc-tests-documentation/autoloaded-macro): Adjust test -- rx is
loaded in nativecomp Emacsen when the tests are run, apparently.
2022-02-20 17:42:21 +01:00
Lars Ingebrigtsen
b8f4307472 Simplify Minibuffer Edit example
* doc/emacs/mini.texi (Minibuffer Edit): Say how to disable SPC
and ? completion (bug#36745).
2022-02-20 16:57:21 +01:00
Raffael Stocker
3a8c3f7abd ; Don't reference obsolete variables in edebug.el
* lisp/emacs-lisp/edebug.el (edebug-mode, edebug-eval-mode):
Don't reference obsolete variables in the doc strings.
(Bug#54070)
2022-02-20 17:50:45 +02:00
Lars Ingebrigtsen
8be576286d Add instructions on disabling SPC completion to Minibuffer Edit
* doc/emacs/mini.texi (Minibuffer Edit): Say how to disable SPC
and ? completion (bug#36745).
2022-02-20 16:23:01 +01:00
Lars Ingebrigtsen
5649b45323 Fix compilation warning introduced by previous shr.el change
* lisp/net/shr.el (url-file): Fix compilation warning.
2022-02-20 16:14:49 +01:00
Lars Ingebrigtsen
3a6129e723 Make eww work better on Tramp HTML
* lisp/net/eww.el (eww-open-file): Use it.
(eww-browse-url): Ditto.

* lisp/net/shr.el (shr-expand-url): Allow loading relative Tramp
files if we're reading from a file:// document.

* lisp/url/url-file.el (url-allow-non-local-files): New user option
(bug#40425).
2022-02-20 16:14:05 +01:00
Lars Ingebrigtsen
aa6d1027ce Make `g' work in eww buffers displaying Tramp files
* lisp/net/eww.el (eww--file-buffer): Refactored out.
(eww-open-file): From here.
(eww-reload): Make reloading work in Tramp files.
2022-02-20 16:14:05 +01:00
Lars Ingebrigtsen
d710b84225 Make string-pixel-width about 40% faster
* lisp/emacs-lisp/subr-x.el (string-pixel-width): Speed up.
2022-02-20 16:14:05 +01:00
Michael Albinus
277b49d7a3 * doc/misc/tramp.texi (Customizing Methods): Add tramp-nspawn. 2022-02-20 15:24:31 +01:00
Lars Ingebrigtsen
8d1dfb2af3 Quote files that start with - in dired
* lisp/dired-aux.el (dired-shell-stuff-it): Add ./ to file names
that start with - (bug#10458).
2022-02-20 14:50:59 +01:00
Michael Albinus
f462620847 * lisp/net/tramp.el (tramp-read-passwd): Adapt for empty user names. 2022-02-20 14:04:24 +01:00
Lars Ingebrigtsen
84fe486660 Fix compilation warning in previous sendmail.el change
* lisp/mail/sendmail.el (mm-long-lines-p): Fix compilation warning.
2022-02-20 13:45:56 +01:00
Lars Ingebrigtsen
f0b4f2ee6b Ensure that `mail-send' breaks too-long lines
* lisp/mail/sendmail.el (mail-send): Ensure that we fold too-long
lines when using `sendmail-user-agent' (bug#53412).
2022-02-20 13:41:57 +01:00
Matthias Meulien
06b7c53927 Add more bookmark types
* lisp/gnus/gnus-sum.el (gnus-summary-bookmark-jump):
* lisp/man.el (Man-bookmark-jump): Mark the bookmark type
(bug#54030).
2022-02-20 13:23:33 +01:00
Po Lu
7a6e229a2e Fix font panel on NS
* src/nsterm.m ([EmacsView changeFont:]): Don't use emacs_event,
instead placing events directly into the keyboard buffer.
2022-02-20 20:00:28 +08:00
Po Lu
7b7c09c561 * src/haikumenu.c (haiku_dialog_show): Set `popup_activated_p'.
Author:
2022-02-20 10:42:41 +00:00
Po Lu
dad7ee2353 Handle GUI input while inside popup dialog on Haiku
* src/haiku_support.cc (alert_popup_value): New variable.
(be_alert_thread_entry): New function.
(BAlert_go): Complete rewrite that allows async input to be
handled while the popup is active.
* src/haiku_support.h: Update prototypes.
* src/haikumenu.c (haiku_dialog_show, haiku_popup_dialog): Stop
blocking input and pass required callbacks to `BAlert_go'.
* src/haikuterm.c (haiku_term_init): Set interrupt input mode to
t.
2022-02-20 10:38:38 +00:00
Po Lu
d7fc7bdd81 Fix typo in last change
* src/xterm.c (handle_one_xevent): Use `xi_done_keysym' label
when ignoring modifier keys from XI2 input.
2022-02-20 10:05:46 +08:00
Po Lu
15910e5da3 Ignore modifier keys early when handling X key press events
* src/xterm.c (handle_one_xevent): Ignore modifier keys earlier
without going through the usual key lookup.
(x_delete_terminal): Free recorded modifier map.
(x_find_modifier_meanings): Record modifier map.

* src/xterm.h (struct x_display_info): New field `modmap'.
2022-02-20 10:03:28 +08:00
Po Lu
7a699e79f6 Free XI2 devices in x_delete_display instead
* src/xterm.c (x_delete_display): Free XI2 device data here
instead, since it doesn't involve contacting the X server any
more.
(x_delete_terminal): Stop freeing XI2 device data.
2022-02-20 09:14:00 +08:00
Philip Kaludercic
5767e06b8e Revert "; * rcirc.el (rcirc-print): Prefer sleep-for over sit-for" 2022-02-19 22:04:44 +01:00
Stefan Monnier
ecaedf2117 (specpdl_unrewind): Fix corner case
* src/lisp.h (enum specbind_tag): New elem SPECPDL_NOP.

* src/eval.c (specpdl_unrewind): Zap entries that can't be applied any more,
and simplify.
(default_toplevel_binding, lexbound_p, Fbacktrace__locals): Simplify.
(do_one_unbind, mark_specpdl): Handle SPECPDL_NOP.
2022-02-19 14:55:39 -05:00
Philip Kaludercic
43237f3d27 ; * rcirc.el (rcirc-print): Prefer sleep-for over sit-for
Compare

	(benchmark-run 100000 (sit-for 0))
	;; => (2.600030102 12 1.523461324000003)

with

	(benchmark-run 100000 (sleep-for 0))
	;; (0.015882939 0 0.0)
2022-02-19 20:35:01 +01:00
Stefan Monnier
f262a6af36 (macroexp-warn-and-return): Fix bug#53618
* lisp/emacs-lisp/macroexp.el (macroexp-warn-and-return):
Reorder arguments to preserve compatibility with that of Emacs-28.
(macroexp--unfold-lambda, macroexp--expand-all):
* lisp/emacs-lisp/pcase.el (pcase-compile-patterns, pcase--u1):
* lisp/emacs-lisp/gv.el (gv-ref):
* lisp/emacs-lisp/eieio.el (defclass):
* lisp/emacs-lisp/eieio-core.el (eieio-oref, eieio-oref-default)
(eieio-oset-default):
* lisp/emacs-lisp/easy-mmode.el (define-minor-mode):
* lisp/emacs-lisp/cl-macs.el (cl-symbol-macrolet, cl-defstruct):
* lisp/emacs-lisp/cl-generic.el (cl-defmethod):
* lisp/emacs-lisp/byte-run.el (defmacro, defun):
* lisp/emacs-lisp/bindat.el (bindat--type): Adjust accordingly.
2022-02-19 14:20:02 -05:00
Stefan Monnier
c3e064013e (loadhist_initialize): Minor refactoring
Consolidate a bit of code.

* src/lread.c (loadhist_initialize): New function.
(Fload, readevalloop): Use it.
2022-02-19 14:12:14 -05:00
Stefan Monnier
910cdcf8c3 * lisp/vc/diff-mode.el (diff--font-lock-prettify): Fix mishaps
This reverts the last change so it also applies to non-git diffs again.
Instead, we're now more careful not to mis-recognize file headers as
addition/removal lines.
In addition to that, mark the file header such that it's
re-font-locked all at once, and to still recognize it after
`diff-reverse-direction`.
2022-02-19 13:45:04 -05:00
Michael Albinus
7e4ef09aa0 Adapt Tramp password prompts for sudo-like methods
* doc/misc/tramp.texi (Password handling): Explain entries for
doas, sudo and sudoedit.

* etc/NEWS (Tramp): Document changed password prompts.

* lisp/net/tramp-sh.el (tramp-methods) <sudo, doas>:
Add `tramp-password-previous-hop'.
(tramp-maybe-open-connection): Modify `previous-hop' if needed.

* lisp/net/tramp-sudoedit.el (tramp-methods) <sudoedit>:
Add `tramp-password-previous-hop'.
(tramp-sudoedit-null-hop): New defconst.
(tramp-sudoedit-send-command): Use it.

* lisp/net/tramp.el (tramp-methods): Adapt docstring.
(tramp-null-hop): New defconst.
(tramp-get-remote-null-device): Use it.
2022-02-19 18:38:12 +01:00
Lars Ingebrigtsen
a72e0e50f0 Some vtable.texi copy edits
* doc/misc/vtable.texi (Making A Table): Mention the accessors.
2022-02-19 16:58:52 +01:00
Lars Ingebrigtsen
9f571a2e6c Mention vtable accessor functions
* doc/misc/vtable.texi (Making A Table): Mention the accessors.
2022-02-19 16:25:13 +01:00
Lars Ingebrigtsen
16abc24035 Improve the vtable documentation on argument types
* doc/misc/vtable.texi (Making A Table): Say what the argument
types are.
2022-02-19 16:13:39 +01:00
Lars Ingebrigtsen
9eefe59d57 Fix a vtable example
* doc/misc/vtable.texi (Introduction): Fix example.
2022-02-19 14:48:39 +01:00
Eli Zaretskii
999115845a Improve vtable documentation
* doc/misc/vtable.texi (top-level): Add @syncodeindex directives.
(Introduction): Fix wording and markup.  Add indexing.
(Making A Table, Commands, Interface Functions): Fix typos and
markup.  Add indexing.

* etc/NEWS: Improve wording of the vtable's NEWS entry.

* doc/misc/Makefile.in (INFO_COMMON): Add 'vtable'.
2022-02-19 15:34:01 +02:00