]> git.eshelyaron.com Git - emacs.git/log
emacs.git
2 years agoExercise wire right after event is filtered for native input
Po Lu [Mon, 17 Jan 2022 00:29:39 +0000 (08:29 +0800)]
Exercise wire right after event is filtered for native input

* src/xterm.c (handle_one_xevent): Run a no-op immediately after
an event was filtered by GDK.

2 years agoAdd undelete-frame-max instead of undelete-frame-mode (bug#51883)
Juri Linkov [Sun, 16 Jan 2022 20:58:30 +0000 (22:58 +0200)]
Add undelete-frame-max instead of undelete-frame-mode (bug#51883)

* doc/emacs/frames.texi (Frame Commands): Replace
undelete-frame-mode with undelete-frame-max.

* lisp/frame.el (undelete-frame-max): New defcustom, by default 1.
(undelete-frame--handle-delete-frame): Use undelete-frame-max
instead of hard-coded 16.
(undelete-frame-mode): Remove function.
(after-init-hook): Add hook undelete-frame--handle-delete-frame to
delete-frame-functions using after-init-hook to not store the
initial frame.
(undelete-frame): Remove undelete-frame-mode.  Use undelete-frame-max
instead of hard-coded 16.

* lisp/menu-bar.el (menu-bar-file-menu): Remove menu item undelete-frame-mode.

* src/frame.c (Fdelete_frame): Replace `undelete-frame-mode' with
`undelete-frame-max' in the docstring.

2 years agoExtend Outline mode with default visibility state
Matthias Meulien [Sun, 16 Jan 2022 18:13:21 +0000 (20:13 +0200)]
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.

2 years agoFix XI2 event filtering for very old versions of libXi
Po Lu [Sun, 16 Jan 2022 13:39:14 +0000 (21:39 +0800)]
Fix XI2 event filtering for very old versions of libXi

* src/xterm.c (handle_one_xevent): Handle cases where
xev->display is NULL.

2 years agoFix the xft build
Po Lu [Sun, 16 Jan 2022 11:45:54 +0000 (19:45 +0800)]
Fix the xft build

* src/xsettings.h [!HAVE_PGTK]: Include dispextern.h and remove
duplicate definition of Display_Info.

2 years agoUse kMenuWindowFeel on Haiku toolkip windows
Po Lu [Sun, 16 Jan 2022 11:02:58 +0000 (11:02 +0000)]
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.

2 years agoMake help event generation on Haiku behave closer to X
Po Lu [Sun, 16 Jan 2022 10:43:22 +0000 (10:43 +0000)]
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.

2 years agoReduce poll time for Haiku file dialogs
Po Lu [Sun, 16 Jan 2022 10:12:22 +0000 (10:12 +0000)]
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.

2 years ago* src/gtkutil.c (xg_widget_key_press_event_cb): Also raise input signal.
Po Lu [Sun, 16 Jan 2022 10:02:04 +0000 (18:02 +0800)]
* src/gtkutil.c (xg_widget_key_press_event_cb): Also raise input signal.

2 years ago* src/pgtkterm.c (evq_flush): Shift events one by one
Yuuki Harano [Sun, 16 Jan 2022 08:25:28 +0000 (17:25 +0900)]
* src/pgtkterm.c (evq_flush): Shift events one by one

2 years agoAvoid focus and allow monospace text in tooltip frames on Haiku
Po Lu [Sun, 16 Jan 2022 05:57:14 +0000 (05:57 +0000)]
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.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Sun, 16 Jan 2022 05:51:09 +0000 (06:51 +0100)]
Merge from origin/emacs-28

e488601849 Update to Org 9.5.2-9-g7ba24c
95640360f0 * lisp/net/dictionary.el (dictionary-context-menu): Use pa...

2 years ago; Merge from origin/emacs-28
Stefan Kangas [Sun, 16 Jan 2022 05:51:09 +0000 (06:51 +0100)]
; Merge from origin/emacs-28

The following commit was skipped:

2dcb1bc474 Mark a few more map tests as unstable on Emacs 28 (Bug#467...

2 years agoMerge from origin/emacs-28
Stefan Kangas [Sun, 16 Jan 2022 05:51:09 +0000 (06:51 +0100)]
Merge from origin/emacs-28

7f36aca99d * lisp/indent.el (tab-first-completion): Fix incorrect cho...

2 years agoUpdate modifier meanings even if an xkb_desc was not available
Po Lu [Sun, 16 Jan 2022 05:46:39 +0000 (13:46 +0800)]
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.

2 years ago* src/xwidget.c (webkit_js_to_lisp): Use correct constant to check size.
Po Lu [Sun, 16 Jan 2022 02:05:17 +0000 (10:05 +0800)]
* src/xwidget.c (webkit_js_to_lisp): Use correct constant to check size.

2 years agoFix a minor snafu when resizing frames on Haiku
Po Lu [Sun, 16 Jan 2022 00:47:41 +0000 (00:47 +0000)]
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.

2 years agoAdd some more mailcap tests.
Tassilo Horn [Sat, 15 Jan 2022 22:59:20 +0000 (23:59 +0100)]
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.

2 years agoUpdate to Org 9.5.2-9-g7ba24c
Kyle Meyer [Sat, 15 Jan 2022 21:02:26 +0000 (16:02 -0500)]
Update to Org 9.5.2-9-g7ba24c

2 years ago* lisp/net/dictionary.el (dictionary-context-menu): Use package prefix.
Juri Linkov [Sat, 15 Jan 2022 18:58:31 +0000 (20:58 +0200)]
* lisp/net/dictionary.el (dictionary-context-menu): Use package prefix.

2 years ago* lisp/mouse.el (context-menu-map): Select clicked window (bug#53249).
Juri Linkov [Sat, 15 Jan 2022 18:37:15 +0000 (20:37 +0200)]
* lisp/mouse.el (context-menu-map): Select clicked window (bug#53249).

2 years agoMore fixes for recently committed context-menu additions from bug#52973
Juri Linkov [Sat, 15 Jan 2022 18:33:45 +0000 (20:33 +0200)]
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).

2 years ago* doc/emacs/search.texi (Special Isearch): Move isearch-char-by-name item back
Juri Linkov [Sat, 15 Jan 2022 18:27:15 +0000 (20:27 +0200)]
* 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.

2 years ago* pcvs-info.el (cvs-mode-toggle-mark): Typo
Stefan Monnier [Sat, 15 Jan 2022 14:31:55 +0000 (09:31 -0500)]
* pcvs-info.el (cvs-mode-toggle-mark): Typo

2 years agoFix setting cursor in pixel-scrolling modes
Eli Zaretskii [Sat, 15 Jan 2022 13:58:21 +0000 (15:58 +0200)]
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)

2 years agoDon't strip properties in show-paren-function
Lars Ingebrigtsen [Sat, 15 Jan 2022 13:15:54 +0000 (14:15 +0100)]
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.

2 years agoUse preferred XIM style without trying to detect if it's supported
Po Lu [Sat, 15 Jan 2022 12:14:31 +0000 (20:14 +0800)]
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.

2 years agoMark a few more map tests as unstable on Emacs 28 (Bug#46722).
Philipp Stephani [Sat, 15 Jan 2022 11:40:09 +0000 (12:40 +0100)]
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.

2 years ago* lisp/indent.el (tab-first-completion): Fix incorrect choices.
Philipp Stephani [Fri, 14 Jan 2022 19:49:35 +0000 (20:49 +0100)]
* lisp/indent.el (tab-first-completion): Fix incorrect choices.

2 years agoAdd emoji-alternate-names variable
Lars Ingebrigtsen [Sat, 15 Jan 2022 10:55:18 +0000 (11:55 +0100)]
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.

2 years agomailcap: Docfix & handle function-viewer case in mailcap-view-file
Tassilo Horn [Sat, 15 Jan 2022 10:23:46 +0000 (11:23 +0100)]
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.

2 years agoPrevent pre-edit overlay text from being displayed after a command
Po Lu [Sat, 15 Jan 2022 10:18:34 +0000 (18:18 +0800)]
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.

2 years ago* src/emacsgtkfixed.c (XSetWMSizeHints): Remove some useless code.
Po Lu [Sat, 15 Jan 2022 10:11:35 +0000 (18:11 +0800)]
* src/emacsgtkfixed.c (XSetWMSizeHints): Remove some useless code.

2 years agoDon't bug out on improper lists in pp-emacs-lisp-code
Lars Ingebrigtsen [Sat, 15 Jan 2022 09:40:39 +0000 (10:40 +0100)]
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).

2 years agoUse "server complete" instead of "complete" in gud-gdb-completions
Tom Tromey [Sat, 15 Jan 2022 09:30:24 +0000 (10:30 +0100)]
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).

2 years ago(gnus-summary-hide-thread): Fix thread hiding for dummy roots.
Alex Bochannek [Sat, 15 Jan 2022 09:28:14 +0000 (10:28 +0100)]
(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).

2 years agoImprove the with-output-to-temp-buffer doc string
Lars Ingebrigtsen [Sat, 15 Jan 2022 08:30:01 +0000 (09:30 +0100)]
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).

