1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-04 11:40:22 +00:00
Commit Graph

156567 Commits

Author SHA1 Message Date
Lars Ingebrigtsen
9e131744fb 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.
2022-05-11 16:47:53 +02:00
Lars Ingebrigtsen
ca52b12780 Regenerated ldefs-boot.el 2022-05-11 16:29:14 +02:00
Lars Ingebrigtsen
cf1e1584d9 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.
2022-05-11 16:29:01 +02:00
Lars Ingebrigtsen
45ccad3569 Fix fontification of multi-line declarations in f90-mode
* lisp/progmodes/f90.el (f90-font-lock-keywords-2): Fontify
multi-line declarations (bug#17222).
2022-05-11 16:12:35 +02:00
Stefan Kangas
c874916d8d * etc/NEWS: Improve some entries. 2022-05-11 16:12:01 +02:00
Stefan Kangas
7529ddef22 * lisp/net/browse-url.el (browse-url-button-map): Prefer defvar-keymap. 2022-05-11 16:12:01 +02:00
Stefan Kangas
4299bf6da7 * lisp/scroll-lock.el (scroll-lock-mode-map): Prefer defvar-keymap. 2022-05-11 16:12:00 +02:00
Stefan Kangas
9971a309aa * lisp/iimage.el (iimage-mode-map): Prefer defvar-keymap. 2022-05-11 16:12:00 +02:00
Stefan Kangas
4993050c2a * lisp/calendar/diary-lib.el (diary-mode-map): Prefer defvar-keymap. 2022-05-11 16:12:00 +02:00
Eli Zaretskii
fb42001086 ; * lisp/cus-edit.el (custom-toggle-hide-all-variables): Doc fix. 2022-05-11 16:49:15 +03:00
Lars Ingebrigtsen
4e4c62a156 Add grep-files-aliases entry for .am files
* lisp/progmodes/grep.el (grep-files-aliases): Add an alias for
.am files (bug#16921).
2022-05-11 15:13:37 +02:00
Lars Ingebrigtsen
c113f2626e 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).
2022-05-11 15:02:08 +02:00
Lars Ingebrigtsen
d373daf568 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).
2022-05-11 14:59:27 +02:00
Po Lu
5079f42446 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.
2022-05-11 12:40:53 +00:00
Lars Ingebrigtsen
125cda7498 Fix compilation warning in gdb-mi.el
* lisp/progmodes/gdb-mi.el (gud-go): Fix compilation warning
introduced by previous change.
2022-05-11 14:28:32 +02:00
Lars Ingebrigtsen
61046ffbec 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).
2022-05-11 14:26:53 +02:00
Lars Ingebrigtsen
ed1a24b4b2 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.
2022-05-11 14:18:27 +02:00
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