1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-14 07:20:35 -08:00
Commit graph

142788 commits

Author SHA1 Message Date
Lars Ingebrigtsen
b8f447867f Display the language in the Flyspell mode line
* lisp/textmodes/flyspell.el (flyspell-mode): Display the language
in the mode line (bug#14957).
2020-09-19 16:05:55 +02:00
Stefan Kangas
3b79ff6179 Fix typo in project-kill-buffers
* lisp/progmodes/project.el (project-kill-buffers): Fix typo.
Reported by Manuel Uberti <manuel.uberti@inventati.org>
2020-09-18 20:32:15 +02:00
Andrii Kolomoiets
a1d9463ae7 Save and restore point in ewoc-invalidate
* lisp/emacs-lisp/ewoc.el (ewoc--refresh-node): Save and restore point line
and column offset.
(eowc-map) (ewoc--invalidate) (ewoc-set-hf): Don't use save-excursion
* lisp/vc/vc-dir.el (vc-dir-update): Don't save/restore point on calling
'ewoc-invalidate'.
2020-09-18 11:53:32 -04:00
Adam Sjøgren
d470cff770 Make emacs-uptime insert at point with prefix arg
* lisp/time.el (emacs-uptime): Insert at point when called with prefix
argument.  (Bug#20112)
2020-09-18 16:26:16 +02:00
Stefan Kangas
5938fec07b Doc fix in directory-free-space-program
* lisp/files.el (directory-free-space-program): Doc fix; there is no
need to repeat that its obsolete here since it will be shown by
customize, describe-variable, etc. automatically.
2020-09-18 16:26:16 +02:00
Lars Ingebrigtsen
610be8f64d Fix the defcustom type of eww-retrieve-command
* lisp/net/eww.el (eww-retrieve-command): The type is a list of
strings.
2020-09-18 15:03:03 +02:00
Lars Ingebrigtsen
635666e7bf Use a widget for the face link in Customize buffers
* doc/lispref/customize.texi (Common Keywords): Document it.

* lisp/cus-edit.el (custom-face-value-create): Use a widget
instead of a button so that TAB works (bug#20664).

* lisp/wid-edit.el (face-link): New widget.
(widget-face-link-action): New action.
2020-09-18 13:28:12 +02:00
Michael Albinus
b23beef3f2 Fix error in D-Bus test
* test/lisp/net/dbus-tests.el (dbus-test04-register-method):
Do not check for error message text.
(dbus--test-signal-handler): Fix docstring.
(dbus--test-timeout-handler): New defun.
(dbus-test05-register-signal)
(dbus-test06-register-property-emits-signal): Use it.
2020-09-18 11:17:42 +02:00
Michael Albinus
013ac76b89 * lisp/progmodes/cperl-mode.el (cperl-set-style): Fix docstring. 2020-09-18 11:17:17 +02:00
Dmitry Gutov
1283d3a5b2 Fix typo, reported by Manuel Uberti
* lisp/progmodes/project.el (project-kill-buffer-conditions):
Fix typo.
2020-09-18 12:15:46 +03:00
Eli Zaretskii
a22fdc9620 Minor cleanup of last change
* src/termchar.h (struct tty_display_info):
* src/term.c (turn_on_face, tty_capable_p): Reformat new code.
2020-09-18 11:43:12 +03:00
Eli Zaretskii
75873450e1 Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2020-09-18 11:34:38 +03:00
Mike Hamrick
e0e147e103 TTY Support for ECMA-48 strike-through graphic rendition
* term.c: Support strike-through in capable terminals.
(no_color_bit): Replace unused NC_INVIS with
NC_STRIKE_THROUGH.
(turn_on_face): Output via TS_enter_strike_through_mode
if available.
(turn_off_face): Handle strike-through case.
(tty_capable_p, init_tty): Support strike-through.
* termchar.h (struct tty_display_info): Add field for
strike-through.
* xfaces.c (tty_supports_face_attributes_p, realize_tty_face):
Handle strike-through case.
* dispextern.h: Add TTY_CAP_STRIKE_THROUGH definition.
(struct face): Add field tty_strike_through_p.
2020-09-18 11:31:12 +03:00
James N. V. Cash
7b2dd0ed50 * lisp/tab-bar.el (tab-bar-new-tab-to): Fix tabs not reappearing (bug#42052)
Copyright-paperwork-exempt: yes
2020-09-18 11:27:07 +03:00
Eli Zaretskii
38519caa67 Update TUTORIAL.he
* etc/tutorials/TUTORIAL.he: Adapt to latest changes in the
English TUTORIAL.
2020-09-18 10:59:26 +03:00
Richard Stallman
7fec0a444e Document easy ways of typing undo key on TTY frames
* doc/emacs/basic.texi (Basic Undo): Document the easiest way to
type the undo key.

* etc/tutorials/TUTORIAL: Describe typing C-_ without the Shift
key.
2020-09-18 10:50:57 +03:00
Lars Ingebrigtsen
8a028e900d Revert "Make delete-pair only delete pairs that are part of insert-pair-alist"
This reverts commit 82de8ecc08.

This patch breaks doing `M-x delete-pair' on "foo" in text-mode.
2020-09-18 01:11:40 +02:00
Lars Ingebrigtsen
1e301425dd Remove mention of C-u M-. from the refcards
The "find next tags" command no longer exists, as the machinery has
been replaced by xref.
2020-09-18 00:20:38 +02:00
Mauro Aranda
3b3cf6c588 Fix recent change in wid-edit
* lisp/wid-edit.el (widget-button--check-and-call-button): Record the
ending position of event, because we might need it when
the :mouse-down-action function returns non-nil (bug#20664).
2020-09-17 23:46:24 +02:00
Lars Ingebrigtsen
bd6c600687 Doc string typo fix for mode-line-position-column-format
* lisp/bindings.el (mode-line-position-column-format): Fix typo in
doc string.
2020-09-17 20:48:29 +02:00
Oleh Krehel
65b7d465a5 Make face names clickable in Customize buffers
* lisp/cus-edit.el (custom-face-value-create): Make the face name
a clickable button (bug#20664).
2020-09-17 20:43:40 +02:00
Lars Ingebrigtsen
8b61e20e4e Refactor a very long wid-edit function and add additional checking
* lisp/wid-edit.el (widget-button--check-and-call-button): Factor
out a too-long condition/call...
(widget-button-click): From here.
2020-09-17 20:43:40 +02:00
Juri Linkov
11f03d7476 Allow binding keys in `query-replace-map'
* lisp/replace.el (perform-replace): Allow binding keys in
`query-replace-map' (bug#20687).
2020-09-17 20:43:40 +02:00
Eli Zaretskii
ccd555f04b ; * src/keyboard (make_lispy_event): Fix a typo. 2020-09-17 21:41:58 +03:00
Lars Ingebrigtsen
5e031c5e70 Fix up previous autoload-find-generated-file change
* lisp/emacs-lisp/autoload.el (autoload-find-generated-file): Use
the correct name for find-file-hook.
2020-09-17 18:09:01 +02:00
Lars Ingebrigtsen
64ba14f366 Make package install not bug out on weird stuff in find-file-hooks
* lisp/emacs-lisp/autoload.el (autoload-find-generated-file):
Users may have read-only-mode in find-file-hooks (bug#43460) so
just disable all the hooks here.
2020-09-17 18:02:44 +02:00
Harald Jörg
f7e68759d0 cperl-mode: Add new value "PBP" for 'cperl-set-style'
* lisp/progmodes/cperl-mode.el (cperl-style-alist)
(cperl-set-style): Add indentation style recommended by Damian Conway's
book "Perl Best Practices".

* test/lisp/progmodes/cperl-mode-tests.el
(cperl-mode-test-indent-styles): Add a test to verify indentation
and unraveling of conditionals (bug#43457).
2020-09-17 17:35:11 +02:00
Eli Zaretskii
fa0859fda9 Fix documentation of a recent change
* src/keyboard.c (update_recent_keys): Fix commentary.
(Flossage_size): Fix doc string.

* etc/NEWS: Move and fix wording of the recently added entry.
2020-09-17 18:24:22 +03:00
Masahiro Nakamura
8af0fe243f etc/refcards/refcard.tex: Fix some grouping regexps
* etc/refcards/refcard.tex (section{Regular Expressions}): Fix the
shy/numbered grouping examples (bug#43429).
2020-09-17 17:15:12 +02:00
Michael Albinus
6d6ef7b1d0 Work on D-Bus properties etc
* lisp/net/dbus.el (seq, subr-x): Require.
(dbus-error-disconnected, dbus-error-service-unknown): New defconst.
(dbus-set-property, dbus-register-property): Use `keywordp'.  Fix
proper value sending a signal.

* test/lisp/net/dbus-tests.el (dbus-test04-register-method):
Extend test.
(dbus--test-signal-received): New defvar.
(dbus--test-signal-handler): New defun.
(dbus-test05-register-signal)
(dbus-test06-register-property-emits-signal): New tests.
(dbus-test06-register-property)
(dbus-test06-register-property-several-paths): Rename tests.
2020-09-17 17:13:55 +02:00
Alex Bochannek
12aea1fa80 Allow user-defined scoring in Gnus
* lisp/gnus/gnus-score.el (gnus-score-func): New function (bug#43413).
* doc/misc/gnus.texi (Score File Format): Document it.
2020-09-17 17:02:48 +02:00
martin rudalics
82de8ecc08 Make delete-pair only delete pairs that are part of insert-pair-alist
* lisp/emacs-lisp/lisp.el (delete-pair): Only delete pairs that
are part of `insert-pair-alist' (bug#4136).
2020-09-17 16:43:45 +02:00
Tino Calancha
23a3333b3e Give Lisp control on the lossage size
Add a command 'lossage-size' to set the maximum
number or recorded keystrokes (Bug#38796).

* src/keyboard.c (lossage_limit):
Static variable with the current lossage size limit.
(MIN_NUM_RECENT_KEYS): Renamed from NUM_RECENT_KEYS.
Set it as 100 and use it as the minimum value for lossage_limit.
Keep the same default for the vector size as before (300).
(lossage-size): New command.
(update_recent_keys): Helper function.
(command_loop_1)
(record_char)
(recent-keys)
(syms_of_keyboard): Use lossage_limit as the vector size.

* lisp/help.el (view-lossage): Mention the new command in the docstring.
* etc/NEWS (Changes in Emacs 28.1): Announce this change.
* doc/emacs/help.texi (Misc Help): Update manual.
* test/src/keyboard-tests.el (keyboard-lossage-size): Add test.
2020-09-17 16:32:18 +02:00
Lars Ingebrigtsen
cd151d0608 Fix up previous change for column/line spec mechanism in the mode line
* lisp/bindings.el (column-number-indicator-zero-based): Make
obsolete (bug#28648).
(mode-line-position-column-line-format): New variable.
(mode-line-position--column-line-properties): New const.
(mode-line-position): Use it.
2020-09-17 16:09:37 +02:00
Andreas Schwab
c6291d6efe Remove pointless use of intern
* lisp/mwheel.el (mouse-wheel-left-event)
(mouse-wheel-right-event): Replace use of intern with quoted
symbol.
* lisp/profiler.el (profiler-calltree-build-unified): Likewise.
* lisp/vc/ediff-util.el (ediff-debug-info): Likewise.
2020-09-17 11:13:54 +02:00
Michael Albinus
92f342f38d D-Bus: keep type information in D-Bus events
* doc/misc/dbus.texi (Errors and Events):
* etc/NEWS: D-Bus events keep the type information of their arguments.

* lisp/net/dbus.el (dbus-check-event): Fix docstring.
(dbus-delete-types, dbus-flatten-types): New defuns.
(dbus-handle-event, dbus-register-property, dbus-property-handler):
Handle type information.
(dbus-set-property): Fix thinko.

* src/dbusbind.c (XD_BASIC_DBUS_TYPE): Simplify.
(xd_dbus_type_to_symbol): New function.
(xd_retrieve_arg): Return type information for the arguments.
(xd_read_message_1):  Return type information for the error name.
(dbus-registered-objects-table): Fix docstring.
2020-09-16 14:32:57 +02:00
Lars Ingebrigtsen
96f1fedf4d Fix problem with previous dired.el change
* lisp/dired.el (dired-get-filename): dired-current-directory
can't be called before the dired buffer has been set up.
(add-hook 'dired-mode-hook 'dired-sort-toggle) calls
dired-get-filename in a way that exposes this problem, so avoid
it.
2020-09-16 13:34:58 +02:00
Lars Ingebrigtsen
b43287e413 Tweak previous report-emacs-bug-hook change
* lisp/mail/emacsbug.el (report-emacs-bug-hook): Add to the hook
locally so sending stuff from Message afterwards won't trigger the
same question.
2020-09-16 13:25:10 +02:00
Masahiro Nakamura
f028a893a5 ; Minor fix for nsxwidget patch
* lisp/xwdget.el (xwidget-webkit-download-dir)
(xwidget-webkit-save-as-file): Set version to 28.1 because the patch
was introduced in Emacs 28.0.50.

* src/nsxwidget.m: Fix typo.
2020-09-16 00:51:04 +01:00
Lars Ingebrigtsen
eeae97282e Make sgml-validate not bug out from buffers not visiting a file
* lisp/textmodes/sgml-mode.el (sgml-validate): Don't bug out when
running from a buffer that's not visiting a file (bug#22906).
2020-09-15 18:13:14 +02:00
Eli Zaretskii
c07ec3f43e ; * etc/NEWS: Fix wording of a recently added entry. 2020-09-15 19:08:55 +03:00
Eli Zaretskii
360145a83c Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2020-09-15 19:06:23 +03:00
Eli Zaretskii
1b68d76dc1 ; * src/font.c (syms_of_font) <query-all-font-backends>: Doc fix. 2020-09-15 19:05:53 +03:00
Lars Ingebrigtsen
5e6393fc61 Use a square root character in calc displays
* lisp/calc/calccomp.el (math-compose-sqrt): Use a square root
character, if possible (bug#22919).  Suggested by Zephyr Pellerin
<zephyr.pellerin@gmail.com>.
2020-09-15 18:03:50 +02:00
Eli Zaretskii
f4b4166e00 Avoid aborts in display_mode_element
* src/xdisp.c (display_mode_element): Use parse_str_as_multibyte,
not multibyte_chars_in_text, to determine whether mode-line spec
shall be displayed as a multibyte or unibyte string.  We cannot
use multibyte_chars_in_text here because it aborts when it finds
raw bytes in the spec string.  (Bug#43409)
2020-09-15 18:44:01 +03:00
Robert Pluim
9bb9f43709 ; Fix grammar of previous commit
* doc/lispref/modes.texi (Mode Line Variables): Fix grammar
of mode-line-position-{line,column}-format descriptions.
2020-09-15 17:39:24 +02:00
Robert Pluim
20d13e424f Stop querying for fonts as soon as a match is found
Scanning through fonts can be very slow, especially with the 'x' font
backend, and the result is almost always not used.  Stop looking for a
font as soon as one is found rather than scanning all the backends.

* src/font.c (font_list_entities): Stop scanning through the font
backends as soon as we find a match unless
'query-all-font-backends is set (Bug#43177).
(syms_of_font): New variable 'query-all-font-backends', default
false.
2020-09-15 17:39:24 +02:00
Lars Ingebrigtsen
0a7152e095 Fix up previous replace-in-string commit
* lisp/subr.el (replace-in-string): Fix thinko in implementation.
2020-09-15 17:36:36 +02:00
Lars Ingebrigtsen
3beb8bc994 Allow controlling the look of the line/column indicators
* doc/lispref/modes.texi (Mode Line Variables): Document them.

* lisp/bindings.el (mode-line-position-line-format): New variable
(bug#28648).
(mode-line-position-column-format): Ditto.
(mode-line-position): Use them.

* lisp/simple.el (column-number-mode): Mention them.
(line-number-mode): Ditto.
2020-09-15 17:15:59 +02:00
Lars Ingebrigtsen
caf64ae08b Add new, simple `replace-in-string' function
* lisp/subr.el (replace-in-string): New, side-effect-free function.

* doc/lispref/searching.texi (Search and Replace): Document it.
2020-09-15 17:15:59 +02:00