2 years agoRevert "Add command to invoke a search engine"
Lars Ingebrigtsen [Sat, 15 Jan 2022 08:06:50 +0000 (09:06 +0100)]
Revert "Add command to invoke a search engine"

This reverts commit 3f36d0836274a01d3cfc73f53ddbc76afc1d8a5e.

Similar functionality has been added to webjump, so this commit duplicated that.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Sat, 15 Jan 2022 05:47:59 +0000 (06:47 +0100)]
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'

2 years ago; Merge from origin/emacs-28
Stefan Kangas [Sat, 15 Jan 2022 05:47:59 +0000 (06:47 +0100)]
; Merge from origin/emacs-28

The following commit was skipped:

281b878858 Mark test-map-into as unstable

2 years agoFind a way to make lowering frames work on Haiku
Po Lu [Sat, 15 Jan 2022 05:30:28 +0000 (05:30 +0000)]
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.

2 years agoFilter key release events when using native input without having XIM
Po Lu [Sat, 15 Jan 2022 05:25:23 +0000 (13:25 +0800)]
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.

2 years agoFix native input when using core input events
Po Lu [Sat, 15 Jan 2022 01:40:28 +0000 (09:40 +0800)]
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.

2 years agoRemove non-functional configure test
Po Lu [Sat, 15 Jan 2022 01:11:11 +0000 (09:11 +0800)]
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.

