]> git.eshelyaron.com Git - emacs.git/log
emacs.git
2 years agoExpunge read-with-symbol-position and read-symbol-positions-list
Alan Mackenzie [Mon, 24 Jan 2022 01:08:03 +0000 (01:08 +0000)]
Expunge read-with-symbol-position and read-symbol-positions-list

These are remnants of the old way of determining byte compiler warning
positions.

* src/lread.c (read_internal_start, read1): Remove initializations amd
manipulations of these variables.
(syms_of_lread): Remove the declarations of the variables.

* lisp/emacs-list/bytecomp.el (compile-defun, byte-compile-from-buffer):
Remove bindings of the variables.

2 years agoSet IC preedit area on ConfigureNotify
Po Lu [Mon, 24 Jan 2022 00:46:39 +0000 (08:46 +0800)]
Set IC preedit area on ConfigureNotify

* src/xterm.c (handle_one_xevent): Set the preedit spot when a
ConfigureNotify event is received.

2 years agoBind print-symbols-bare to t in byte-compile-from-buffer
Alan Mackenzie [Sun, 23 Jan 2022 16:41:23 +0000 (16:41 +0000)]
Bind print-symbols-bare to t in byte-compile-from-buffer

* lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Bind
print-symbols-bare to t here for the benefit of non-defining forms in buffers.

2 years agoMake message in hack-local-variables-confirm clearer
Lars Ingebrigtsen [Sun, 23 Jan 2022 16:09:55 +0000 (17:09 +0100)]
Make message in hack-local-variables-confirm clearer

