]> git.eshelyaron.com Git - emacs.git/log
emacs.git
2 years agoAdd a provide in epa-ks
Lars Ingebrigtsen [Fri, 13 May 2022 12:44:27 +0000 (14:44 +0200)]
Add a provide in epa-ks

* lisp/epa-ks.el (epa-ks): Add a provide (bug#55388).

2 years agoRemove some XEmacs compat code from pascal.el
Stefan Kangas [Fri, 13 May 2022 10:43:15 +0000 (12:43 +0200)]
Remove some XEmacs compat code from pascal.el

* lisp/progmodes/pascal.el (pascal-outline-map): Remove XEmacs compat
code.

2 years ago* lisp/language/thai-util.el (thai-word-mode-map): Prefer defvar-keymap.
Stefan Kangas [Thu, 12 May 2022 13:53:28 +0000 (15:53 +0200)]
* lisp/language/thai-util.el (thai-word-mode-map): Prefer defvar-keymap.

2 years agoFix dabbrev expansion after recent file-name buffer addition
Lars Ingebrigtsen [Fri, 13 May 2022 12:29:48 +0000 (14:29 +0200)]
Fix dabbrev expansion after recent file-name buffer addition

* lisp/dabbrev.el (dabbrev--find-expansion): Remove the now-dead
file name buffer from dabbrev--friend-buffer-list, so that we
don't trip over the killed buffer later (bug introduced in 2d0085f756).

2 years agoMake imenu-flush-cache into a function
Lars Ingebrigtsen [Fri, 13 May 2022 12:07:13 +0000 (14:07 +0200)]
Make imenu-flush-cache into a function

* doc/emacs/programs.texi (Imenu): Remove documentation.

* lisp/imenu.el (imenu-flush-cache): Make into a function, since
this isn't supposed to be used interactively.

2 years agoAllow changing the face used for text and frame colors in tooltips
Po Lu [Fri, 13 May 2022 11:46:43 +0000 (19:46 +0800)]
Allow changing the face used for text and frame colors in tooltips

* etc/NEWS: Announce new arguments to `tooltip-show'.
* lisp/tooltip.el (tooltip-show): Accept new arguments
`text-face' and `frame-face'.  Use them to display text and
determine the foreground, background and border colors of the
tooltip frame respectively.

2 years agoRely solely on device scaling for fonts on PGTK
Po Lu [Fri, 13 May 2022 11:18:17 +0000 (19:18 +0800)]
Rely solely on device scaling for fonts on PGTK

* src/pgtkterm.c (pgtk_get_text_scaling_factor): Delete
function.
(pgtk_term_init): Stop multiplying dpi by text scale.
(bug#55394)

2 years ago; Fix RefTeX docstrings
Arash Esbati [Fri, 13 May 2022 10:18:15 +0000 (12:18 +0200)]
; Fix RefTeX docstrings

* lisp/textmodes/reftex-cite.el (reftex-parse-bibitem)
(reftex-format-bibitem): Quote backslash.

* lisp/textmodes/reftex-vars.el
(reftex-cite-cleanup-optional-args): Fix example with 2 optional
arguments.

2 years agoFix display of image reliefs for tab bars on NS
Po Lu [Fri, 13 May 2022 09:08:09 +0000 (17:08 +0800)]
Fix display of image reliefs for tab bars on NS

* src/nsterm.m (ns_draw_image_relief): New function.
Synchronize code with X.
(ns_dumpglyphs_image): Use that function instead, as on X.

2 years agoMinor cleanups to PGTK code
Po Lu [Fri, 13 May 2022 08:32:10 +0000 (16:32 +0800)]
Minor cleanups to PGTK code

* src/pgtkterm.c (pgtk_text_scaling_factor): Rename to
`pgtk_get_text_scaling_factor', clean up coding style, and fix
leak of GSettings object.
(pgtk_term_init): Clean up coding style and fix scroll
increments.

2 years agoImprove test for empty help-echo on NS menu bar items
Po Lu [Fri, 13 May 2022 08:08:54 +0000 (16:08 +0800)]
Improve test for empty help-echo on NS menu bar items

* src/nsmenu.m ([EmacsMenu menu:willHighlightItem:]): Also check
if idx is valid.

2 years agoDisplay help-echo for popup menus on NS
Po Lu [Fri, 13 May 2022 08:06:40 +0000 (16:06 +0800)]
Display help-echo for popup menus on NS

* src/nsmenu.m ([EmacsMenu menu:willHighlightItem:]): Display
help echo for ordinary popup menus as well.

2 years agoFix extraneous quit events processing GTK native input inside popups
Po Lu [Fri, 13 May 2022 07:30:22 +0000 (15:30 +0800)]
Fix extraneous quit events processing GTK native input inside popups

* src/gtkutil.c (xg_widget_key_press_event_cb): Return
immediately if a popup is active.
* src/xterm.c (x_filter_event): Clear `xg_pending_quit_event' if
a popup is active.

2 years ago; * configure.ac (-Wbidi-chars): Disable use of these warnings.
Eli Zaretskii [Fri, 13 May 2022 07:19:56 +0000 (10:19 +0300)]
; * configure.ac (-Wbidi-chars): Disable use of these warnings.

2 years agoAdd more cursor bitmaps on Haiku
Po Lu [Fri, 13 May 2022 05:34:46 +0000 (05:34 +0000)]
Add more cursor bitmaps on Haiku

* src/haikufns.c (cursor_bitmaps, cursor_bitmaps_for_id):
Register crosshair and xterm cursors.

* src/haikugui.h (cross_ptr_bits, cross_ptrmask_bits)
(ibeam_ptr_bits, ibeam_ptrmask_bits): New cursor bitmaps.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Fri, 13 May 2022 04:30:28 +0000 (06:30 +0200)]
Merge from origin/emacs-28

f03c5d81bd Fix ControlPath quoting in Tramp

2 years agoFix disabling frame synchronization on child frames
Po Lu [Fri, 13 May 2022 04:21:32 +0000 (12:21 +0800)]
Fix disabling frame synchronization on child frames

* src/xfns.c (Fx_create_frame): Disable GTK 3's own frame
synchronization on child frames, since the CM doesn't send
synchronization events to them.

2 years agoAllow setting cursor colors for custom cursors on Haiku
Po Lu [Fri, 13 May 2022 04:03:36 +0000 (04:03 +0000)]
Allow setting cursor colors for custom cursors on Haiku

* src/haikufns.c: (struct user_cursor_bitmap_info):
(cursor_bitmaps): Fix hotspot for left arrow pointer.
(cursor_bitmaps_for_id): New array.
(haiku_set_mouse_color): If a color was specified, consult
`cursor_bitmaps_for_id' for user-specified cursors.

2 years agoAllow actually setting cursor colors on Haiku
Po Lu [Fri, 13 May 2022 03:14:26 +0000 (03:14 +0000)]
Allow actually setting cursor colors on Haiku

* src/haiku_support.cc (be_create_pixmap_cursor): New function.
* src/haiku_support.h: Update prototypes.

* src/haikufns.c (haiku_create_frame): Change default cursor
color to "font-color".
(haiku_create_tip_frame): Likewise.

(struct user_cursor_bitmap_info): New struct.
(cursor_bitmaps): New list of bitmaps corresponding to cursors.
(haiku_create_colored_cursor): New function.
(haiku_free_custom_cursors): Set current cursor to the default
cursor before freeing the original value.
(haiku_set_mouse_color): Actually recolor cursors based on
built-in bitmaps.

* src/haikuterm.c (haiku_defined_color): Clean up coding style.

2 years agoFix quitting during drag-and-drop when GTK native input is on
Po Lu [Fri, 13 May 2022 01:15:42 +0000 (09:15 +0800)]
Fix quitting during drag-and-drop when GTK native input is on

* src/xterm.c (x_dnd_begin_drag_and_drop): Also look in
`xg_pending_quit_event' when GTK native input is on.

2 years agoUpdate from gnulib
Paul Eggert [Fri, 13 May 2022 00:19:35 +0000 (17:19 -0700)]
Update from gnulib

2 years agoPacify GCC 12 in default developer build
Paul Eggert [Fri, 13 May 2022 00:01:10 +0000 (17:01 -0700)]
Pacify GCC 12 in default developer build

This lets ‘./configure; make’ work on Fedora 36 x86-64 from a Git
checkout without generating false-alarm warnings.
* lib-src/etags.c (main): There appeared to be false alarm with
GCC 12.  However, the code was wrong anyway, as it mishandled file
names containing "'" so fix that bug.  This pacifies GCC.
(mercury_decl): Omit tests ‘s + pos != NULL’ that were apparently
intended to be ‘s[pos] != '\0'’ but which were miscoded to always
be true and which were mostly not needed anyway.  In one place,
though, a test was needed, so fix that by using strchr instead.
* src/alloc.c (lisp_free) [!GC_MALLOC_CHECK]:
* src/term.c (Fsuspend_tty): Don’t look at a pointer after freeing
it, even just to test it for equality with some other pointer, as
this has undefined behavior in C and GCC 12 diagnoses this.
* src/dbusbind.c (xd_read_message_1): Rework the code a bit
so that it has fewer tests.  This pacifies GCC 12 which was
complaining incorrectly about dereferencing a null pointer.
* src/intervals.c (copy_properties): Remove an eassume that should
no longer be needed even to pacify older GCCs, due to ...
* src/intervals.h (split_interval_left): ... this addition of
ATTRIBUTE_RETURNS_NONNULL to pacify a GCC 12 warning about
dereferencing a null pointer.
* src/regex-emacs.c (EXTEND_BUFFER): Use negative values rather
than auxiliary booleans to indicate null pointers.  This pacifies
GCC 12 false alarms about using uninitialized variables.
* src/xdisp.c (clear_position): New function.
(append_space_for_newline, extend_face_to_end_of_line):
Use it to work around false alarms from GCC 12.
(display_and_set_cursor): Add an UNINIT to pacify GCC 12.
* src/xterm.c (x_draw_glyphless_glyph_string_foreground):
Defend against hypothetical bad code elsewhere;
this also pacifies GCC 12.
(x_term_init): Use fixed-size auto array rather than alloca,
as the array is small; this also pacifies GCC 12.

2 years ago; Improve doc string of 'sh-indent-statement-after-and'
Eli Zaretskii [Thu, 12 May 2022 16:58:39 +0000 (19:58 +0300)]
; Improve doc string of 'sh-indent-statement-after-and'

* lisp/progmodes/sh-script.el (sh-indent-statement-after-and):
Clarify the doc string.  (Bug#22645)

2 years agoAdd new user option 'sh-indent-statement-after-and'
Lars Ingebrigtsen [Thu, 12 May 2022 16:16:43 +0000 (18:16 +0200)]
Add new user option 'sh-indent-statement-after-and'

* lisp/progmodes/sh-script.el (sh-indent-statement-after-and): New
user option (bug#22645).
(sh-smie-sh-rules): Use it.

2 years agoFix ControlPath quoting in Tramp
Michael Albinus [Thu, 12 May 2022 13:46:20 +0000 (15:46 +0200)]
Fix ControlPath quoting in Tramp

* lisp/net/tramp-sh.el (tramp-ssh-controlmaster-options):
Adapt docstring.  Do not quote ControlPath.  Reported by Daniel
Kessler <kesslerd@umich.edu>.

2 years agoRemove unused RIF method
Po Lu [Thu, 12 May 2022 13:08:26 +0000 (13:08 +0000)]
Remove unused RIF method

* src/haikuterm.c (haiku_update_window_end): Delete function.
(haiku_redisplay_interface): Remove RIF method.

2 years agoMake prompt read-only in inferior-scheme-mode
Lars Ingebrigtsen [Thu, 12 May 2022 12:15:12 +0000 (14:15 +0200)]
Make prompt read-only in inferior-scheme-mode

* lisp/cmuscheme.el (inferior-scheme-mode): Make the prompt
read-only to be more consistent with other inferior modes
(bug#21118).

2 years agoFix retrieving images that contain ) characters in shr
Lars Ingebrigtsen [Thu, 12 May 2022 12:07:29 +0000 (14:07 +0200)]
Fix retrieving images that contain ) characters in shr

* lisp/net/shr.el (shr-save-contents, shr-get-image-data): Don't call.
(shr-encode-url): Make obsolete.  (This function makes no sense.)
(shr-tag-img): Don't call.

2 years agoImprove url-http debugging
Lars Ingebrigtsen [Thu, 12 May 2022 11:11:45 +0000 (13:11 +0200)]
Improve url-http debugging

* lisp/url/url-http.el (url-http-parse-headers): Output the
headers we receive in the debug output.
* lisp/url/url-vars.el (url-extensions-header): Remove useless header.

2 years ago; lisp/textmodes/reftex-cite.el: Fix docstring
Arash Esbati [Thu, 12 May 2022 10:52:00 +0000 (12:52 +0200)]
; lisp/textmodes/reftex-cite.el: Fix docstring

* lisp/textmodes/reftex-cite.el
(reftex-extract-bib-entries-from-thebibliography): Quote
backslash in docstring.

2 years agoFix build on Mac OS X 10.11
Po Lu [Thu, 12 May 2022 09:21:39 +0000 (17:21 +0800)]
Fix build on Mac OS X 10.11

* src/nsterm.h (NSButtonTypeMomentaryPushIn): New define.

2 years ago* lisp/array.el (array-mode-map): Prefer defvar-keymap.
Stefan Kangas [Thu, 12 May 2022 09:07:51 +0000 (11:07 +0200)]
* lisp/array.el (array-mode-map): Prefer defvar-keymap.

2 years agoFix searching the bitmap file path on Haiku
Po Lu [Thu, 12 May 2022 07:39:11 +0000 (07:39 +0000)]
Fix searching the bitmap file path on Haiku

* src/image.c (image_create_bitmap_from_file): [HAVE_HAIKU]:
Look for the bitmap inside `x-bitmap-file-path' as well.

2 years ago; * src/bytecode.c (exec_byte_code): Fix white space.
Stefan Kangas [Thu, 12 May 2022 07:32:10 +0000 (09:32 +0200)]
; * src/bytecode.c (exec_byte_code): Fix white space.

2 years agoImprove Tramp's write-region
Michael Albinus [Thu, 12 May 2022 07:03:45 +0000 (09:03 +0200)]
Improve Tramp's write-region

* lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-handler-alist):
Use `tramp-handle-write-region'.
(tramp-sudoedit-handle-write-region): Remove.

* lisp/net/tramp.el (tramp-skeleton-write-region):
Set extended attributes.

2 years agoFix merging of anonymous faces with an `:extend' property on unexec
Po Lu [Thu, 12 May 2022 06:55:41 +0000 (14:55 +0800)]
Fix merging of anonymous faces with an `:extend' property on unexec

* src/emacs.c (main): Unconditionally call `init_xfaces'.
* src/lisp.h: Enable `init_xfaces' on unexec builds too.
* src/xfaces.c (init_xfaces): Move fix for bug#34226 into
pdumper-specific section leaving the initialization of
`face_attr_sym' intact.

2 years agoImprove mouse dragging
Po Lu [Thu, 12 May 2022 05:31:08 +0000 (13:31 +0800)]
Improve mouse dragging

* lisp/mouse.el (mouse-drag-and-drop-region-display-tooltip):
Respect foreground and background parameters.
(mouse-drag-and-drop-region): Enable fine grained tracking.

2 years ago; Improve documentation of 'restore-buffer-modified-p'
Eli Zaretskii [Thu, 12 May 2022 06:47:25 +0000 (09:47 +0300)]
; Improve documentation of 'restore-buffer-modified-p'

* src/buffer.c (Frestore_buffer_modified_p):
* doc/lispref/buffers.texi (Buffer Modification): Fix doc wording.

2 years ago; Improve documentation of 'switch-to-prev-buffer-skip-regexp'
Eli Zaretskii [Thu, 12 May 2022 06:29:53 +0000 (09:29 +0300)]
; Improve documentation of 'switch-to-prev-buffer-skip-regexp'

* lisp/window.el (switch-to-prev-buffer-skip-regexp):
* etc/NEWS:
* doc/lispref/windows.texi (Window History): Improve wording of
the documentation of 'switch-to-prev-buffer-skip-regexp'.
(Bug#19070)

2 years ago; Improve documentation of 'imenu-flush-cache'
Eli Zaretskii [Thu, 12 May 2022 06:16:24 +0000 (09:16 +0300)]
; Improve documentation of 'imenu-flush-cache'

* etc/NEWS: Expand the description of 'imenu-flush-cache'.

* doc/emacs/programs.texi (Imenu): Document 'imenu-flush-cache'.

* lisp/imenu.el (imenu-flush-cache): Doc fix.  (Bug#20589)

2 years agoMake cursor display on Haiku consistent with X
Po Lu [Thu, 12 May 2022 04:11:12 +0000 (04:11 +0000)]
Make cursor display on Haiku consistent with X

* src/haikuterm.c (haiku_draw_image_glyph_string): Merge cursor
foregrounds correctly.
(haiku_draw_hollow_cursor, haiku_draw_bar_cursor): New
functions.  Port code from X.
(haiku_draw_window_cursor): Port code from X so bar cursors on
top of images are treated right.

2 years agoFix cperl-file-style defcustom type
Lars Ingebrigtsen [Thu, 12 May 2022 02:44:47 +0000 (04:44 +0200)]
Fix cperl-file-style defcustom type

* lisp/progmodes/cperl-mode.el (cperl-file-style): Fix the type.

2 years agoClean up Haiku display opening code
Po Lu [Thu, 12 May 2022 02:29:15 +0000 (02:29 +0000)]
Clean up Haiku display opening code

* src/haikufns.c (Fx_open_connection):
(Fhaiku_frame_list_z_order): Improve error messages and fix
coding style.

2 years agoAdd new command 'imenu-flush-cache'
Lars Ingebrigtsen [Thu, 12 May 2022 02:24:32 +0000 (04:24 +0200)]
Add new command 'imenu-flush-cache'

* lisp/imenu.el (imenu-flush-cache): New command (bug#20589).

2 years agoNew command 'package-update-all'
Lars Ingebrigtsen [Thu, 12 May 2022 01:59:16 +0000 (03:59 +0200)]
New command 'package-update-all'

* lisp/emacs-lisp/package.el (package-update-all): New function
(bug#19146).
(package--updateable-packages): Factored out...
(package-update): ... from here.

2 years agoPort some stuff to XCB to avoid confusing Xlib behavior
Po Lu [Thu, 12 May 2022 01:36:43 +0000 (09:36 +0800)]
Port some stuff to XCB to avoid confusing Xlib behavior

* src/xterm.c (x_set_frame_alpha, handle_one_xevent): Port
retrieving the opacity property to XCB.

2 years agoAdd new user option switch-to-prev-buffer-skip-regexp
Lars Ingebrigtsen [Thu, 12 May 2022 01:35:21 +0000 (03:35 +0200)]
Add new user option switch-to-prev-buffer-skip-regexp

* doc/lispref/windows.texi (Window History): Document it.
* lisp/window.el (switch-to-prev-buffer-skip): Mention it.
(switch-to-prev-buffer-skip-regexp): New user option (bug#19070).
(switch-to-prev-buffer-skip-p): Use it.

2 years agoBind TAB in indent-rigidly-map as a convenience
Lars Ingebrigtsen [Thu, 12 May 2022 01:09:22 +0000 (03:09 +0200)]
Bind TAB in indent-rigidly-map as a convenience

* lisp/indent.el (indent-rigidly): Mention it.
(indent-rigidly-map): Bind TAB so that `C-x TAB TAB...' does the
logical thing.

2 years agoOnly handle SelectionRequest events from the DND display during DND
Po Lu [Thu, 12 May 2022 01:07:59 +0000 (09:07 +0800)]
Only handle SelectionRequest events from the DND display during DND

* src/xterm.c (handle_one_xevent): Handle only SelectionRequest
events from the DND frame's display via hold_quit.

2 years agoMake message load eudc-capf more lazily
Lars Ingebrigtsen [Thu, 12 May 2022 00:54:24 +0000 (02:54 +0200)]
Make message load eudc-capf more lazily

* lisp/gnus/message.el (eudc-capf): Remove require, because all
the relevant eudc-capf functions are autoloaded, apparently.

2 years agoMake anchored regexps work in image-dired-mark-tagged-files
Lars Ingebrigtsen [Thu, 12 May 2022 00:51:53 +0000 (02:51 +0200)]
Make anchored regexps work in image-dired-mark-tagged-files

* lisp/image-dired.el (image-dired-mark-tagged-files): Make
anchored regexps work (bug#55375).

2 years agoFix non-variable widgets in the 'H' command in Cus-mode
Lars Ingebrigtsen [Thu, 12 May 2022 00:27:22 +0000 (02:27 +0200)]
Fix non-variable widgets in the 'H' command in Cus-mode

* lisp/cus-edit.el (custom-mode-map):
(custom-commands): Adjust.
(custom-toggle-hide-all-widgets): Rename and work for all widget
types, not just variables.

2 years agoAdjust restore-buffer-modified-p autosaved logic
Lars Ingebrigtsen [Thu, 12 May 2022 00:16:38 +0000 (02:16 +0200)]
Adjust restore-buffer-modified-p autosaved logic

* doc/lispref/buffers.texi (Buffer Modification): Adjust
documentation.

* src/buffer.c (Frestore_buffer_modified_p): Fix up the logic
around `autosaved': It means "the buffer is modified, and also
autosaved".

2 years agoMake C-u M-x apropos-user-option include buttons
Lars Ingebrigtsen [Wed, 11 May 2022 23:48:40 +0000 (01:48 +0200)]
Make C-u M-x apropos-user-option include buttons

* lisp/apropos.el (apropos-user-option): Include buttons in the
output always (bug#55376).
(apropos-print-doc): Don't insert three spaces in the
non-apropos-multi-type case.

2 years ago(byte-compile-eval): Avoid some false positive "noruntime" warnings
Stefan Monnier [Wed, 11 May 2022 21:17:10 +0000 (17:17 -0400)]
(byte-compile-eval): Avoid some false positive "noruntime" warnings

* lisp/emacs-lisp/bytecomp.el (byte-compile-eval): Loosen the check
before refraining from adding a function to noruntime.

2 years agoFix regression in edmacro-finish-edit when parsing "none"
Lars Ingebrigtsen [Wed, 11 May 2022 19:16:23 +0000 (21:16 +0200)]
Fix regression in edmacro-finish-edit when parsing "none"

* lisp/edmacro.el (edmacro-finish-edit): Use `kbd' here because
we're comparing the result to a string (bug#55372).

2 years agofunctionp doc improvement
Paul Eggert [Wed, 11 May 2022 17:13:09 +0000 (10:13 -0700)]
functionp doc improvement

* doc/lispref/eval.texi, doc/lispref/functions.texi, src/eval.c:
Document functionp a bit more carefully.  It can return t
on non-functions.

2 years ago; * etc/NEWS: Fix a typo.
Eli Zaretskii [Wed, 11 May 2022 16:31:16 +0000 (19:31 +0300)]
; * etc/NEWS: Fix a typo.

2 years agochar-uppercase-p: New predicate
Tino Calancha [Wed, 11 May 2022 16:01:11 +0000 (18:01 +0200)]
char-uppercase-p: New predicate

Return non-nil if its argument is an uppercase character.

Suggested in Bug#54804.

* lisp/subr.el (char-uppercase-p): New defun.
* etc/NEWS (Lisp Changes in Emacs 29.1): Announce it
* doc/lispref/display.texi (Size of Displayed Text): Document it.
* test/lisp/subr-tests.el (test-char-uppercase-p): Add a test.

2 years agoImprove handling of `tramp-set-file-uid-gid'
Michael Albinus [Wed, 11 May 2022 16:02:13 +0000 (18:02 +0200)]
Improve handling of `tramp-set-file-uid-gid'

* lisp/net/tramp.el (tramp-skeleton-write-region):
Call `tramp-set-file-uid-gid' properly.
(tramp-set-file-uid-gid): Handle also `tramp-crypt-file-name-handler'.

* test/lisp/net/tramp-tests.el (tramp-test27-load): Adapt test.

2 years agoClarify precedence rules in Active Display Table manual node
Lars Ingebrigtsen [Wed, 11 May 2022 15:51:05 +0000 (17:51 +0200)]
Clarify precedence rules in Active Display Table manual node

* doc/lispref/display.texi (Active Display Table): Say what "takes
precedence" means here (bug#18546).

2 years agoAllow giving switches to the program in `M-x term'
Lars Ingebrigtsen [Wed, 11 May 2022 15:10:30 +0000 (17:10 +0200)]
Allow giving switches to the program in `M-x term'

* lisp/term.el (term, ansi-term): Allow giving switches to the
program (bug#18105).

2 years agoFix previous cperl-file-style change
Lars Ingebrigtsen [Wed, 11 May 2022 14:47:53 +0000 (16:47 +0200)]
Fix previous cperl-file-style change

* lisp/progmodes/cperl-mode.el (cperl--set-file-style): New function.
(cperl-mode): Add it to hack-local-variables-hook to really set
the cperl style.

2 years agoRegenerated ldefs-boot.el
Lars Ingebrigtsen [Wed, 11 May 2022 14:29:14 +0000 (16:29 +0200)]
Regenerated ldefs-boot.el

2 years agoAdd new user option 'cperl-file-style'
Lars Ingebrigtsen [Wed, 11 May 2022 14:29:01 +0000 (16:29 +0200)]
Add new user option 'cperl-file-style'

* lisp/progmodes/cperl-mode.el (cperl-file-style): New user option
(bug#17948).
(cperl-mode): Mention it.
(cperl-style-alist): Mention it.

2 years agoFix fontification of multi-line declarations in f90-mode
Lars Ingebrigtsen [Wed, 11 May 2022 14:11:23 +0000 (16:11 +0200)]
Fix fontification of multi-line declarations in f90-mode

* lisp/progmodes/f90.el (f90-font-lock-keywords-2): Fontify
multi-line declarations (bug#17222).

2 years ago* etc/NEWS: Improve some entries.
Stefan Kangas [Wed, 11 May 2022 04:22:57 +0000 (06:22 +0200)]
* etc/NEWS: Improve some entries.

2 years ago* lisp/net/browse-url.el (browse-url-button-map): Prefer defvar-keymap.
Stefan Kangas [Tue, 10 May 2022 21:20:52 +0000 (23:20 +0200)]
* lisp/net/browse-url.el (browse-url-button-map): Prefer defvar-keymap.

2 years ago* lisp/scroll-lock.el (scroll-lock-mode-map): Prefer defvar-keymap.
Stefan Kangas [Tue, 10 May 2022 21:13:19 +0000 (23:13 +0200)]
* lisp/scroll-lock.el (scroll-lock-mode-map): Prefer defvar-keymap.

2 years ago* lisp/iimage.el (iimage-mode-map): Prefer defvar-keymap.
Stefan Kangas [Tue, 10 May 2022 20:59:57 +0000 (22:59 +0200)]
* lisp/iimage.el (iimage-mode-map): Prefer defvar-keymap.

2 years ago* lisp/calendar/diary-lib.el (diary-mode-map): Prefer defvar-keymap.
Stefan Kangas [Tue, 10 May 2022 20:55:08 +0000 (22:55 +0200)]
* lisp/calendar/diary-lib.el (diary-mode-map): Prefer defvar-keymap.

2 years ago; * lisp/cus-edit.el (custom-toggle-hide-all-variables): Doc fix.
Eli Zaretskii [Wed, 11 May 2022 13:49:15 +0000 (16:49 +0300)]
; * lisp/cus-edit.el (custom-toggle-hide-all-variables): Doc fix.

2 years agoAdd grep-files-aliases entry for .am files
Lars Ingebrigtsen [Wed, 11 May 2022 13:13:37 +0000 (15:13 +0200)]
Add grep-files-aliases entry for .am files

* lisp/progmodes/grep.el (grep-files-aliases): Add an alias for
.am files (bug#16921).

2 years agoMake recent nicknames erc change more backwards-compatible
Lars Ingebrigtsen [Wed, 11 May 2022 13:02:08 +0000 (15:02 +0200)]
Make recent nicknames erc change more backwards-compatible

* lisp/erc/erc-button.el (erc-button-add-buttons): Make the
nicknames change more backwards-compatible (bug#16271).

2 years agoAdd new command 'vc-dir-mark-by-regexp'
Lars Ingebrigtsen [Wed, 11 May 2022 12:59:17 +0000 (14:59 +0200)]
Add new command 'vc-dir-mark-by-regexp'

* doc/emacs/maintaining.texi (VC Directory Commands): Document it.
* lisp/vc/vc-dir.el (vc-dir-mode-map): Bind it to `%'.
(vc-dir-mark-by-regexp): New command (bug#16460).

2 years agoAdd support for changing pointer types on Haiku
Po Lu [Wed, 11 May 2022 12:40:32 +0000 (12:40 +0000)]
Add support for changing pointer types on Haiku

* doc/lispref/frames.texi (Pointer Shape): Document that the
pointer shape can now be changed on some window systems other
than X.

* lisp/term/haiku-win.el (x-pointer-X-cursor, x-pointer-arrow)
(x-pointer-bottom-left-corner, x-pointer-bottom-right-corner)
(x-pointer-bottom-side, x-pointer-clock, x-pointer-cross)
(x-pointer-cross-reverse, x-pointer-crosshair)
(x-pointer-diamond-cross, x-pointer-hand1, x-pointer-hand2)
(x-pointer-left-side, x-pointer-right-side)
(x-pointer-sb-down-arrow, x-pointer-sb-left-arrow)
(x-pointer-sb-right-arrow, x-pointer-sb-up-arrow, x-pointer-target)
(x-pointer-top-left-corner, x-pointer-top-right-corner)
(x-pointer-top-side, x-pointer-watch, x-pointer-invisible): New
pointer constants.

* src/haiku_support.cc (BCursor_from_id): Accept int instead of
enum.
* src/haiku_support.h: Update prototypes.

* src/haikufns.c (haiku_create_frame): Stop manually assigning
cursors and set default value of the mouse color property.
(haiku_free_frame_resources): Free custom cursors too.
(struct user_cursor_info, INIT_USER_CURSOR): New struct.
(haiku_free_custom_cursors): New function.
(haiku_set_mouse_color): New param handler.
(haiku_frame_parm_handlers): Add param handler.
(syms_of_haikufns): New cursor shape variables from X.

* src/haikuterm.h: Update prototypes.

2 years agoFix compilation warning in gdb-mi.el
Lars Ingebrigtsen [Wed, 11 May 2022 12:28:32 +0000 (14:28 +0200)]
Fix compilation warning in gdb-mi.el

* lisp/progmodes/gdb-mi.el (gud-go): Fix compilation warning
introduced by previous change.

2 years agoBind gud-go and allow the prefix to enter arguments
Lars Ingebrigtsen [Wed, 11 May 2022 12:26:53 +0000 (14:26 +0200)]
Bind gud-go and allow the prefix to enter arguments

* lisp/progmodes/gdb-mi.el (gdb): Bind gud-go to `C-c C-v' and
allow a prefix to enter arguments (bug#10106).

2 years agoDon't signal errors in check-declare-directory
Lars Ingebrigtsen [Wed, 11 May 2022 12:18:27 +0000 (14:18 +0200)]
Don't signal errors in check-declare-directory

* lisp/emacs-lisp/check-declare.el (check-declare-directory): Don't
bug out if we don't find any files with declare-function:(bug#55354)
because this is a predicate function, and that's inconvenient.

2 years ago(sqlite-mode--column-names): Suppport nested parens
Yoav Marco [Wed, 11 May 2022 12:05:37 +0000 (14:05 +0200)]
(sqlite-mode--column-names): Suppport nested parens

* lisp/sqlite-mode.el (sqlite-mode--column-names): Make parsing
more resilient (bug#55363).

Copyright-paperwork-exempt: yes

2 years agoRevert "Add meta navigation keys to outline-minor-mode-cycle-map"
Lars Ingebrigtsen [Wed, 11 May 2022 11:56:10 +0000 (13:56 +0200)]
Revert "Add meta navigation keys to outline-minor-mode-cycle-map"

This reverts commit 2e949031160d769bbac941c064b825a5c578afc5.

These key bindings are too intrusive.

2 years agoDon't try to toggle untogglable widgets in custom-toggle-hide-all-variables
Lars Ingebrigtsen [Wed, 11 May 2022 11:42:02 +0000 (13:42 +0200)]
Don't try to toggle untogglable widgets in custom-toggle-hide-all-variables

* lisp/cus-edit.el (custom-toggle-hide-all-variables): Only toggle
the widgets that can be toggled.

2 years agoWarn about quoted symbols in defcustom choice/other forms
Lars Ingebrigtsen [Wed, 11 May 2022 10:51:11 +0000 (12:51 +0200)]
Warn about quoted symbols in defcustom choice/other forms

* lisp/emacs-lisp/bytecomp.el
(byte-compile--suspicious-defcustom-choice): New function (bug#16271).
(byte-compile-nogroup-warn): Use it to warn about forms like
(choice (const :tag "foo" 'bar)).

2 years agoUse `nicknames' instead if `'nicknames' in erc-button-alist
Lars Ingebrigtsen [Wed, 11 May 2022 10:37:07 +0000 (12:37 +0200)]
Use `nicknames' instead if `'nicknames' in erc-button-alist

* lisp/erc/erc-button.el (erc-button-alist): Use "nicknames"
instead of "'nicknames" to enable automatic syntax checking
(bug#16271).
(erc-button-add-buttons): Adjust usage.

2 years agoRegenerated ldefs-boot.el
Lars Ingebrigtsen [Wed, 11 May 2022 00:31:29 +0000 (02:31 +0200)]
Regenerated ldefs-boot.el

2 years agoFix more defcustom :type errors
Lars Ingebrigtsen [Wed, 11 May 2022 00:25:14 +0000 (02:25 +0200)]
Fix more defcustom :type errors

* lisp/vc/vc-src.el (vc-src-master-templates):
* lisp/vc/vc-rcs.el (vc-rcs-master-templates): Remove quote
characters inserted by mistake.

2 years agoRemedy ineffective backslashes and fix regexps
Mattias Engdegård [Sun, 8 May 2022 21:37:10 +0000 (23:37 +0200)]
Remedy ineffective backslashes and fix regexps

* lisp/info.el (Info-read-node-name-2): Double backslash for intended
escaping effect.
* lisp/term.el (term-send-function-key): Remove redundant `+`.
* lisp/leim/quail/indian.el:
* lisp/simple.el (scratch-buffer, get-scratch-buffer-create):
Remove ineffective backslashes.

2 years ago* src/lisp.h (FOR_EACH_TAIL_INTERNAL): Faster node comparison.
Mattias Engdegård [Sun, 8 May 2022 21:33:49 +0000 (23:33 +0200)]
* src/lisp.h (FOR_EACH_TAIL_INTERNAL): Faster node comparison.

2 years agoFix mouse pointer avoidance in some configurations
Po Lu [Wed, 11 May 2022 08:01:32 +0000 (16:01 +0800)]
Fix mouse pointer avoidance in some configurations

* lisp/avoid.el (mouse-avoidance-random-shape): Ignore invisible
pointer.
(mouse-avoidance-ignore-p): Adjust for interprogram DND.
* lisp/term/x-win.el (x-pointer-invisible): Make value larger
than the maximum possible glyph.

* src/xfns.c (x_set_mouse_color): Use function that handles
`x-pointer-invisible' too.
* src/xterm.c (x_create_font_cursor): New function.  Handle
invisible cursors.
* src/xterm.h: Update prototypes.

2 years ago* lisp/textmodes/string-edit.el: Improvements for pop-to-buffer (bug#33007)
Juri Linkov [Wed, 11 May 2022 07:50:12 +0000 (10:50 +0300)]
* lisp/textmodes/string-edit.el: Improvements for pop-to-buffer (bug#33007)

* lisp/textmodes/string-edit.el (string-edit): Use pop-to-buffer
with fit-window-to-buffer after the buffer is filled with text.
(string-edit-done, string-edit-abort): Use (quit-window 'kill).

2 years agoMake Haiku event buffer non-static
Po Lu [Wed, 11 May 2022 06:59:39 +0000 (06:59 +0000)]
Make Haiku event buffer non-static

* src/haikuterm.c (haiku_read_socket): Don't make `buf' static
in case thread yielding happens inside.

2 years agoFix event memory leak on Haiku
Po Lu [Wed, 11 May 2022 06:56:43 +0000 (06:56 +0000)]
Fix event memory leak on Haiku

* src/haikuterm.c (haiku_read_socket): Allocate event buffer on
the stack.

2 years agoFix frame invalidation on Haiku
Po Lu [Wed, 11 May 2022 03:48:36 +0000 (03:48 +0000)]
Fix frame invalidation on Haiku

* src/haiku_support.cc (FlipBuffers): Only set view bitmap if it
actually changed.

* src/haikuterm.c (haiku_clip_to_string_exactly)
(haiku_draw_window_cursor, haiku_draw_fringe_bitmap): Fix region
invalidation.

2 years agoTry to preserve font styles in the Haiku font dialog
Po Lu [Wed, 11 May 2022 02:02:21 +0000 (02:02 +0000)]
Try to preserve font styles in the Haiku font dialog

* haiku_support.cc (class EmacsFontSelectionDialog)
(UpdateStylesForIndex): If a style was previously selected and
exists in the new family as well, select it after adding the new
items.

2 years agoMake reliefs on Haiku more like X
Po Lu [Wed, 11 May 2022 01:21:18 +0000 (01:21 +0000)]
Make reliefs on Haiku more like X

* src/haikuterm.c (haiku_draw_relief_rect): Use frame background
(normal GC) for corners.

2 years ago; * src/window.c (Fset_window_vscroll): Fix doc string.
Po Lu [Wed, 11 May 2022 01:13:36 +0000 (09:13 +0800)]
; * src/window.c (Fset_window_vscroll): Fix doc string.

2 years agoClean up some MAYBE_UNUSED functions
Po Lu [Wed, 11 May 2022 01:09:05 +0000 (09:09 +0800)]
Clean up some MAYBE_UNUSED functions

* src/xterm.c (x_clear_area1): Wrap in the conditions where it
will actually be used.

2 years ago* src/eval.c (Ffunctionp): Clarify "function" in doc string.
Paul Eggert [Tue, 10 May 2022 22:20:49 +0000 (15:20 -0700)]
* src/eval.c (Ffunctionp): Clarify "function" in doc string.

2 years ago* src/floatfns.c: Update comment.
Paul Eggert [Tue, 10 May 2022 21:47:09 +0000 (14:47 -0700)]
* src/floatfns.c: Update comment.

2 years agoPort libm configure-time test to Solaris 11.4
Paul Eggert [Tue, 10 May 2022 21:44:35 +0000 (14:44 -0700)]
Port libm configure-time test to Solaris 11.4

* configure.ac (LIB_MATH): Check all the math.h functions
that Emacs uses, not just sqrt (Bug#55294).