2 years ago* lisp/simple.el (undo-no-redo): Fix customization group
Philipp Stephani [Fri, 14 Jan 2022 18:35:03 +0000 (19:35 +0100)]
* lisp/simple.el (undo-no-redo): Fix customization group

2 years ago* lisp/progmodes/xref.el (xref-file-name-display): Fix docstring.
Philipp Stephani [Fri, 14 Jan 2022 21:01:06 +0000 (22:01 +0100)]
* lisp/progmodes/xref.el (xref-file-name-display): Fix docstring.

2 years agopcvs-info.el: Prefer `declare-function` over `autoload`
Stefan Monnier [Fri, 14 Jan 2022 20:28:21 +0000 (15:28 -0500)]
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.

2 years ago* lisp/indent.el (indent-for-tab-command): Use 'eq' for symbols.
Philipp Stephani [Fri, 14 Jan 2022 20:02:08 +0000 (21:02 +0100)]
* lisp/indent.el (indent-for-tab-command): Use 'eq' for symbols.

2 years agoindent-for-tab-command: Deal with large point or modiff values.
Philipp Stephani [Fri, 14 Jan 2022 19:59:28 +0000 (20:59 +0100)]
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.

2 years agoSimplify code for 'indent-for-tab-command' slightly.
Philipp Stephani [Fri, 14 Jan 2022 19:56:03 +0000 (20:56 +0100)]
Simplify code for 'indent-for-tab-command' slightly.

* lisp/indent.el (indent-for-tab-command): Don't use a one-element
list for SYN.

2 years ago(macroexp--expand-all): Fix bug#53227 and bug#46636
Stefan Monnier [Fri, 14 Jan 2022 17:26:30 +0000 (12:26 -0500)]
(macroexp--expand-all): Fix bug#53227 and bug#46636

* lisp/emacs-lisp/macroexp.el (macroexp--expand-all): Don't mis-expand
invalid funcalls.

