1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-10 21:50:37 -08:00
Commit graph

160004 commits

Author SHA1 Message Date
Stefan Kangas
fa37deba2e ; Explicitly declare linum-mode obsolete
* lisp/obsolete/linum.el (linum-mode, global-linum-mode):
Explicitly declare obsolete to warn the user, and recommend using
'display-line-numbers-mode' instead.
Suggested by Philip Kaludercic <philipk@posteo.net>.
2022-09-21 14:22:26 +02:00
Stefan Kangas
b0a85111e5 Add new function xdg-session-type to xdg.el
* lisp/xdg.el (xdg-session-type): New function.
2022-09-21 14:00:23 +02:00
Thuna
7a36828dc3 Correct the usage of `image-file-name-regexps'
* lisp/image-file.el (image-file-name-regexp): Treat
`image-file-name-regexps' as a list of regexps (as documented) in
addition to a regexp string (bug#57971).

Copyright-paperwork-exempt: yes
2022-09-21 13:53:50 +02:00
Po Lu
3ed9a1b0be Fix handling of nil device names
* lisp/frame.el (device-class):
* lisp/term/pgtk-win.el (pgtk-device-class):
* lisp/term/x-win.el (x-device-class): Handle `nil'
correctly.  (bug#57969)
2022-09-21 19:51:14 +08:00
Po Lu
517268d943 Small adjustments to precision pixel scrolling
* lisp/pixel-scroll.el
(pixel-scroll-precision-interpolation-factor): Adjust for
increased accuracy.
(pixel-scroll-precision-interpolate): Slightly decrease accuracy
in exchange for consing less floats.
(pixel-scroll-interpolate-down, pixel-scroll-interpolate-up):
Fix usage of function.
2022-09-21 19:32:52 +08:00
Po Lu
61e4964a8a Improve scroll interpolation in pixel-s-precision-mode
* lisp/pixel-scroll.el (pixel-scroll-precision-interpolate): New
arg FACTOR.  Use it to determine the interpolation factor if
non-nil.  Also, clear scroll remainder if direction changes, and
determine deltas based on the absolute amount of time passed.
(bug#57967)
(pixel-scroll-interpolate-down, pixel-scroll-interpolate-up):
Pass factor of 0 to scroll exactly 1 page.
2022-09-21 19:32:51 +08:00
Lars Ingebrigtsen
760df6a5f1 Make emacs-build-description into a command
* lisp/mail/emacsbug.el (report-emacs-bug, submit-emacs-patch):
Adjust callers.
(emacs-build-description): Rename from
`emacs-bug--system-description' and make into a command.
2022-09-21 13:13:47 +02:00
Gregory Heytings
a6bad4d60f ; * Makefile.in: Minor improvements of failure messages. 2022-09-21 10:37:09 +02:00
Stefan Kangas
9b14e312f4 Merge from origin/emacs-28
478b786d5a ; * doc/lispref/windows.texi (Window Hooks): Fix a typo (b...
5085351645 * lisp/text-modes/tex-mode.el (tex-mode): Fix AUCTeX regre...
ee6f8598ca Add vc-annotate-switches to manual
616dcf27e5 ; Fix typos in Lisp symbols
5405852541 Remove mention of non-existent `annotate-switches'
191505b8a3 Mention that src/macuvs.h sometimes needs committing
10373c4b68 ; More comment fixes in font.h (bug#57935)
c2595b8dcc ; * src/font.h (struct font_driver): Comment fix.
97b928ce09 MacOS ld warning from native compilation (bug#57849)
2022-09-21 10:25:06 +02:00
Stefan Kangas
43c0ebd8bc * admin/gitmerge.el (gitmerge): Use substitute-command-keys. 2022-09-21 10:15:45 +02:00
Stefan Kangas
00f6bb1286 Bind 'n'/'p' in gitmerge-mode to line scroll
* admin/gitmerge.el (gitmerge-mode-map): Bind 'n' and 'p' to
'next-line' and 'previous-line'.
2022-09-21 10:15:45 +02:00
Robert Pluim
cee9a2cbe0 Fix substitute-command-keys for global binding lookup
The previous change forgot to account for the (rare) case of doing a
lookup for a global binding when a specific keymap is in force.

* lisp/help.el (substitute-command-keys): Redo lookup in global map if
lookup in specific map fails.
*
test/lisp/help-tests.el (help-tests-substitute-command-keys/keymap-change):
Add testcase for specific map overriding advertised-binding.
2022-09-21 09:15:47 +02:00
Juri Linkov
5fbf93d918 * lisp/outline.el: More improvements for buttons/margins (bug#57813)
(outline-minor-mode-use-margins): Don't use for modes derived from help-mode
that are handled by 'outline-minor-mode-use-buttons'.
(outline-open, outline-close, outline-close-rtl): Use image height
proportional to font height of 0.8em.
(outline-minor-mode): Remove overlays 'outline-button' and 'outline-margin',
and move such overlay removal after the call of 'outline-show-all'
that might trigger overlay addition.
2022-09-21 09:42:55 +03:00
Stefan Kangas
cc9acda7d3 image-dired: Support the customize-mode command
* lisp/image/image-dired.el (image-dired-thumbnail-mode)
(image-dired-display-image-mode): Add custom group 'image-dired'.
2022-09-21 08:29:05 +02:00
Po Lu
df79a23da7 Fix minor thinko in focus tracking logic
* src/xterm.c (xi_handle_focus_change): Prefer explicit focus to
implicit focus.
2022-09-21 14:23:13 +08:00
Mauro Aranda
1231a601eb Recognize the backslash operator in perl-mode
* lisp/progmodes/perl-mode.el (perl-syntax-propertize-function):
Add new rule to detect a backslash operator.  (Bug#11996)

* test/lisp/progmodes/cperl-mode-tests.el (cperl-test-bug-11996): New
test.

* test/lisp/progmodes/cperl-mode-resources/cperl-bug-11996.pl: New
file.
2022-09-20 21:11:40 +02:00
Stefan Kangas
d506d91b1f Make linum.el obsolete
* lisp/obsolete/linum.el: Add Obsolete-since.
* etc/NEWS: Announce obsoletion of linum.el.  (Bug#57412)

* doc/misc/efaq.texi (Displaying the current line or column):
* etc/TODO:
* lisp/faces.el: Don't mention linum.el.
2022-09-20 20:53:40 +02:00
Stefan Kangas
903de63c6c Move linum.el to lisp/obsolete
* lisp/linum.el: Move from here...
* lisp/obsolete/linum.el: ...to here.  (Bug#57412)
2022-09-20 20:42:51 +02:00
Stefan Kangas
91c03e67f2 ; * doc/misc/gnus-faq.texi: Repunctuate sentences. 2022-09-20 20:37:44 +02:00
Stefan Kangas
5dd154deed * doc/misc/ede.texi (Extending EDE): Fix reference. 2022-09-20 20:35:46 +02:00
Eli Zaretskii
478b786d5a ; * doc/lispref/windows.texi (Window Hooks): Fix a typo (bug#51930). 2022-09-20 21:22:13 +03:00
Philip Kaludercic
0d16e567fe ; * doc/misc/rcirc.texi: Prefer 'setopt' over 'setq' 2022-09-20 19:25:39 +02:00
Philip Kaludercic
9b5fe5d6f1 ; * doc/misc/rcirc.texi: Repunctuate some sentences 2022-09-20 19:25:39 +02:00
Philip Kaludercic
6795b93d06 ; Don't set nil to be a face fore-/background
* lisp/net/rcirc.el (rcirc-color-attributes): Check if the parsed
background or foreground is nil before using it.
2022-09-20 19:25:39 +02:00
Philip Kaludercic
1d9a8884db Have rcirc handle bridge bots
* doc/misc/rcirc.texi (Dealing with Bridge Bots): Document new feature.
* etc/NEWS: Mention the new feature.
* lisp/net/rcirc.el (rcirc-markup-text-functions): Add new markup function
(rcirc-pseudo-nicks): Add new local variable.
(rcirc-channel-nicks): Use 'rcirc-pseudo-nicks' for nick completion.
(rcirc-bridge-bot-alist): Add new user option.
(rcirc-bridged-nick): Add new face.
(rcirc-markup-bridge-bots): Add new function.
2022-09-20 19:25:39 +02:00
Michael Albinus
96d2fb8d79 Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs 2022-09-20 18:36:20 +02:00
Michael Albinus
814fd3057f ; Minor Tramp cleanups
* lisp/net/tramp.el (tramp-build-remote-file-name-spec-regexp):
Handle the `simplified' syntax better.
(tramp-handle-file-name-case-insensitive-p): Do not unquote candidate.
2022-09-20 18:35:57 +02:00
Juri Linkov
cefda4a6c5 * lisp/outline.el: Bind margin mouse event to cycle outlines (bug#57813)
(outline-minor-mode): In mode keymap bind
'right/left-margin mouse-1' to outline-cycle, and
'right/left-margin S-mouse-1' to outline-cycle-buffer.
(outline-hide-subtree, outline-show-subtree): Add save-excursion
to keep point unmoved after mouse click.
(outline-cycle): Add optional arg 'event' like in
outline-hide-subtree and outline-show-subtree, and
add save-excursion to keep point unmoved after mouse click.
(outline--make-button-overlay, outline--make-margin-overlay):
Put overlay property 'evaporate' to t.
(outline--insert-open-button, outline--insert-close-button):
Remove temporary attempts to bind margin-local mouse events.
2022-09-20 19:11:58 +03:00
Robert Pluim
120ade62cd Allow keymap to override advertised-binding in docstrings
Previously

(substitute-command-keys "\\<undo-repeat-map>\\[undo]")

would use the global advertised-binding for `undo', even though
there's a binding in `undo-repeat-map', which is highly
counter-intuitive.  Now the binding is looked up in the specified
keymap first.

* lisp/help.el (substitute-command-keys): Restrict the initial key
lookup to the specified keymap (if there is one).  (Bug#51384)
2022-09-20 17:44:05 +02:00
Robert Pluim
01ceb23372 Specify keymap in gnus-custom-mode docstring
* lisp/gnus/gnus-cus.el (gnus-custom-mode): Put in the keymap to use,
otherwise the bindings are looked up in the global map (where they
don't exist).
2022-09-20 17:44:05 +02:00
Drew Adams
f372afef20 Tweak how use-region-p works with `use-empty-active-region'
* lisp/simple.el (use-region-p): Don't report non-nil if the user
has just clicked mouse-1 without extending the region (bug#51874).
2022-09-20 17:12:29 +02:00
Lars Ingebrigtsen
127ab231be Attempt to clarify Input Focus documentation
* doc/lispref/frames.texi (Input Focus): Try to clarify the
documentation (bug#51862).
2022-09-20 17:12:28 +02:00
Gregory Heytings
523821ed04 Improve display of advices on build failures.
* Makefile.in: Use three leading '*' characters, and redirect to stderr.
2022-09-20 16:14:03 +02:00
Stefan Monnier
5085351645 * lisp/text-modes/tex-mode.el (tex-mode): Fix AUCTeX regression
As discussed in
https://lists.gnu.org/r/auctex/2022-08/msg00004.html
AUCTeX installs its own advice to redefine `tex-mode`, and that
advice used to take precedence before commit 6075a7c5ae.
2022-09-20 09:58:47 -04:00
Michael Albinus
f419c507a7 Wrap max-specpdl-size with with-no-warnings in Tramp
* lisp/net/tramp-archive.el (max-specpdl-size):
* lisp/net/tramp-gvfs.el (max-specpdl-size): Wrap with
`with-no-warnings'.
2022-09-20 14:07:45 +02:00
Robert Pluim
ee6f8598ca Add vc-annotate-switches to manual
* doc/emacs/maintaining.texi (Old Revisions): Add description of
`vc-annotate-switches' and `vc-BACKEND-annotate-switches'.
2022-09-20 14:05:46 +02:00
Lars Ingebrigtsen
32d3cf6298 Mention compilation in the Package Installation node
* doc/emacs/package.texi (Package Installation): Mention that
packages are compiled (bug#51660).
2022-09-20 14:04:09 +02:00
Lars Ingebrigtsen
d989fc8997 Allow hl-line-mode so work when global-hl-line-mode is active
* lisp/hl-line.el (hl-line-mode): Allow switching off the global
mode in the current buffer (bug#51580).
2022-09-20 13:56:19 +02:00
Eli Zaretskii
0be83e07dd ; * etc/NEWS: Fix capitalization. 2022-09-20 14:53:22 +03:00
Lars Ingebrigtsen
a498e5f830 Get fewer false positives for :keyword and &options
* lisp/emacs-lisp/lisp-mode.el (lisp-mode--search-key): New
function to check more carefully for start of :keywords and
&options (bug#51574).
(lisp-fdefs): Use it.
2022-09-20 13:34:42 +02:00
Stefan Kangas
e5de29aa47 Obsolete unused variable in debug.el
* lisp/emacs-lisp/debug.el (debugger-previous-backtrace): Make
unused variable obsolete.
2022-09-20 12:40:14 +02:00
Lars Ingebrigtsen
34186fb365 Further ffap-read-file-or-url tweaks
* lisp/ffap.el (ffap-read-file-or-url): Make this work for URLs
again if you're using `ido-everywhere' (bug#57943).
2022-09-20 12:39:29 +02:00
Stefan Kangas
616dcf27e5 ; Fix typos in Lisp symbols 2022-09-20 12:21:40 +02:00
Robert Pluim
5405852541 Remove mention of non-existent `annotate-switches'
* lisp/vc/vc.el (vc-annotate-switches): Remove mention of
`annotate-switches'.  As far as I can tell this has never existed in
Emacs.
2022-09-20 11:46:04 +02:00
Robert Pluim
191505b8a3 Mention that src/macuvs.h sometimes needs committing
* admin/notes/unicode: src/macuvs.h is generated, but needs to be
committed sometimes.
2022-09-20 11:42:21 +02:00
Gregory Heytings
8c316ba8da ; * Makefile.in: Fix bashism. 2022-09-20 11:20:12 +02:00
Stefan Kangas
98a89dd0fa Use "set -o nounset" in bash scripts
* admin/automerge:
* admin/make-manuals:
* admin/update-copyright:
* admin/update_autogen:
* admin/upload-manuals: Use "set -o nounset".
2022-09-20 10:34:13 +02:00
Stefan Kangas
9035c20888 Revert "Allow nil value for filter-buffer-substring-function"
This reverts commit a7c65fc666.
2022-09-20 09:28:46 +02:00
Po Lu
1b77f1981d Remove intern calls with a static string from haiku*.c
* src/haikufns.c (Fx_show_tip, syms_of_haikufns):
* src/haikufont.c (haikufont_maybe_handle_special_family)
(syms_of_haikufont):
* src/haikuterm.c (haiku_term_init, syms_of_haikuterm): Replace
intern with real predefined symbols.
2022-09-20 03:00:10 +00:00
F. Jason Park
132d5cb0a3 Bury new ERC buffers by default
* lisp/erc/erc.el (erc-join-buffer): Change default value to `bury'.
(erc-setup-buffer): Make `window-noselect' behave more like its
description and abstain from ever replacing the current buffer.
* test/lisp/erc/erc-scenarios-base-reconnect.el
(erc-scenarios-common-base-reconnect-options): Update helper to handle
new default value for option `erc-join-buffer'.
(erc-scenarios-base-reconnect-options--buffer): Update and rename
function `erc-scenarios-base-reconnect-options--default'.
(erc-scenarios-base-reconnect-options--default): Update and rename
function `erc-scenarios-base-reconnect-options--bury'.
* etc/ERC-NEWS: Update existing display-buffers section for 5.5.
(Bug#51753)
2022-09-19 17:54:46 -07:00