1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-03 10:31:37 -08:00
Commit graph

153653 commits

Author SHA1 Message Date
Matthias Meulien
5c30c8778d Extend Outline mode with default visibility state
* etc/NEWS: Announce support for default visibility state (bug#51809).

* lisp/outline.el (outline-mode, outline-minor-mode): Ensure default
visibility state is applied with outline-apply-default-state.
(outline-default-state, outline-default-rules)
(outline-default-long-line, outline-default-line-count): New defcustoms.
(outline-apply-default-state, outline-show-only-headings)
(outline--show-headings-up-to-level): New functions.
2022-01-16 20:13:21 +02:00
Po Lu
8f65246523 Fix XI2 event filtering for very old versions of libXi
* src/xterm.c (handle_one_xevent): Handle cases where
xev->display is NULL.
2022-01-16 21:40:07 +08:00
Po Lu
1220cf605b Fix the xft build
* src/xsettings.h [!HAVE_PGTK]: Include dispextern.h and remove
duplicate definition of Display_Info.
2022-01-16 19:45:54 +08:00
Po Lu
5476026119 Use kMenuWindowFeel on Haiku toolkip windows
* src/haiku_support.cc (BWindow_set_tooltip_decoration): Use
kMenuWindowFeel and set flags here.
* src/haikufns.c (Fx_show_tip): Don't set_avoid_focus manually
since setting tooltip decorations already does that.
2022-01-16 11:02:58 +00:00
Po Lu
7f074fecf4 Make help event generation on Haiku behave closer to X
* src/haikuterm.c (haiku_read_socket): Generate help events more
like how X does it.
2022-01-16 10:43:22 +00:00
Po Lu
df53beb2db Reduce poll time for Haiku file dialogs
* src/haiku_support.c (be_popup_file_dialog): Reduce idle
processor load by increasing timeout.  The timeout is still too
low to be noticable by the user.
2022-01-16 10:12:22 +00:00
Po Lu
0ae6491a89 * src/gtkutil.c (xg_widget_key_press_event_cb): Also raise input signal. 2022-01-16 18:02:04 +08:00
Yuuki Harano
da35e9d5ef * src/pgtkterm.c (evq_flush): Shift events one by one 2022-01-16 17:25:28 +09:00
Po Lu
9b308a333b Avoid focus and allow monospace text in tooltip frames on Haiku
* src/haikufns.c (Fx_show_tip): Set avoid focus on tooltip
frames.

* src/haikuterm.c (haiku_default_font_parameter): Don't special
case the default font on tooltip frames, since the bug that was
supposed to work around has already been fixed.
2022-01-16 05:59:39 +00:00
Stefan Kangas
19d681d24b Merge from origin/emacs-28
e488601849 Update to Org 9.5.2-9-g7ba24c
95640360f0 * lisp/net/dictionary.el (dictionary-context-menu): Use pa...
2022-01-16 06:51:09 +01:00
Stefan Kangas
5cdee3a997 ; Merge from origin/emacs-28
The following commit was skipped:

2dcb1bc474 Mark a few more map tests as unstable on Emacs 28 (Bug#467...
2022-01-16 06:51:09 +01:00
Stefan Kangas
3fbe137adb Merge from origin/emacs-28
7f36aca99d * lisp/indent.el (tab-first-completion): Fix incorrect cho...
2022-01-16 06:51:09 +01:00
Po Lu
e2b9f3347e Update modifier meanings even if an xkb_desc was not available
* src/xterm.c (handle_one_event): Always update modifiers after
the keyboard mapping is refreshed.
2022-01-16 13:46:39 +08:00
Po Lu
c59e870cce * src/xwidget.c (webkit_js_to_lisp): Use correct constant to check size. 2022-01-16 10:05:17 +08:00
Po Lu
80c52346c2 Fix a minor snafu when resizing frames on Haiku
* src/haiku_support.cc (BWindow_resize): Adjust for minor snafu
where BWindow::ResizeTo uses BRect-style width and height
instead of actual width and height.
2022-01-16 00:47:41 +00:00
Tassilo Horn
77d823794e Add some more mailcap tests.
* test/lisp/net/mailcap-resources/mailcap: New file.
* test/lisp/net/mailcap-resources/test.test: New file.
* test/lisp/net/mailcap-tests.el (with-pristine-mailcap): New macro.
(mailcap-parsing-and-mailcap-mime-info): New test for parsing mailcap
files and selecting the right viewer.
(mailcap--test-result): New variable.
(mailcap--test-viewer): New function.
(mailcap-view-file): New test for mailcap-view-file.
2022-01-16 00:21:17 +01:00
Kyle Meyer
e488601849 Update to Org 9.5.2-9-g7ba24c 2022-01-15 16:02:26 -05:00
Juri Linkov
95640360f0 * lisp/net/dictionary.el (dictionary-context-menu): Use package prefix. 2022-01-15 20:58:31 +02:00
Juri Linkov
791694c5fe * lisp/mouse.el (context-menu-map): Select clicked window (bug#53249). 2022-01-15 20:37:15 +02:00
Juri Linkov
f19b34376a More fixes for recently committed context-menu additions from bug#52973
* lisp/hi-lock.el (highlight-symbol-at-mouse): New defalias.
(hi-lock-face-symbol-at-mouse): Rename from hi-lock-symbol-at-mouse.
(hi-lock-context-menu): Use thing-at-mouse and middle-separator.

* lisp/man.el (Man-context-menu): Fix Man-at-mouse and use middle-separator.

* lisp/mouse.el (context-menu-functions): Remove context-menu-online-search.
Add occur-context-menu and dictionary-context-menu (bug#50552).
2022-01-15 20:33:45 +02:00
Juri Linkov
7055104358 * doc/emacs/search.texi (Special Isearch): Move isearch-char-by-name item back
Put it at the end of the list and still closer to isearch-emoji-by-name.
2022-01-15 20:27:15 +02:00
Stefan Monnier
525dc6e5c4 * pcvs-info.el (cvs-mode-toggle-mark): Typo 2022-01-15 09:31:55 -05:00
Eli Zaretskii
de3a957265 Fix setting cursor in pixel-scrolling modes
* src/xdisp.c (redisplay_window): Don't set cursor to any glyph
row past the one that contains EOB.  (Bug#53275)
2022-01-15 15:58:21 +02:00
Lars Ingebrigtsen
17231a26d8 Don't strip properties in show-paren-function
* lisp/paren.el (show-paren-function): Don't strip text properties
(bug#51606) because that makes the offscreen context less
informative.
2022-01-15 14:16:01 +01:00
Po Lu
ae65f2089c Use preferred XIM style without trying to detect if it's supported
The old code would in general fall back to the default if the
preferred style wasn't available, which is usually worse than
what the user specified

* src/xfns.c (best_xim_style): Stop checking if the preferred
input style is supported.
2022-01-15 20:17:22 +08:00
Philipp Stephani
2dcb1bc474 Mark a few more map tests as unstable on Emacs 28 (Bug#46722).
At least for me, these tests still occasionally fail.

Do not merge to master.

* test/lisp/emacs-lisp/map-tests.el (test-map-into-hash-test)
(test-map-merge, test-map-merge-with, test-map-merge-empty): Mark as
unstable.
2022-01-15 12:40:09 +01:00
Philipp Stephani
7f36aca99d * lisp/indent.el (tab-first-completion): Fix incorrect choices. 2022-01-15 12:07:01 +01:00
Lars Ingebrigtsen
015d881b6d Add emoji-alternate-names variable
* lisp/international/emoji.el (emoji-alternate-names): New
variable (bug#52860).
(emoji-search): Note usage.
(emoji--choose-emoji): Use it.
2022-01-15 12:06:48 +01:00
Tassilo Horn
45f1e427fc mailcap: Docfix & handle function-viewer case in mailcap-view-file
* lisp/net/mailcap.el (mailcap-mime-data): Fix docstring: if viewer is
a symbol/function, it should have zero args and expect the file's
contents to be in the current buffer.
(mailcap-view-file): Implement the case where the chosen viewer is a
function and not a shell command.
2022-01-15 11:27:20 +01:00
Po Lu
7a679953e2 Prevent pre-edit overlay text from being displayed after a command
This works around buggy input methods causing the overlay to be
displayed alongside newly inserted text for a brief period.

* lisp/term/x-win.el (x-clear-preedit-text): New function.
(x-preedit-text): Add said function to pre-command-hook.  It
will remove itself when triggered.
2022-01-15 18:20:15 +08:00
Po Lu
3b27edd5f5 * src/emacsgtkfixed.c (XSetWMSizeHints): Remove some useless code. 2022-01-15 18:11:35 +08:00
Lars Ingebrigtsen
f43b8f3831 Don't bug out on improper lists in pp-emacs-lisp-code
* lisp/emacs-lisp/pp.el (pp--format-list): Don't bug out on
improper lists (bug#52917).
2022-01-15 10:40:39 +01:00
Tom Tromey
ad3971f885 Use "server complete" instead of "complete" in gud-gdb-completions
* lisp/progmodes/gud.el (gud-gdb-completions): gud-gdb sends a
"complete" command to gdb to implement command line completion.  It
would be better to send "server complete".  This is what Emacs does
for other behind-the-scenes commands it sends (bug#52922).
2022-01-15 10:30:24 +01:00
Alex Bochannek
f501d0aed0 (gnus-summary-hide-thread): Fix thread hiding for dummy roots.
* lisp/gnus/gnus-sum.el (gnus-summary-hide-thread): Make thread
hiding work when using dummy `gnus-summary-make-false-root'
(bug#52923).
2022-01-15 10:28:14 +01:00
Lars Ingebrigtsen
7651f044e2 Improve the with-output-to-temp-buffer doc string
* lisp/subr.el (with-output-to-temp-buffer): Clarify the point of
the macro (bug#53265).
2022-01-15 09:30:01 +01:00
Lars Ingebrigtsen
639488b55a Revert "Add command to invoke a search engine"
This reverts commit 3f36d08362.

Similar functionality has been added to webjump, so this commit duplicated that.
2022-01-15 09:06:50 +01:00
Stefan Kangas
8df828e405 Merge from origin/emacs-28
5990148860 * lisp/simple.el (undo-no-redo): Fix customization group
ac2cdb8a46 * lisp/progmodes/xref.el (xref-file-name-display): Fix doc...
c05864dd25 Avoid another segfault in 'face_at_buffer_position'
2022-01-15 06:47:59 +01:00
Stefan Kangas
8267973c31 ; Merge from origin/emacs-28
The following commit was skipped:

281b878858 Mark test-map-into as unstable
2022-01-15 06:47:59 +01:00
Po Lu
43618cd44c Find a way to make lowering frames work on Haiku
* doc/lispref/frames.texi (Raising and Lowering): Document that
lowering frames is now supported on Haiku.
* src/haikuterm.c (haiku_frame_raise_lower): Implement a hack to
lower frames.
2022-01-15 05:30:28 +00:00
Po Lu
9d809ed9bb Filter key release events when using native input without having XIM
* src/xterm.c (handle_one_xevent): Also check for XI key
release events when using native input on a build without XIM.
2022-01-15 13:25:23 +08:00
Po Lu
9845f6b9aa Fix native input when using core input events
* src/gtkutil.c (xg_filter_key): Test for core key press events
correctly.
* src/xterm.c (handle_one_xevent): Also check for KeyRelease
events.
2022-01-15 09:40:28 +08:00
Po Lu
1f5f3b7e89 Remove non-functional configure test
It cannot work anymore, leading to compiler warnings when
building xterm.c.

* configure.ac: Remove test for whether
XRegisterIMInstantiateCallback wants XPointer or XPointer * as
the client_data.

* src/xterm.c (xim_initialize):
(xim_close_dpy): Just cast client data to void * and hope that
the compiler keeps quiet.
2022-01-15 09:11:11 +08:00
Philipp Stephani
5990148860 * lisp/simple.el (undo-no-redo): Fix customization group 2022-01-14 22:06:13 +01:00
Philipp Stephani
ac2cdb8a46 * lisp/progmodes/xref.el (xref-file-name-display): Fix docstring. 2022-01-14 22:01:06 +01:00
Stefan Monnier
0e20d76a38 pcvs-info.el: Prefer declare-function over autoload
* lisp/vc/pcvs-info.el (cvs-mode-toggle-mark): Use `declare-function`
to silence the byte-compiler warning.
2022-01-14 15:28:21 -05:00
Philipp Stephani
ec52d2775a * lisp/indent.el (indent-for-tab-command): Use 'eq' for symbols. 2022-01-14 21:02:08 +01:00
Philipp Stephani
64109fcae7 indent-for-tab-command: Deal with large point or modiff values.
* lisp/indent.el (indent-for-tab-command): Don't use 'eq' to compare
integers that aren't guaranteed to be fixnums.
2022-01-14 20:59:28 +01:00
Philipp Stephani
c723401151 Simplify code for 'indent-for-tab-command' slightly.
* lisp/indent.el (indent-for-tab-command): Don't use a one-element
list for SYN.
2022-01-14 20:56:03 +01:00
Stefan Monnier
d29291d665 (macroexp--expand-all): Fix bug#53227 and bug#46636
* lisp/emacs-lisp/macroexp.el (macroexp--expand-all): Don't mis-expand
invalid funcalls.
2022-01-14 12:26:30 -05:00
Stefan Kangas
bef9fcc999 image-dired: Use MD5 for thumb filename generation
* lisp/image-dired.el (image-dired-thumb-name): Revert back to MD5 for
file name generation to preserve backwards-compatibility.  (Bug#53229)
2022-01-14 16:18:34 +01:00