2 years agoimage-dired: Use MD5 for thumb filename generation
Stefan Kangas [Fri, 14 Jan 2022 15:17:33 +0000 (16:17 +0100)]
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)

2 years agoAvoid another segfault in 'face_at_buffer_position'
Eli Zaretskii [Fri, 14 Jan 2022 14:11:34 +0000 (16:11 +0200)]
Avoid another segfault in 'face_at_buffer_position'

* src/xfaces.c (face_at_buffer_position): Make really sure the
default face is usable.  (Bug#53254)

2 years ago* src/xterm.c: Add a small writeup on input handling on X.
Po Lu [Fri, 14 Jan 2022 11:47:35 +0000 (19:47 +0800)]
* src/xterm.c: Add a small writeup on input handling on X.

Hopefully I will extend this section with details about more
aspects of X11 support in the future.

2 years agoRegenerate ldefs-boot.el
Lars Ingebrigtsen [Fri, 14 Jan 2022 11:12:47 +0000 (12:12 +0100)]
Regenerate ldefs-boot.el

2 years agoSkip ffap test on some systems
Lars Ingebrigtsen [Fri, 14 Jan 2022 11:10:46 +0000 (12:10 +0100)]
Skip ffap test on some systems

2 years agoMake function-alias-p use a better error symbol
Lars Ingebrigtsen [Fri, 14 Jan 2022 10:51:24 +0000 (11:51 +0100)]
Make function-alias-p use a better error symbol

* lisp/subr.el (function-alias-p): Use the same error symbol as
`indirect-function'.

2 years agoDon't have ffap interpret ":/bin" as the current directory
Lars Ingebrigtsen [Fri, 14 Jan 2022 09:29:43 +0000 (10:29 +0100)]
Don't have ffap interpret ":/bin" as the current directory

* lisp/ffap.el (ffap-file-at-point): Don't interpret :/bin as the
current directory (bug#52441).

2 years agoAdd a `shortdoc' convenience alias
Lars Ingebrigtsen [Fri, 14 Jan 2022 09:03:15 +0000 (10:03 +0100)]
Add a `shortdoc' convenience alias

* lisp/emacs-lisp/shortdoc.el (shortdoc): Add a convenience alias
(bug#52968).

2 years agoFix leak when refs are sent to a frame during destruction on Haiku
Po Lu [Fri, 14 Jan 2022 09:46:50 +0000 (09:46 +0000)]
Fix leak when refs are sent to a frame during destruction on Haiku

* src/haikuterm.c (haiku_read_socket): Free b->ref if it was
sent from a frame that was destroyed.

2 years agoMake sure the X mouse position hook always looks at an X frame
Po Lu [Fri, 14 Jan 2022 09:43:09 +0000 (17:43 +0800)]
Make sure the X mouse position hook always looks at an X frame

* src/xterm.c (XTmouse_position): Check that f1 is an X frame.

2 years agospelling-tests.el: use ert-with-temp-directory
Robert Pluim [Thu, 13 Jan 2022 14:54:28 +0000 (15:54 +0100)]
spelling-tests.el: use ert-with-temp-directory

* test/lisp/so-long-tests/spelling-tests.el (so-long-spelling): Use
;ert-with-temp-directory' instead of passing :directory to
'ert-with-temp-file', and restore the prefix/suffix values used
originally with 'make-temp-file'.

2 years agospelling-tests.el: ignore errors when checking for ispell
Robert Pluim [Thu, 13 Jan 2022 09:57:56 +0000 (10:57 +0100)]
spelling-tests.el: ignore errors when checking for ispell

ispell-valid-dictionary-list can signal an error, eg when the local
hunspell installation cannot find any dictionaries, so it's best to
ignore that error.

* test/lisp/so-long-tests/spelling-tests.el (so-long-spelling): Wrap
ispell check in ignore-errors, as ispell-valid-dictionary-list can
signal an error.

2 years agoAdd new context menu functions to the context-menu-functions type
Lars Ingebrigtsen [Fri, 14 Jan 2022 08:49:44 +0000 (09:49 +0100)]
Add new context menu functions to the context-menu-functions type

* lisp/mouse.el (context-menu-functions): Add new menu functions
to the defcustom type list (bug#52973).

2 years agoAdd command to invoke a search engine
Philip Kaludercic [Fri, 31 Dec 2021 14:21:13 +0000 (15:21 +0100)]
Add command to invoke a search engine

* mouse.el (context-menu-online-search): Add new function
(eww-search-prefix): Declare variable from eww.el
(mouse-online-search-at-point): Add new command

2 years agoImplement context-menu-mode support for hi-lock
Philip Kaludercic [Fri, 31 Dec 2021 11:45:52 +0000 (12:45 +0100)]
Implement context-menu-mode support for hi-lock

* hi-lock.el (hi-lock-symbol-at-mouse): Add new command
(hi-lock-context-menu): Add new function

2 years agoImplement context-menu-mode support for man pages
Philip Kaludercic [Fri, 31 Dec 2021 11:37:50 +0000 (12:37 +0100)]
Implement context-menu-mode support for man pages

* man.el (Man-at-mouse): Add new command
(Man-context-menu): Add new function

2 years agoFix @item in the Emacs manual
Juri Linkov [Fri, 14 Jan 2022 08:32:36 +0000 (10:32 +0200)]
Fix @item in the Emacs manual

* doc/emacs/maintaining.texi (Identifier Search): Replace @itemx with @item.

* doc/emacs/search.texi (Special Isearch): Remove @item.

2 years agoFix mailcap setup when no mailcap files exist
Lars Ingebrigtsen [Fri, 14 Jan 2022 08:25:32 +0000 (09:25 +0100)]
Fix mailcap setup when no mailcap files exist

* lisp/net/mailcap.el (mailcap-parse-mailcaps): Ensure that we
populate mailcap--computed-mime-data even if none of the files
exist (bug#53009).

2 years ago(battery-status-function) Fix errors in Termux
Lucien Cartier-Tilet [Fri, 14 Jan 2022 08:17:25 +0000 (09:17 +0100)]
(battery-status-function) Fix errors in Termux

* lisp/battery.el (battery-status-function): In Termux, neither
/sys/ or /proc/ are readable on phones that are not rooted. This
patch makes Emacs verify if they are readable before it attemps
reading them (bug#53026).

Copyright-paperwork-exempt: yes

2 years agoImprove some nntp/nnimap error messages
Robert Pluim [Fri, 14 Jan 2022 08:03:53 +0000 (09:03 +0100)]
Improve some nntp/nnimap error messages

* lisp/gnus/nntp.el (nntp-send-string):
(nntp-wait-for):
(nntp-accept-process-output):
(nntp-possibly-change-group):
* lisp/gnus/nnimap.el (nnimap-retrieve-headers): Improve error
messages (bug#53070).

2 years ago* lisp/progmodes/xref.el (xref-query-replace-in-results): Fix prefix-arg.
Juri Linkov [Fri, 14 Jan 2022 08:18:43 +0000 (10:18 +0200)]
* lisp/progmodes/xref.el (xref-query-replace-in-results): Fix prefix-arg.

Use current-prefix-arg.

2 years ago* doc/emacs/search.texi (Special Isearch): Put related items together.
Juri Linkov [Fri, 14 Jan 2022 08:17:37 +0000 (10:17 +0200)]
* doc/emacs/search.texi (Special Isearch): Put related items together.

Move isearch-char-by-name closer to isearch-emoji-by-name.

2 years agoUpdate docs of 'xref-query-replace-in-results'
Eli Zaretskii [Fri, 14 Jan 2022 08:01:39 +0000 (10:01 +0200)]
Update docs of 'xref-query-replace-in-results'

* doc/emacs/maintaining.texi (Identifier Search): Update the
documentation of 'xref-query-replace-in-results'.

2 years agoUse assq_no_quit on all local_var_alist accesses
Sergey Vinokurov [Fri, 14 Jan 2022 07:49:11 +0000 (08:49 +0100)]
Use assq_no_quit on all local_var_alist accesses

* src/data.c (Fkill_local_variable):
* src/buffer.c (buffer_local_value): Use assq_no_quit instead of
Fassoc/Fassq on local_var_alist (bug#53242).

* src/data.c (Flocal_variable_p): Use assq_no_quit instead of
open-coding the search on local_var_alist.

2 years agoImprove documentation of 'xref-find-references-and-replace'
Eli Zaretskii [Fri, 14 Jan 2022 07:41:24 +0000 (09:41 +0200)]
Improve documentation of 'xref-find-references-and-replace'

* etc/NEWS: Clarify the 'xref-find-references-and-replace' entry.

* doc/emacs/maintaining.texi (Identifier Search): Document
'xref-find-references-and-replace'.

2 years agoMark test-map-into as unstable
Lars Ingebrigtsen [Fri, 14 Jan 2022 07:39:48 +0000 (08:39 +0100)]
Mark test-map-into as unstable

* test/lisp/emacs-lisp/map-tests.el (test-map-into): Mark as
unstable (bug#46722).

Do not merge to master.

2 years agoFix python-eldoc affecting unrelated comint processes
Miha Rihtaršič [Fri, 14 Jan 2022 07:33:58 +0000 (08:33 +0100)]
Fix python-eldoc affecting unrelated comint processes

* lisp/progmodes/python.el (python-shell-send-string-no-output): Don't
let-bind comint-preoutput-filter-functions globally for all comint
processes.  Modify the behaviour of only the current python
process (bug#53219).

2 years ago; * INSTALL (Alternative window systems): Improve wording.
Eli Zaretskii [Fri, 14 Jan 2022 07:26:20 +0000 (09:26 +0200)]
; * INSTALL (Alternative window systems): Improve wording.

2 years agoImprove function-alias-p documentation
Robert Pluim [Fri, 14 Jan 2022 07:25:07 +0000 (08:25 +0100)]
Improve function-alias-p documentation

* doc/lispref/functions.texi (Defining Functions): Improve the text.

2 years agoTry to make sure an XKB desc is always available
Po Lu [Fri, 14 Jan 2022 06:57:55 +0000 (14:57 +0800)]
Try to make sure an XKB desc is always available

* src/xterm.c (handle_one_xevent): Re-retrieve XKB map if it's
unavailable for some reason upon handling an XKB map or keyboard
notify event.

2 years agoFix byte-compilation warning in pcvs-info
Lars Ingebrigtsen [Fri, 14 Jan 2022 06:10:26 +0000 (07:10 +0100)]
Fix byte-compilation warning in pcvs-info

* lisp/vc/pcvs-info.el (cvs-mode-toggle-mark): Fix
byte-compilation warning.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Fri, 14 Jan 2022 05:30:23 +0000 (06:30 +0100)]
Merge from origin/emacs-28

34ca4ff9a5 Fix Edebug specification for inline functions (Bug#53068).
3c06c37a8b Remove mention of removed `gnus-treat-play-sounds' variabl...

2 years ago* INSTALL: Document using Emacs on alternative window systems.
Po Lu [Fri, 14 Jan 2022 04:34:18 +0000 (12:34 +0800)]
* INSTALL: Document using Emacs on alternative window systems.

2 years ago; Tweak the NEWS entry
Dmitry Gutov [Fri, 14 Jan 2022 02:45:39 +0000 (04:45 +0200)]
; Tweak the NEWS entry

2 years agoxref-find-references-and-replace: New command
Dmitry Gutov [Fri, 14 Jan 2022 02:38:39 +0000 (04:38 +0200)]
xref-find-references-and-replace: New command

* lisp/progmodes/xref.el (xref-find-references-and-replace):
New command.

2 years agoSteamline xref-query-replace-in-results
Dmitry Gutov [Fri, 14 Jan 2022 02:30:16 +0000 (04:30 +0200)]
Steamline xref-query-replace-in-results

* lisp/progmodes/xref.el (xref-query-replace-in-results):
Steamline the most common scenario
(https://lists.gnu.org/archive/html/emacs-devel/2022-01/msg00864.html).

2 years agoFix out of bounds bitmap access on Haiku
Po Lu [Fri, 14 Jan 2022 01:24:34 +0000 (01:24 +0000)]
Fix out of bounds bitmap access on Haiku

* src/haiku_draw_support.cc (BView_DrawBitmapWithEraseOp): Fix
out of bounds access to bitmap data.

2 years agoRefresh keyboard mapping upon receiving new XKB map
Po Lu [Fri, 14 Jan 2022 00:52:53 +0000 (08:52 +0800)]
Refresh keyboard mapping upon receiving new XKB map

* src/xterm.c (handle_one_xevent): Call
XkbRefreshKeyboardMapping where required.

2 years agoPrefer defvar-keymap to easy-mmode-defmap
Stefan Kangas [Thu, 13 Jan 2022 22:16:16 +0000 (23:16 +0100)]
Prefer defvar-keymap to easy-mmode-defmap

* lisp/progmodes/gud.el (gud-minibuffer-local-map):
* lisp/vc/pcvs-info.el (cvs-status-map): Use defvar-keymap.

* lisp/emacs-lisp/easy-mmode.el (easy-mmode-defmap): Document as
deprecated.

2 years ago; tweak doc
Sam Steingold [Thu, 13 Jan 2022 17:13:30 +0000 (12:13 -0500)]
; tweak doc

2 years agoImprove documentation of 'isearch-emoji-by-name'
Eli Zaretskii [Thu, 13 Jan 2022 14:40:28 +0000 (16:40 +0200)]
Improve documentation of 'isearch-emoji-by-name'

* lisp/isearch.el (isearch-menu-bar-map, isearch-emoji-by-name):
Fix wording of documentation.

* etc/NEWS: Fix wording of the 'isearch-emoji-by-name' entry.

* doc/emacs/search.texi (Special Isearch): Fix wording of the
documentation of 'isearch-emoji-by-name'; move it out of the
enumeration that deals with non-ASCII characters in general.

2 years agoFix frame-undeletion menu items
Eli Zaretskii [Thu, 13 Jan 2022 14:18:50 +0000 (16:18 +0200)]
Fix frame-undeletion menu items

* lisp/menu-bar.el (menu-bar-file-menu): Fix wording of the new
menu items and their help-echo.  Don't show "Undelete Frame"
in the menu unless there is a frame to undelete.

2 years agoAvoid scrolling display when point moves into invisible text
Eli Zaretskii [Thu, 13 Jan 2022 13:40:30 +0000 (15:40 +0200)]
Avoid scrolling display when point moves into invisible text

* src/xdisp.c (try_cursor_movement): Handle point moving into
invisible text.  (Bug#53215)

2 years ago* doc/lispref/functions.texi (Defining Functions): Fix thinko.
Michael Albinus [Thu, 13 Jan 2022 13:09:44 +0000 (14:09 +0100)]
* doc/lispref/functions.texi (Defining Functions): Fix thinko.

2 years agoFix Edebug specification for inline functions (Bug#53068).
Philipp Stephani [Thu, 13 Jan 2022 11:55:06 +0000 (12:55 +0100)]
Fix Edebug specification for inline functions (Bug#53068).

* lisp/emacs-lisp/inline.el (inline-quote): Fix Edebug specification.

* test/lisp/emacs-lisp/edebug-tests.el (edebug-tests-inline): New unit
test.

2 years agoImprove preserving X coordinate during scroll commands
Eli Zaretskii [Thu, 13 Jan 2022 12:21:10 +0000 (14:21 +0200)]
Improve preserving X coordinate during scroll commands

* src/window.c (window_scroll_pixel_based): Don't unnecessarily
move the iterator.  (Bug#53220)

2 years ago* lisp/jsonrpc.el (Version): Bump to 1.0.15.
Stefan Kangas [Thu, 13 Jan 2022 12:00:25 +0000 (13:00 +0100)]
* lisp/jsonrpc.el (Version): Bump to 1.0.15.

2 years agoFix passive input focus when the pointer moves over inferiors
Po Lu [Thu, 13 Jan 2022 11:42:14 +0000 (19:42 +0800)]
Fix passive input focus when the pointer moves over inferiors

* src/xterm.c (handle_one_xevent): Don't detect focus on entry
and exit events if we're not on the top window.

2 years ago; * test/lisp/progmodes/flymake-tests.el: remove duplicate function
Mattias Engdegård [Thu, 13 Jan 2022 10:27:21 +0000 (11:27 +0100)]
; * test/lisp/progmodes/flymake-tests.el: remove duplicate function