1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-03 14:10:47 -08:00
Commit graph

156350 commits

Author SHA1 Message Date
Yoav Marco
72b1007987 (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
2022-05-11 14:05:37 +02:00
Lars Ingebrigtsen
f8bafead0b Revert "Add meta navigation keys to outline-minor-mode-cycle-map"
This reverts commit 2e94903116.

These key bindings are too intrusive.
2022-05-11 13:56:10 +02:00
Lars Ingebrigtsen
6e275c1bf8 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.
2022-05-11 13:42:02 +02:00
Lars Ingebrigtsen
231cf5ee2b 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)).
2022-05-11 12:51:11 +02:00
Lars Ingebrigtsen
5a12148503 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.
2022-05-11 12:37:07 +02:00
Lars Ingebrigtsen
9fae7b8e03 Regenerated ldefs-boot.el 2022-05-11 11:58:24 +02:00
Lars Ingebrigtsen
cd7f7c2c33 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.
2022-05-11 11:58:24 +02:00
Mattias Engdegård
474241f356 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.
2022-05-11 10:28:08 +02:00
Mattias Engdegård
14fe0eec0c * src/lisp.h (FOR_EACH_TAIL_INTERNAL): Faster node comparison. 2022-05-11 10:28:07 +02:00
Po Lu
95717db1e8 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.
2022-05-11 16:01:52 +08:00
Juri Linkov
c8141f7675 * 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).
2022-05-11 10:50:12 +03:00
Po Lu
96be8458b0 Make Haiku event buffer non-static
* src/haikuterm.c (haiku_read_socket): Don't make `buf' static
in case thread yielding happens inside.
2022-05-11 06:59:39 +00:00
Po Lu
70c4b5bdc6 Fix event memory leak on Haiku
* src/haikuterm.c (haiku_read_socket): Allocate event buffer on
the stack.
2022-05-11 06:56:43 +00:00
Po Lu
80951f764b 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.
2022-05-11 03:48:36 +00:00
Po Lu
7360813208 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.
2022-05-11 02:02:21 +00:00
Po Lu
a78a5b1346 Make reliefs on Haiku more like X
* src/haikuterm.c (haiku_draw_relief_rect): Use frame background
(normal GC) for corners.
2022-05-11 01:21:18 +00:00
Po Lu
a09fc82748 ; * src/window.c (Fset_window_vscroll): Fix doc string. 2022-05-11 09:13:36 +08:00
Po Lu
8baa13ed99 Clean up some MAYBE_UNUSED functions
* src/xterm.c (x_clear_area1): Wrap in the conditions where it
will actually be used.
2022-05-11 09:09:05 +08:00
Paul Eggert
430b5ba838 * src/eval.c (Ffunctionp): Clarify "function" in doc string. 2022-05-10 15:21:57 -07:00
Paul Eggert
4433df3b20 * src/floatfns.c: Update comment. 2022-05-10 14:47:22 -07:00
Paul Eggert
203ffc6846 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).
2022-05-10 14:45:28 -07:00
Alexander Adolf
620ac67355 EUDC: Add completion-at-point support
* lisp/net/eudc-capf.el: New file.
* lisp/gnus/message.el (message-mode): Add `eudc-capf-complete' to
`completion-at-point-functions' when a `message-mode' buffer is
created.
* doc/misc/eudc.texi (Inline Query Expansion): Add a new subsection,
describing the new `completion-at-point' mechanism in `message-mode'.
* etc/NEWS (EUDC): Describe the new `completion-at-point' method.
2022-05-10 17:10:19 -04:00
समीर सिंह Sameer Singh
b186d5063d Add support for the Siddham script
* lisp/language/indian.el ("Siddham"): New language environment.
Add composition rules for Siddham.  Add sample text and input
method.
* lisp/international/fontset.el (script-representative-chars)
(setup-default-fontset): Support Siddham.
* lisp/leim/quail/indian.el ("siddham"): New input method.

* etc/HELLO: Add a Siddham greeting.
* etc/NEWS: Announce the new language environment and its
input method.  (Bug#55350)
2022-05-10 21:24:07 +03:00
Eli Zaretskii
a175c9f3f0 ; * etc/NEWS: Clarify entry about Buffers menu. 2022-05-10 20:17:59 +03:00
Eli Zaretskii
b1cc3adac2 ; Fix recent changes in documentation of ispell.el
* etc/NEWS:
* lisp/textmodes/ispell.el (ispell-region, ispell-buffer): Avoid
passive tense in doc strings and NEWS.
2022-05-10 20:13:43 +03:00
Lars Ingebrigtsen
44db73d968 Fix some quoting problems in defcustom :type
* lisp/progmodes/gdb-mi.el
(gdb-restore-window-configuration-after-quit):
* lisp/gnus/gnus.el (large-newsgroup-initial):
* lisp/eshell/em-hist.el (eshell-hist-ignoredups): Fix invalid
quoting in :type.
2022-05-10 18:33:14 +02:00
Lars Ingebrigtsen
fd49e3c62b Add new command to toggle hiding all widgets in a Customize buffer
* lisp/cus-edit.el (custom-commands): Add menu entry.
(custom-toggle-hide-all-variables): New command (bug#15748).
2022-05-10 17:46:55 +02:00
Lars Ingebrigtsen
2f3cf7ffe3 Use fields on log-edit headers (which changes `C-a' behaviour)
* lisp/vc/log-edit.el (log-edit-insert-message-template): Fieldify
headers so that `C-a' takes us to the start of the string, not the
line (bug#15645).
2022-05-10 17:05:22 +02:00
Lars Ingebrigtsen
00451c6fc6 Make ispell-region/buffer push the mark of the final word
* lisp/textmodes/ispell.el (ispell-region): Push the mark of the
final location.
(ispell-process-line): Change the return value to include the
position of the final word.
2022-05-10 16:23:43 +02:00
Lars Ingebrigtsen
f38a5e45c8 Fix markup in read-number doc string
* lisp/subr.el (read-number): Fix markup for the letter.
2022-05-10 15:41:27 +02:00
Lars Ingebrigtsen
ec01391ab3 Allow packages to alter menu entries in the Buffers menu
* lisp/menu-bar.el (menu-bar-update-buffers): Use it.
(menu-bar-buffers-menu-command-entries): Put the entries into the
defvar so that packages can modify it (bug#14244).
2022-05-10 15:41:27 +02:00
Po Lu
cfa317fa92 Improve display of relief rectangles on NS
* src/nsterm.m (ns_draw_relief): Respect cursor color and draw
corners like X.
2022-05-10 21:34:44 +08:00
Eli Zaretskii
d1848d82aa Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2022-05-10 16:13:04 +03:00
समीर सिंह Sameer Singh
97ca460163 ; * lisp/language/indian.el: Improve composition rules. (Bug#55341) 2022-05-10 16:12:31 +03:00
Po Lu
77bf4ca000 Respect `alpha-background' drawing relief corners
* src/xterm.c (x_draw_relief_rect): Respect background alpha for
corner rects.
2022-05-10 21:08:15 +08:00
Eli Zaretskii
68dd94448f ; Fix recent documentation changes
* src/fileio.c (Fdo_auto_save):
* src/buffer.c (Fbuffer_modified_p, Frestore_buffer_modified_p):
* doc/lispref/buffers.texi (Buffer Modification): Improve
documentation of 'do-auto-save', 'buffer-modified-p' and
'restore-buffer-modified-p'.
2022-05-10 16:06:10 +03:00
Lars Ingebrigtsen
000f13a2bc Make `apropos-variable' include values in output
* lisp/apropos.el (apropos-print): Include variable values in the
output (bug#13842).
2022-05-10 15:02:04 +02:00
Eli Zaretskii
66e4bf2bcb ; * etc/NEWS: Clarify recently-added entries. 2022-05-10 15:53:51 +03:00
Eli Zaretskii
9beb04dd07 ; * doc/emacs/building.texi (Compilation Mode): Fix typo. 2022-05-10 15:47:06 +03:00
Po Lu
145727df29 Fix display of depressed buttons
* src/xterm.c (x_draw_relief_rect): Fix typo.
2022-05-10 17:38:53 +08:00
Po Lu
773c5c00d2 Improve relief rect handling on Haiku
* haikuterm.c (haiku_calculate_relief_colors): Calculate
backgrounds for image glyphs like on X.
(haiku_draw_relief_rect): Remove extra parameter.
(haiku_draw_string_box, haiku_draw_image_relief): Adjust
accordingly.
2022-05-10 09:00:39 +00:00
Po Lu
e8d643eb83 Fix X11 relief background clearning when hwidth is larger than vwidth
* src/xterm.c (x_fill_triangle, x_make_point, x_inside_rect_p):
New functions.
(x_draw_relief_rect): Complete rewrite.  Use more sensible
primitives.
2022-05-10 16:50:10 +08:00
Po Lu
c7b48b61d0 Improve display of reliefs on NS
* src/nsfont.m (nsfont_draw): Don't compensate for left box
twice.
* src/nsterm.m (ns_draw_relief): Draw outer edges of box like on
X.
2022-05-10 16:01:00 +08:00
Po Lu
88545428f0 Handle deletion of opacity property too
* src/xterm.c (handle_one_xevent): Clear `alpha' frame parameter
when opacity prop is gone or invalid.
2022-05-10 14:40:26 +08:00
Po Lu
58f6cbeb58 Work around some broken programs when reading opacity prop
* src/xterm.c (handle_one_xevent): Accept some other types that
property is set to by thoughtless programs.
2022-05-10 14:38:53 +08:00
Lars Ingebrigtsen
d221c02fa1 Fix bibtex-map-entries regression at bobp
* lisp/textmodes/bibtex.el (bibtex-map-entries): Fix regression
introduced by c32e8b33f (bug#55342) -- don't fail when the first
entry is at bobp.
2022-05-10 07:05:43 +02:00
Stefan Kangas
93a74773b6 Merge from origin/emacs-28
7b4bdf7b9b Remove the AUCTeX subsection from MS-Windows FAQ
d2a5631552 Update AUCTeX FAQ entry
177718bc6d Update string-to-number documentation to bignum Emacs
74cc3b525f Fix doc string references to tags-loop-continue
2022-05-10 06:30:34 +02:00
Po Lu
3c5e1f8ec8 Simplify Haiku selection code
* src/haiku_select.cc (get_clipboard_object): New function.
(BClipboard_find_data, BClipboard_get_targets, BClipboard_set_data)
(BClipboard_find_system_data)
(BClipboard_find_primary_selection_data)
(BClipboard_find_secondary_selection_data)
(BClipboard_set_system_data, BClipboard_set_primary_selection_data)
(BClipboard_set_secondary_selection_data, BClipboard_free_data)
(BClipboard_system_targets, BClipboard_primary_targets)
(BClipboard_secondary_targets): Delete functions.
(be_find_clipboard_data_1, be_set_clipboard_data_1)
(be_get_clipboard_targets_1, be_find_clipboard_data)
(be_set_clipboard_data, be_get_clipboard_targets): New
functions.
(be_lock_clipboard_message, be_unlock_clipboard): Use
`get_clipboard_object' to get clipboard from ID.

* src/haikuselect.c (haiku_get_clipboard_name): New function.
(Fhaiku_selection_data, Fhaiku_selection_put)
(Fhaiku_selection_owner_p): Adjust to use new simplified
functions.

* src/haikuselect.h: Update prototypes.
2022-05-10 04:11:48 +00:00
Lars Ingebrigtsen
e568c3845c Add more compilation-auto-jump-to-first-error options
* doc/emacs/building.texi (Compilation Mode): Document it.
* lisp/progmodes/compile.el
(compilation-auto-jump-to-first-error): Extend type.
(compilation--file-known-p): New function.
(compilation-auto-jump): Use it to support the new values
(bug#8228).
(compilation-find-file-1): Factored out into own function.
(compilation-find-file): Factored out from here.
2022-05-10 05:58:33 +02:00
Lars Ingebrigtsen
2d0085f756 Make dabbrev use the buffer's file name as a source for completions
* lisp/dabbrev.el (dabbrev--find-expansion): Include the buffer's
file name in the completions (bug#8163).
2022-05-10 05:09:15 +02:00