* lisp/files.el (hack-local-variables-confirm): Mention the
.dir-locals.el file in the message to be slightly less confusing
(bug#27066).

2 years agoMake `C-x M-x insert-kbd-macro RET RET' work better
Lars Ingebrigtsen [Sun, 23 Jan 2022 15:48:42 +0000 (16:48 +0100)]
Make `C-x M-x insert-kbd-macro RET RET' work better

* lisp/macros.el (insert-kbd-macro): Don't give bogus output on
names that have no function definition (bug#30309).

2 years agoFix tabulated-list-widen-current-column widening wrong column
Thuna [Sun, 23 Jan 2022 14:55:48 +0000 (15:55 +0100)]
Fix tabulated-list-widen-current-column widening wrong column

* tabulated-list.el (tabulated-list-widen-current-column): Use correct
comparison operation when checking if point is within the column
bounds  (bug#53375).

Copyright-paperwork-exempt: yes

2 years agoAllow using outline minor mode in `M-x apropos-value'
Lars Ingebrigtsen [Sun, 23 Jan 2022 14:43:19 +0000 (15:43 +0100)]
Allow using outline minor mode in `M-x apropos-value'

* lisp/apropos.el (apropos-mode): Set up outline minor mode
(bug#31094).
(apropos-value): Don't add "---" separators, because it doesn't
really seem to add anything much.
(apropos-value-internal): Escape newlines so that no values can be
confused for headings.

2 years agoMake apropos-print-doc more resilient
Lars Ingebrigtsen [Sun, 23 Jan 2022 14:08:34 +0000 (15:08 +0100)]
Make apropos-print-doc more resilient

* lisp/apropos.el (apropos-print-doc): Don't bug out on doc
strings that have invalid command key syntaxes.

2 years agoFix position argument to macroexp--warn-wrap in cconv--convert-funcbody
Alan Mackenzie [Sun, 23 Jan 2022 13:47:38 +0000 (13:47 +0000)]
Fix position argument to macroexp--warn-wrap in cconv--convert-funcbody

* lisp/emacs-lisp/cconv.el (cconv--convert-funcbody): Change the position
argument to macroexp--warn-wrap from BODY to ARG, to give correct positions in
warning messages.

2 years agoImprove `M-x speedbar' under emacs -nw very slightly
Lars Ingebrigtsen [Sun, 23 Jan 2022 13:46:55 +0000 (14:46 +0100)]
Improve `M-x speedbar' under emacs -nw very slightly

* lisp/speedbar.el (speedbar-frame-mode): `M-x speedbar' doesn't
seem to do anything visible under -nw, so issue a message in that
case to tell the user how to proceed (bug#32597).

2 years agoRegenerate ldefs-boot.el
Lars Ingebrigtsen [Sun, 23 Jan 2022 13:37:25 +0000 (14:37 +0100)]
Regenerate ldefs-boot.el

2 years agoMake kill-process into a command
Lars Ingebrigtsen [Sun, 23 Jan 2022 13:36:54 +0000 (14:36 +0100)]
Make kill-process into a command

* doc/lispref/processes.texi (Signals to Processes): Document it.
* src/process.c (Fkill_process): Make into a command (bug#32640).

2 years agoAdd new function to prompt a user for a process name
Phil Sainty [Sun, 23 Jan 2022 13:35:52 +0000 (14:35 +0100)]
Add new function to prompt a user for a process name

* lisp/emacs-lisp/subr-x.el (read-process-name): New function
(bug#32640).

2 years agoMake sure cursors are drawn correctly after haiku_clear_frame
Po Lu [Sun, 23 Jan 2022 13:34:03 +0000 (13:34 +0000)]
Make sure cursors are drawn correctly after haiku_clear_frame

* src/haikuterm.c (haiku_clear_frame): Mark all cursors as off.

2 years agoImprove scheme-imenu-generic-expression
Alex Kost [Sun, 23 Jan 2022 13:12:34 +0000 (14:12 +0100)]
Improve scheme-imenu-generic-expression

* lisp/progmodes/scheme.el (scheme-imenu-generic-expression):
Improve so that we match `define-public' etc (bug#33117).

2 years agoMake occur edit mode more resilient
Lars Ingebrigtsen [Sun, 23 Jan 2022 12:54:16 +0000 (13:54 +0100)]
Make occur edit mode more resilient

* lisp/replace.el (occur-engine): Make the prefix read-only so
that it's preserved in edit mode (bug#53419).

2 years agoRevert the other bits related to `load-read-file'
Lars Ingebrigtsen [Sun, 23 Jan 2022 12:43:53 +0000 (13:43 +0100)]
Revert the other bits related to `load-read-file'

* src/lread.c (syms_of_lread): Revert the other bits related to
reverting `byte-compile-from-buffer'/`load-read-file'.

2 years agoFix menus on the no-toolkit build when using XI2
Po Lu [Sun, 23 Jan 2022 11:34:39 +0000 (19:34 +0800)]
Fix menus on the no-toolkit build when using XI2

* src/xmenu.c (x_activate_menubar):
(create_and_show_popup_menu): Only ungrab the device if it is
actually grabbed.
(x_menu_show): Release XI2 passive grab.

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

6d3608be88 Seccomp: improve support for newer versions of glibc (Bug#...
e58ecd01d5 EUDC: Fix a quoting bug in the BBDB backend

2 years agoFix documentation formatting error
Po Lu [Sun, 23 Jan 2022 01:25:55 +0000 (01:25 +0000)]
Fix documentation formatting error

* doc/lispref/streams.texi (Input Functions): Remove extraneous
@end defun.

2 years ago* src/haikumenu.c (run_menu_bar_help_event): Fix bounds sanity check.
Po Lu [Sun, 23 Jan 2022 01:19:22 +0000 (01:19 +0000)]
* src/haikumenu.c (run_menu_bar_help_event): Fix bounds sanity check.

2 years agoClean up some of the X extension related code
Po Lu [Sun, 23 Jan 2022 01:14:16 +0000 (09:14 +0800)]
Clean up some of the X extension related code

* src/image.c (Fimage_transforms_p): Remove unused variables.
* src/xterm.c (x_probe_xfixes_extension):
(x_term_init): Probe for xfixes during terminal initialization
instead.
* src/xterm.h (struct x_display_info): New fields for xfixes
support.

2 years ago* src/pgtkterm.c (pgtk_flash): Fix input blocking.
Po Lu [Sun, 23 Jan 2022 00:45:21 +0000 (08:45 +0800)]
* src/pgtkterm.c (pgtk_flash): Fix input blocking.

2 years agoMinor copyedits in "Symbols with Position"
Eli Zaretskii [Sat, 22 Jan 2022 18:47:10 +0000 (20:47 +0200)]
Minor copyedits in "Symbols with Position"

* doc/lispref/symbols.texi (Symbols with Position): Fix wording
and improve indexing.

2 years agoMerge branch 'master' of /home/acm/emacs/emacs.git/master
Alan Mackenzie [Sat, 22 Jan 2022 18:02:01 +0000 (18:02 +0000)]
Merge branch 'master' of /home/acm/emacs/emacs.git/master

2 years agoDon't use 'load-read-function' in byte-compile-from-buffer
Alan Mackenzie [Sat, 22 Jan 2022 17:48:46 +0000 (17:48 +0000)]
Don't use 'load-read-function' in byte-compile-from-buffer

* lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Call
read-positioning-symbols directly, rather than binding load-read-function to
it.  This is so that a lower level use of load-read-function will not return a
form containing symbols with position.

2 years agoMerge branch 'scratch/correct-warning-pos'
Alan Mackenzie [Sat, 22 Jan 2022 17:41:03 +0000 (17:41 +0000)]
Merge branch 'scratch/correct-warning-pos'

2 years agoFix print-unreadable-function documentation
Lars Ingebrigtsen [Sat, 22 Jan 2022 15:46:46 +0000 (16:46 +0100)]
Fix print-unreadable-function documentation

* doc/lispref/streams.texi (Output Variables): Fix description of
non-string values.

2 years agoSeccomp: improve support for newer versions of glibc (Bug#51073)
Philipp Stephani [Sat, 22 Jan 2022 16:11:37 +0000 (17:11 +0100)]
Seccomp: improve support for newer versions of glibc (Bug#51073)

* lib-src/seccomp-filter.c (main): Allow 'pread64' and 'faccessat2'
system calls.  Newer versions of glibc use these system call (starting
with commits 95c1056962a3f2297c94ce47f0eaf0c5b6563231 and
3d3ab573a5f3071992cbc4f57d50d1d29d55bde2, respectively).

2 years agoAdd direct remote copying in Tramp's scp support
Michael Albinus [Sat, 22 Jan 2022 16:12:14 +0000 (17:12 +0100)]
Add direct remote copying in Tramp's scp support

* doc/misc/tramp.texi: Use @trampfn{} function where possible.
(Top, Configuration): Insert section 'Ssh setup' and remove
section 'Windows setup hints' in menu.
(Default Method): Mention tramp-use-scp-direct-remote-copying.
(Ssh setup): New node.
(Windows setup hints): Move it to that new node.
(Frequently Asked Questions): Move items about ssh config to that node.

* etc/NEWS: Add Tramp's direct remote copying feature.  Fix typos.

* lisp/net/tramp-sh.el (tramp-use-scp-direct-remote-copying):
New defcustom.
(tramp-methods) <scp, scpx>: Add "%y" marker.
(tramp-scp-direct-remote-copying): New defun.
(tramp-do-copy-or-rename-file-out-of-band): Extend for direct
remote copying.

* lisp/net/tramp.el (tramp-methods): Extend docstring.
(tramp-password-prompt-not-unique): New defvar.
(tramp-read-passwd): Adapt docstring.
(tramp-read-passwd-without-cache): New defun.
(tramp-action-password): Call it.

2 years agoMark nil vc-follow-symlinks as safe
Lars Ingebrigtsen [Sat, 22 Jan 2022 15:44:25 +0000 (16:44 +0100)]
Mark nil vc-follow-symlinks as safe

* lisp/vc/vc-hooks.el (vc-follow-symlinks): A nil value should be
safe for file-local (bug#33264).

2 years agoUse load-read-function in byte-compile-from-buffer
Lars Ingebrigtsen [Sat, 22 Jan 2022 15:37:14 +0000 (16:37 +0100)]
Use load-read-function in byte-compile-from-buffer

* lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Use
load-read-function.

* src/lread.c (syms_of_lread): Adjust doc string (bug#33723).

2 years agoClarify Vprint_unreadable_function doc string
Lars Ingebrigtsen [Sat, 22 Jan 2022 15:24:42 +0000 (16:24 +0100)]
Clarify Vprint_unreadable_function doc string

* src/print.c (syms_of_print): Clarify Vprint_unreadable_function
doc string

2 years agoFix documentation of 'unprintable' stuff
Eli Zaretskii [Sat, 22 Jan 2022 14:49:06 +0000 (16:49 +0200)]
Fix documentation of 'unprintable' stuff

* src/print.c (syms_of_print) <print-unreadable-function>:
* doc/lispref/streams.texi (Input Functions, Output Variables):
Improve the documentation of 'print-unreadable-function' and
'readablep'.  Add indexing and cross-references.

2 years agoImprove dired-do-create-files slightly
Lars Ingebrigtsen [Sat, 22 Jan 2022 14:42:59 +0000 (15:42 +0100)]
Improve dired-do-create-files slightly

* lisp/dired-aux.el (dired-do-create-files): Expand slightly upon
the doc string (bug#35367).  Suggested by Mike Kupfer
<mkupfer@alum.berkeley.edu>.

2 years agoSpeed up multisession--set-value-sqlite slightly
Lars Ingebrigtsen [Sat, 22 Jan 2022 14:13:19 +0000 (15:13 +0100)]
Speed up multisession--set-value-sqlite slightly

* lisp/emacs-lisp/multisession.el
(multisession--set-value-sqlite): Use `readablep'.

2 years agoAdd new function 'readablep'
Lars Ingebrigtsen [Sat, 22 Jan 2022 14:11:17 +0000 (15:11 +0100)]
Add new function 'readablep'

* doc/lispref/streams.texi (Input Functions): Document it.
* lisp/subr.el (readablep): New function (bug#52566).

2 years agoAdd new variable print-unreadable-function
Lars Ingebrigtsen [Sat, 22 Jan 2022 14:06:33 +0000 (15:06 +0100)]
Add new variable print-unreadable-function

* doc/lispref/streams.texi (Output Variables): Document it.

* src/print.c (print_vectorlike): Use the variable.
(syms_of_print): New variable print-unreadable-function
(bug#52566).

2 years agoAdd some menu bar help code on GNUstep
Po Lu [Sat, 22 Jan 2022 13:51:46 +0000 (21:51 +0800)]
Add some menu bar help code on GNUstep

* src/nsmenu.m ([EmacsMenu menu:willHighlightItem:]): Implement
help event generation for GNUstep.

2 years agoFix PGTK build with xwidgets
Po Lu [Sat, 22 Jan 2022 12:28:22 +0000 (20:28 +0800)]
Fix PGTK build with xwidgets

* src/xwidget.c: Swap some preprocessor definitions around.
Reported by Iñigo Serna <inigoserna@gmail.com>.

2 years agoFix GNUstep build warnings
Po Lu [Sat, 22 Jan 2022 12:22:30 +0000 (20:22 +0800)]
Fix GNUstep build warnings

* src/nsmenu.m
([EmacsMenu menu:updateItem:atIndex:shouldCancel:])
([EmacsMenu menuHasKeyEquivalent:forEvent:target:action:])
([EmacsMenu numberOfItemsInMenu:]): New methods.

2 years agoFix HTML target marking in shr
Lars Ingebrigtsen [Sat, 22 Jan 2022 12:14:36 +0000 (13:14 +0100)]
Fix HTML target marking in shr

* lisp/net/shr.el (shr-descend): Use a marker (because we may be
altering the text later for indentation), and mark the start, not
the end of the tag (bug#53409).
(shr-tag-a): Ditto.

2 years agoPut the old label into the future history in reftex-change-label
Lars Ingebrigtsen [Sat, 22 Jan 2022 12:00:31 +0000 (13:00 +0100)]
Put the old label into the future history in reftex-change-label

* lisp/textmodes/reftex-global.el (reftex-change-label): Put the
old label into the future history so that it can be edited easily
(bug#53417).

2 years agoFix the prompt in hi-lock-read-face-name
Lars Ingebrigtsen [Sat, 22 Jan 2022 11:36:29 +0000 (12:36 +0100)]
Fix the prompt in hi-lock-read-face-name

* lisp/hi-lock.el (hi-lock-read-face-name): Fix the prompt after
recent changes (bug#53255).

2 years ago; * etc/NEWS: Improve entry about Outline mode changes.
Eli Zaretskii [Sat, 22 Jan 2022 11:59:58 +0000 (13:59 +0200)]
; * etc/NEWS: Improve entry about Outline mode changes.

2 years agoFix some doc strings in outline.el
Matthias Meulien [Mon, 17 Jan 2022 19:20:28 +0000 (20:20 +0100)]
Fix some doc strings in outline.el

* lisp/outline.el (outline-default-state): Fix doc string.
(outline-default-rules): Fix doc string.

2 years ago; * src/xdisp.c (Fbidi_find_overridden_directionality): Doc fix.
Eli Zaretskii [Sat, 22 Jan 2022 11:09:31 +0000 (13:09 +0200)]
; * src/xdisp.c (Fbidi_find_overridden_directionality): Doc fix.

2 years agoMerge branch 'master' into scratch/correct-warning-pos scratch/correct-warning-pos
Alan Mackenzie [Sat, 22 Jan 2022 11:02:50 +0000 (11:02 +0000)]
Merge branch 'master' into scratch/correct-warning-pos

2 years agoMake the test for existing multisession variables more sensible
Lars Ingebrigtsen [Sat, 22 Jan 2022 10:56:13 +0000 (11:56 +0100)]
Make the test for existing multisession variables more sensible

* lisp/emacs-lisp/multisession.el (multisession-edit-value):
Unconfuse the code.

2 years ago; Fix last change in 'textsec-bidi-controls-suspicious-p'.
Eli Zaretskii [Sat, 22 Jan 2022 10:14:17 +0000 (12:14 +0200)]
; Fix last change in 'textsec-bidi-controls-suspicious-p'.

2 years agoMiscellaneous amendments to the scratch/correct-warning-pos branch
Alan Mackenzie [Sat, 22 Jan 2022 09:59:05 +0000 (09:59 +0000)]
Miscellaneous amendments to the scratch/correct-warning-pos branch

* lisp/cedet/semantic/fw.el (semantic-alias-obsolete)
(semantic-varalias-obsolete): Replace calls to byte-compile-warn with calls to
byte-compile-warn-x (when it exists).

* lisp/emacs-lisp/bytecomp.el (byte-compile-log-warning-function)
(byte-compile--log-warning-for-byte-compile): Make the POSITION parameter no
longer &optional (for the benefit of flymake on *.el).
(byte-compile-log-warning): Replace a nil POSITION argument with an actual
position.
(byte-compile-file-form-require): Push the required symbol onto
byte-compile-form-stack, for the benefit of `do-after-load-evaluation'.

* lisp/keymap.el (define-keymap--compile): Replace four calls to
byte-compile-warn with byte-compile-warn-x.

* doc/lispref/elisp.texi (master menu): Add entries for Shorthands and Symbols
with position.

* doc/lispref/streams.texi (Input Functions): Document
read-positioning-symbols.

* doc/lispref/symbols.texi (Symbols): Add new menu entry.
(Symbols with Position): New @section.

2 years agoImprove detection of suspicious uses of bidi controls
Eli Zaretskii [Sat, 22 Jan 2022 09:58:05 +0000 (11:58 +0200)]
Improve detection of suspicious uses of bidi controls

* lisp/international/textsec.el
(textsec-bidi-controls-suspicious-p): New function.
(textsec-name-suspicious-p): Use it.

* test/lisp/international/textsec-tests.el (test-suspicious-name):
Enable the test that was previously failing with
'bidi-find-overridden-directionality'.

2 years agoPrevent raw bytes from being displayed as help text on Haiku
Po Lu [Sat, 22 Jan 2022 09:51:30 +0000 (09:51 +0000)]
Prevent raw bytes from being displayed as help text on Haiku

* src/haikumenu.c (digest_menu_items): Don't set encoded text
into the menu item vector.

2 years agoUse locale coding system to decode XIM preedit text
Po Lu [Sat, 22 Jan 2022 08:16:26 +0000 (16:16 +0800)]
Use locale coding system to decode XIM preedit text

* src/xfns.c (x_xim_text_to_utf8_unix): XIMs typically return
text in the locale coding system, so use that instead.

2 years agoChange visibility of "Undelete Frame"
Eli Zaretskii [Sat, 22 Jan 2022 07:06:21 +0000 (09:06 +0200)]
Change visibility of "Undelete Frame"

* lisp/menu-bar.el (menu-bar-file-menu): Make "Undelete Frame"
always visible.  Suggested by Gregory Heytings <gregory@heytings.org>.

2 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Sat, 22 Jan 2022 07:03:11 +0000 (09:03 +0200)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

2 years agoGet rid of some unnecessary code in handle_one_xevent
Po Lu [Sat, 22 Jan 2022 07:01:28 +0000 (15:01 +0800)]
Get rid of some unnecessary code in handle_one_xevent

* src/xterm.c (handle_one_xevent): Stop mutating event->xkey.

2 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Sat, 22 Jan 2022 06:26:54 +0000 (08:26 +0200)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

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

The following commits were skipped:

fbc9b121e0 Fix memory-report-object-size to initialize memory-report-...
f08dfa9b53 Fix menu-bar mouse clicks in "C-h c" and "C-h k" (bug#53322)

2 years agoFix recent changes to visible bell code
Po Lu [Sat, 22 Jan 2022 02:25:06 +0000 (10:25 +0800)]
Fix recent changes to visible bell code

* src/gtkutil.c (xg_create_scroll_bar):
(xg_create_horizontal_scroll_bar): Stop ensuring an X window
before the widget is realized.
(xg_update_scrollbar_pos):
(xg_update_horizontal_scrollbar_pos): Ensure such a window here
instead.

2 years agoClean up visible bell code on X
Po Lu [Sat, 22 Jan 2022 02:12:18 +0000 (10:12 +0800)]
Clean up visible bell code on X

* src/gtkutil.c (xg_create_scroll_bar):
(xg_create_horizontal_scroll_bar): Ensure that the scroll bars
have their own X windows.
* src/xterm.c (XTflash): Remove use of GDK functions for
drawing.

2 years agoFix crash when the visible bell is rung but there is no cairo surface
Po Lu [Sat, 22 Jan 2022 01:11:33 +0000 (09:11 +0800)]
Fix crash when the visible bell is rung but there is no cairo surface

* src/pgtkterm.c (pgtk_flash): Return if the cairo surface is
not present.  (bug#53420)
(pgtk_cr_update_surface_desired_size): Reformat comment.

2 years agoAvoid glitches in ELC lines in build output
Paul Eggert [Fri, 21 Jan 2022 22:45:57 +0000 (14:45 -0800)]
Avoid glitches in ELC lines in build output

* src/verbose.mk.in (have_working_info): New macro.
(AM_V_ELC, AM_V_ELN): Use 'echo' rather than $(info ...)
on buggy versions of GNU Make.

2 years agoSimplify AM_V_ELC setup
Paul Eggert [Fri, 21 Jan 2022 21:33:55 +0000 (13:33 -0800)]
Simplify AM_V_ELC setup

* src/verbose.mk.in (AM_V_ELC, AM_V_ELN): Use simpler Make ‘if’s.

2 years agoEUDC: Fix a quoting bug in the BBDB backend
Thomas Fitzsimmons [Fri, 21 Jan 2022 22:40:57 +0000 (17:40 -0500)]
EUDC: Fix a quoting bug in the BBDB backend

* lisp/net/eudcb-bbdb.el (eudc-bbdb-query-internal): Fix a quoting
bug introduced during lexical-binding conversion.

2 years ago* lisp/cus-start.el (polling-period): Update type.
Glenn Morris [Fri, 21 Jan 2022 21:44:56 +0000 (13:44 -0800)]
* lisp/cus-start.el (polling-period): Update type.

Flagged by test-custom-opts.

2 years ago* src/keyboard.c (start_polling): Fix type mixup.
Glenn Morris [Fri, 21 Jan 2022 20:12:43 +0000 (12:12 -0800)]
* src/keyboard.c (start_polling): Fix type mixup.

Flagged by --enable-check-lisp-object-type.

2 years agoDisable background image fetching from asking for passwords
Lars Ingebrigtsen [Fri, 21 Jan 2022 14:22:24 +0000 (15:22 +0100)]
Disable background image fetching from asking for passwords

* lisp/url/url-queue.el (url-queue-start-retrieve): Inhibit
prompting for passwords from these background requests.

2 years agoFurther emake tweaks
Lars Ingebrigtsen [Fri, 21 Jan 2022 14:03:32 +0000 (15:03 +0100)]
Further emake tweaks

2 years agoFix previous emake change
Lars Ingebrigtsen [Fri, 21 Jan 2022 14:00:14 +0000 (15:00 +0100)]
Fix previous emake change

* admin/emake (cores): Fix typo in previous change.

2 years ago* src/keyboard.c (syms_of_keyboard): Fix build without input polling.
Po Lu [Fri, 21 Jan 2022 13:48:57 +0000 (21:48 +0800)]
* src/keyboard.c (syms_of_keyboard): Fix build without input polling.

2 years agoImprove the completion-category-overrides doc string
Lars Ingebrigtsen [Fri, 21 Jan 2022 13:45:23 +0000 (14:45 +0100)]
Improve the completion-category-overrides doc string

* lisp/minibuffer.el (completion-category-overrides): Clarify what
this variable does (bug#22324).
(completion-category-defaults): Mention the overrides variable.

2 years agoRemove text mistakenly added to the diff--iterate-hunks doc string
Lars Ingebrigtsen [Fri, 21 Jan 2022 13:31:11 +0000 (14:31 +0100)]
Remove text mistakenly added to the diff--iterate-hunks doc string

* lisp/vc/diff-mode.el (diff--iterate-hunks): Remove text added by
mistake to the doc string.

2 years agoFollowup fix to previous message-update-smtp-method-header change
Lars Ingebrigtsen [Fri, 21 Jan 2022 13:20:31 +0000 (14:20 +0100)]
Followup fix to previous message-update-smtp-method-header change

* lisp/gnus/message.el (message-update-smtp-method-header): Narrow
to the headers first.

2 years agoAllow From to be part of message-hidden-headers
Lars Ingebrigtsen [Fri, 21 Jan 2022 13:18:19 +0000 (14:18 +0100)]
Allow From to be part of message-hidden-headers

* lisp/gnus/message.el (message-update-smtp-method-header): Don't
bug out if the From header is part of `message-hidden-headers'
(bug#52871).

2 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Fri, 21 Jan 2022 12:11:22 +0000 (14:11 +0200)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

2 years agoDon't use 'eshell-eval-using-options' for 'eshell/source' or 'eshell/.'
Jim Porter [Fri, 21 Jan 2022 03:51:39 +0000 (19:51 -0800)]
Don't use 'eshell-eval-using-options' for 'eshell/source' or 'eshell/.'

This makes 'source' and '.' in Eshell more compatible with regular
shells, which just treat the first argument as the file to source and
all subsequent arguments as arguments to that file.

* lisp/eshell/em-script.el (eshell/source, eshell/.): Don't use
'eshell-eval-using-options'.

* etc/NEWS: Announce the change (bug#53293)

2 years agoRaise an error from 'eval-eval-using-options' for unknown options
Jim Porter [Thu, 20 Jan 2022 02:59:23 +0000 (18:59 -0800)]
Raise an error from 'eval-eval-using-options' for unknown options

* lisp/eshell/em-basic.el (eshell/echo): Add -E option.

* lisp/eshell/esh-opt.el (eshell--process-option): Raise an error if
an unknown option is encountered, even when :external is nil.

* test/lisp/eshell/esh-opt-tests.el (esh-opt-process-args-test)
(test-eshell-eval-using-options): Add test cases for this.

2 years agoFix indentation in NEWS of cl-flet item
Theodor Thornhill [Fri, 21 Jan 2022 12:04:29 +0000 (13:04 +0100)]
Fix indentation in NEWS of cl-flet item

* etc/NEWS: Correct description of indentation of 'cl-flet' and
'cl-labels (bug#53410).

2 years agoClarify Splitting Mail in the Gnus manual
Lars Ingebrigtsen [Fri, 21 Jan 2022 11:48:03 +0000 (12:48 +0100)]
Clarify Splitting Mail in the Gnus manual

* doc/misc/gnus.texi (Splitting Mail): Clarify what happens when
crossposting or not (bug#53307).

2 years agoFix memory-report-object-size to initialize memory-report--type-size
Sergey Vinokurov [Fri, 21 Jan 2022 11:42:22 +0000 (12:42 +0100)]
Fix memory-report-object-size to initialize memory-report--type-size

* lisp/emacs-lisp/memory-report.el (memory-report-object-size):
Allow using function directly (bug#53310).

Do not merge to master.

2 years agoInterpret a "" value of EMACS_TEST_VERBOSE as "off"
Lars Ingebrigtsen [Fri, 21 Jan 2022 11:32:10 +0000 (12:32 +0100)]
Interpret a "" value of EMACS_TEST_VERBOSE as "off"

* doc/misc/ert.texi (Running Tests in Batch Mode): Adjust doc.
* lisp/emacs-lisp/ert.el (ert-run-tests-batch): Allow overriding
the EMACS_TEST_VERBOSE variable by setting it to "" (bug#53313).

2 years agoMake the edebug-all-defs user option work more reliably
Lars Ingebrigtsen [Fri, 21 Jan 2022 11:26:30 +0000 (12:26 +0100)]
Make the edebug-all-defs user option work more reliably

* lisp/emacs-lisp/edebug.el (edebug-all-defs): This user option
has no effect unless edebug is loaded (because that loads the
advice needed for the commands in question) (bug#53331).

2 years agoMake xwidgets work on builds that don't use Cairo drawing
Po Lu [Fri, 21 Jan 2022 11:08:41 +0000 (19:08 +0800)]
Make xwidgets work on builds that don't use Cairo drawing

* configure.ac: Check for the parts of Cairo that are needed for
xwidgets when they are enabled without cairo drawing.

* src/xterm.c:
* src/xwidget.c: Always include cairo-xlib headers when xwidgets
are enabled.

2 years agoClean up mm-display-inline-fontify slightly
Lars Ingebrigtsen [Fri, 21 Jan 2022 11:07:31 +0000 (12:07 +0100)]
Clean up mm-display-inline-fontify slightly

* lisp/gnus/mm-view.el (mm-display-inline-fontify): Remove some
left-over compat code.

2 years agoMake diff--iterate-hunks more resilient
Lars Ingebrigtsen [Fri, 21 Jan 2022 11:07:04 +0000 (12:07 +0100)]
Make diff--iterate-hunks more resilient

* lisp/vc/diff-mode.el (diff--iterate-hunks): Ignore malformed
hunks instead of signalling errors (bug#53343).

2 years agoUse the correct converter for odf files in doc-view
Shuguang Sun [Fri, 21 Jan 2022 10:25:27 +0000 (11:25 +0100)]
Use the correct converter for odf files in doc-view

* lisp/doc-view.el (doc-view-pdf/ps->png): Use the correct
converter for odf files (bug#53354).

2 years agoUpdate multisession variables when editing the values
Lars Ingebrigtsen [Fri, 21 Jan 2022 10:20:56 +0000 (11:20 +0100)]
Update multisession variables when editing the values

* lisp/emacs-lisp/multisession.el (multisession-edit-value):
Update multisession variables when editing the values (bug#53361).

2 years agoFurther improve determination of when commands can be invoked directly
Jim Porter [Fri, 21 Jan 2022 09:32:00 +0000 (10:32 +0100)]
Further improve determination of when commands can be invoked directly

This covers the case when a subcommand is to be invoked in more places
than before, for example when a subcommand is concatenated in an
argument.

* lisp/eshell/esh-cmd.el (eshell--find-subcommands): New fuction.
(eshell--invoke-command-directly): Use 'eshell-find-subcommands'.

* test/lisp/eshell/eshell-tests.el
(eshell-test/interp-cmd-external-concat): New test (bug#30725).

2 years ago; * etc/NEWS: Fix description of 'polling-period' change.
Eli Zaretskii [Fri, 21 Jan 2022 08:17:06 +0000 (10:17 +0200)]
; * etc/NEWS: Fix description of 'polling-period' change.

2 years agoAdjust emake after recent changes
Lars Ingebrigtsen [Fri, 21 Jan 2022 07:55:43 +0000 (08:55 +0100)]
Adjust emake after recent changes

2 years agoSynchronize XI2 code with Core Input code
Po Lu [Fri, 21 Jan 2022 07:32:45 +0000 (15:32 +0800)]
Synchronize XI2 code with Core Input code

* src/xterm.c (handle_one_xevent): Apply recent changes for XI2
events as well.

2 years agoMerge from origin/emacs-28
Po Lu [Fri, 21 Jan 2022 07:27:35 +0000 (15:27 +0800)]
Merge from origin/emacs-28

11ea45c9e4 Fix UB in ebrowse
ba57b78064 Fix execute-extended-command-for-buffer in fundamental-mode
ef0c1d4c2c Add workaround to handle a problem with Enlightenment WM (...

2 years ago; * etc/NEWS: Fix typo in recent change.
Po Lu [Fri, 21 Jan 2022 05:49:57 +0000 (13:49 +0800)]
; * etc/NEWS: Fix typo in recent change.

2 years agoWork around GTK changing window backgrounds on colormapped displays
Po Lu [Fri, 21 Jan 2022 05:22:51 +0000 (13:22 +0800)]
Work around GTK changing window backgrounds on colormapped displays

* src/xterm.c (x_clear_window):
(x_clear_area): Fill the contents with the reverse GC instead of
using XClearArea and XClearWindow when not double buffered.

2 years agoFix BadValue crash when looking up empty color names on some X servers
Po Lu [Fri, 21 Jan 2022 03:37:19 +0000 (11:37 +0800)]
Fix BadValue crash when looking up empty color names on some X servers

* src/xterm.c (x_parse_color): Avoid parsing empty color names.

2 years agoruby-toggle-block-space-before-parameters: New user option
Dmitry Gutov [Fri, 21 Jan 2022 02:59:39 +0000 (04:59 +0200)]
ruby-toggle-block-space-before-parameters: New user option

* lisp/progmodes/ruby-mode.el (ruby-toggle-block-space-before-parameters):
New user option (bug#53321).
(ruby-do-end-to-brace): Handle it.

* test/lisp/progmodes/ruby-mode-tests.el
(ruby-toggle-block-to-brace-no-space): New test.

2 years agoUpdate menu bars when `use-system-tooltips' changes on Haiku
Po Lu [Fri, 21 Jan 2022 01:31:27 +0000 (01:31 +0000)]
Update menu bars when `use-system-tooltips' changes on Haiku

* lisp/term/haiku-win.el: Add new function as variable watcher
for `use-system-tooltips'.
(haiku-use-system-tooltips-watcher): New function.

2 years agoAllow fractional values of `polling-period'
Po Lu [Fri, 21 Jan 2022 01:15:52 +0000 (09:15 +0800)]
Allow fractional values of `polling-period'

This allows C-g to be handled faster in the NS port at the cost
of some extra CPU time on slow machines.

* etc/NEWS: Announce new feature.
* src/keyboard.c (start_polling):
(bind_polling_period): Handle floating point values of
`polling-period'.
(syms_of_keyboard): Make `polling-period' a Lisp variable
instead of an int variable.

2 years agoAvoid FOCUS_IN_EVENTS not being sent on NS
Po Lu [Sat, 15 Jan 2022 13:11:57 +0000 (21:11 +0800)]
Avoid FOCUS_IN_EVENTS not being sent on NS

* src/nsterm.m ([EmacsView windowDidBecomeKey]): Work around
emacs_event being NULL by storing focus in events directly
into the keyboard buffer.  (bug#52376)