1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-25 23:10:47 -08:00
Commit graph

158153 commits

Author SHA1 Message Date
Lars Ingebrigtsen
2f7cd9cd73 Make bibtex-mode not signal errors when used programmatically
* lisp/textmodes/bibtex.el (bibtex-mode): Ensure that the font
lock machinery is set up (bug#48447).
2022-07-13 13:25:36 +02:00
Stefan Kangas
d858e0a18a Make the rsh command obsolete
* lisp/net/telnet.el (rsh): Make obsolete.
(telnet-connect-command, telnet-mode): Adjust documentation for
above change.
2022-07-13 12:48:20 +02:00
Juri Linkov
c679756a9f ; Fix typos in the manual 2022-07-13 09:58:14 +03:00
Po Lu
28797db5c9 ; * lisp/term/haiku-win.el: Fix compiler warnings. 2022-07-13 05:46:59 +00:00
Po Lu
defe6cf2d9 Implement TIMESTAMP target for Haiku selections
* lisp/term/haiku-win.el (haiku-selection-targets): Fix return
values.
(gui-backend-get-selection): Handle TIMESTAMP specially.
* src/haiku_select.cc (be_get_clipboard_count): New function.
* src/haikuselect.c (Fhaiku_selection_timestamp): New function.
(syms_of_haikuselect): Add new defsubr.
* src/haikuselect.h: Update prototypes.
2022-07-13 05:45:30 +00:00
Stefan Kangas
6fba6a3c4a Merge from origin/emacs-28
a3dab1e621 Don't mention cl-cXXXr aliases in cl-lib manual
2022-07-13 06:46:11 +02:00
Po Lu
14a56f52c5 New user option 'webjump-use-internal-browser'
* lisp/net/webjump.el (webjump-use-internal-browser): New defcustom.
(webjump): Respect it.  Reported by Youmu <condy0919@gmail.com>.
2022-07-13 12:36:08 +08:00
Po Lu
6be201cf51 Fix closing displays when preserving selections is enabled
* src/frame.c (delete_frame): Bind `x-auto-preserve-selections'
to nil if deleting display.
* src/xselect.c (x_clear_frame_selections): Pass original frame
to that function.
* src/xterm.c (x_preserve_selections): Fix determining the new
owner.
(syms_of_xterm): New defsym `x-auto-preserve-selections'.
* src/xterm.h: Update prototypes.
2022-07-13 11:01:59 +08:00
Lars Ingebrigtsen
113a6a0a88 Tweak image-converter-add-handler interface
* doc/emacs/files.texi (Image Mode): Adjust documentation.
* lisp/image/image-converter.el (image-convert): Let the converter
know whether it's a file or not.
2022-07-13 01:53:20 +02:00
Lars Ingebrigtsen
cbe9a55923 Autoload image-converter-add-handler
* lisp/image/image-converter.el (image-converter-add-handler):
Autoload.
2022-07-13 01:40:58 +02:00
Lars Ingebrigtsen
3b802f029e Add support for viewing "images" such as Krita (.kra) files
* doc/emacs/files.texi (Image Mode): Document it.

* lisp/image/image-converter.el (image-converter-add-handler): New
function (bug#48415).
(image-convert): Use it.
2022-07-13 01:40:58 +02:00
Eli Zaretskii
fe50d914a9 ; * lisp/dirtrack.el: Restore important information in commentary. 2022-07-12 20:00:16 +03:00
Stefan Kangas
5f0ef3c9d8 ; * lisp/dirtrack.el: Improve commentary. 2022-07-12 18:43:33 +02:00
Stefan Kangas
c518b06ae6 Drop obsolete rsh/rlogin from two user options
* lisp/net/ange-ftp.el (ange-ftp-gateway-program):
* lisp/net/imap.el (imap-shell-program): Drop obsolete "rsh"/"rlogin".
2022-07-12 16:56:36 +02:00
Stefan Kangas
0b94747ddc Make pcomplete/{rsh,rlogin} into alias for pcomplete/ssh
* lisp/pcmpl-unix.el (pcomplete/rlogin, pcomplete/rsh): Make into
aliases for 'pcomplete/ssh', as "rsh" and "rlogin" is more often than
not aliases for "ssh" on modern machines.
2022-07-12 16:38:37 +02:00
Eli Zaretskii
4650ea9c25 ; Fix recent additions to the Eshell manual
* doc/misc/eshell.texi (Variables): Fix a @footnote.
(Variables): Fix indexing and @item's in a @table.
2022-07-12 17:10:40 +03:00
Eli Zaretskii
df5613c45e ; * lisp/eshell/esh-var.el (eshell-variable-aliases-list): Doc fix. 2022-07-12 17:03:08 +03:00
Michael Albinus
0143e91666 Remove rsh from Tramp manual, Overview section
* doc/misc/tramp.texi (Overview, Frequently Asked Questions):
Don't mention obsolete rsh and rcp.
2022-07-12 15:42:17 +02:00
Jim Porter
18d83b9452 Ensure Eshell variable aliases properly handle indexing
* lisp/eshell/em-dirs.el (eshell-dirs-initialize): Properly handle
indexing for variable aliases.

* lisp/eshell/esh-var (eshell-variable-aliases-list): Properly handle
indexing for variable aliases, and add SIMPLE-FUNCTION entry for
aliases.
(eshell-get-variable): Update how variable alias functions are called.

* test/lisp/eshell/em-alias-tests.el
(em-alias-test/alias-arg-vars-indices)
(em-alias-test/alias-arg-vars-split-indices)
(em-alias-test/alias-all-args-var-split-indices):
* test/lisp/eshell/em-dirs-tests.el (em-dirs-test/pwd-var-indices)
(em-dirs-test/oldpwd-var-indices)
(em-dirs-test/directory-ring-var-indices):
* test/lisp/eshell/esh-var-tests.el
(esh-var-test/inside-emacs-var-split-indices)
(esh-var-test/last-result-var-split-indices): New tests.
(esh-var-test/last-arg-var-split-indices): Expand test to check
conversion behavior inside double quotes (bug#56509).
2022-07-12 15:11:00 +02:00
Jim Porter
ba1923f1f1 Allow Eshell variable aliases to point to other aliases
In particular, this resolves an issue where '$+' referenced the real
environment variable '$PWD' instead of the Eshell variable alias of
the same name.  This meant that changing directories in Eshell
wouldn't update the value of '$+'.

* lisp/eshell/esh-var.el (eshell-get-variable): Allow Eshell variable
aliaes to point to other aliases.

* test/lisp/eshell/em-dirs-tests.el (em-dirs-test/pwd-var)
(em-dirs-test/short-pwd-var): Adapt tests to check this case
(bug#56509).
2022-07-12 15:10:56 +02:00
Jim Porter
e51ae63ec2 Improve tests/organization for built-in variables
* lisp/eshell/em-dirs.el (eshell-inside-emacs)
(eshell-dirs-initialize): Move 'INSIDE_EMACS' from here...

* lisp/eshell/esh-var.el (eshell-inside-emacs)
(eshell-variable-aliases-alist): ... to here, and improve doc string.

* test/lisp/eshell/eshell-tests.el (eshell-test/inside-emacs-var):
Move from here...

* test/lisp/eshell/esh-var-tests.el (esh-var-test/inside-emacs-var):
... to here.
(esh-var-test/last-arg-var-indices)
(esh-var-test/last-arg-var-split-indices): New tests.

* test/lisp/eshell/em-alias-tests.el:
* test/lisp/eshell/em-dirs-tests.el:
* test/lisp/eshell-em-script-tests.el: New files.

* doc/misc/eshell.texi (Built-ins): Fix 'cd' documentation; it works
with the directory ring, not the directory stack.  Move built-in
variables documentation from here...
(Variables): ... to here, and add documentation for missing built-in
variables.
2022-07-12 15:10:54 +02:00
Lars Ingebrigtsen
f62e1f39be Fix buffer-stale-function fix
* src/buffer.c (Fmake_indirect_buffer): Kill the local
buffer-stale-function variable instead of setting it
buffer-locally to the default value.  This should have the same
effect, but is less confusing.
2022-07-12 14:39:52 +02:00
Po Lu
227f3842c2 Reduce syncing when fetching selection names during frame deletion
* src/xterm.c (x_preserve_selections): Use XCB to asynchronously
fetch the selection owner.
2022-07-12 20:02:59 +08:00
Stefan Kangas
a3dab1e621 Don't mention cl-cXXXr aliases in cl-lib manual
* doc/misc/cl.texi (Lists, List Functions, Efficiency Concerns): Don't
mention 'cl-cXXXr' compatibility aliases for built-in 'cXXXr'
functions.  They shouldn't be used in new code.
2022-07-12 13:42:00 +02:00
Stefan Kangas
10646eecf1 Make some rst.el compat aliases obsolete
* lisp/textmodes/rst.el (rst-adjust-section-title)
(rst-display-adornments-hierarchy, rst-straighten-adornments)
(rst-toc-insert-update, rst-goto-section)
(rst-toc-mode-goto-section, rst-toc-mode-mouse-goto)
(rst-toc-mode-mouse-goto-kill, rst-toc-quit-window): Make
compatibility aliases obsolete.
2022-07-12 13:29:32 +02:00
Stefan Kangas
f83d7cc312 Make remote-shell-program default to ssh only
* lisp/files.el (remote-shell-program): Default to "ssh" only.  The
other commands in this list have severe security issues, and it is
easy enough for users to customize them manually if they want to.
See also the discussion in: https://debbugs.gnu.org/56461
2022-07-12 12:42:39 +02:00
Stefan Kangas
2dc3e00341 Recognize gemini in thing-at-point
* lisp/thingatpt.el (thing-at-point-uri-schemes): Recognize gemini.
2022-07-12 12:22:57 +02:00
Stefan Kangas
cae4dcc073 ; * lisp/completion.el: Remove code commented out since 1990. 2022-07-12 12:22:57 +02:00
Mattias Engdegård
f209650e41 Better gomoku X colour with bright background
* lisp/play/gomoku.el (gomoku-X): Use blue rather than green for
crosses on bright background for better legibility.
(Red for naughts could be adjusted but seems just about bearable.)
2022-07-12 11:44:10 +02:00
Alan Mackenzie
fe5e789ff8 Expunge unused recompute-lucid-menubar, lucid-menu-bar-dirty-flag
This fixes bug #56502.  That function and these variables were manipulated by
the former file emacs-lisp/lmenu.el that was finally expunged from directory
obsolete/ by Stefan Kangas on 2020-05-15.  There remain references to them in
the *.c, and *.m files.

* src/keyboard.c (syms_of_keyboard): Remove declarations of the symbol and
variable.

* src/haikumenu.c (set_frame_menu_bar)
* src/keyboard.c (command_loop_1)
* src/nsmenu.m (ns_update_menubar)
* src/pgtkmenu.c (set_frame_menubar)
* src/xdisp.c (update_menu_bar)
* src/xmenu.c (set_frame_menubar): Remove calls to Qrecompute_lucid_menubar
contitional on Vlucid_menu_bar_dirty_flag.
2022-07-12 09:31:08 +00:00
Po Lu
93b31707e9 Fix preserving selections if `x-lost-selection-functions' signals
* src/xterm.c (x_preserve_selections): Get selection owner and
run lost selection hook separately.
2022-07-12 15:14:25 +08:00
Stefan Kangas
a837c59d9e Merge from origin/emacs-28
9183d1672c ; * etc/PROBLEMS: Give a URL for bug#50666.
1f508a8b6f etc/PROBLEMS: Describe issues with native compilation on C...
84a5d47125 ; Fix last change
0461021893 ; * lisp/emacs-lisp/comp.el (native-comp-speed): Explain t...
876317271b * lisp/find-dired.el (find-dired): Doc fix; add crossrefer...
2022-07-12 06:30:35 +02:00
Po Lu
86d128c6c3 Try to save selections from being disowned during frame deletion
* lisp/cus-start.el (standard): Add
`x-auto-preserve-selections'.
* src/xselect.c (x_clear_frame_selections): Collect deleted
selections into a variable and preserve them.
* src/xterm.c (x_preserve_selections): New function.
(syms_of_xterm): New variable `x-auto-preserve-selections'.
* src/xterm.h: Update prototypes.
2022-07-12 10:47:51 +08:00
Stefan Kangas
7ac313ea87 ; * lisp/textmodes/rst.el: Delete stale comment. 2022-07-12 01:43:50 +02:00
Stefan Kangas
93727d243a * lisp/mail/mail-utils.el (mail-string-delete): Make obsolete. 2022-07-11 22:32:36 +02:00
Eli Zaretskii
9183d1672c ; * etc/PROBLEMS: Give a URL for bug#50666. 2022-07-11 21:24:33 +03:00
Ken Brown
1f508a8b6f etc/PROBLEMS: Describe issues with native compilation on Cygwin 2022-07-11 13:06:40 -04:00
Stefan Kangas
9fe663530c Prefer defvar-keymap in thumbs.el
* lisp/thumbs.el (thumbs-mode-map, thumbs-view-image-mode-map):
Prefer defvar-keymap.
2022-07-11 17:59:25 +02:00
Mattias Engdegård
871db806e6 Remove obsolete uses of obsolete functions
* src/minibuf.c (minibuf_conform_representation): Remove.
(Ftry_completion): Don't call it.
(Ftest_completion): Don't use the obsolete Fstring_make_unibyte or
Fstring_make_multibyte; they don't serve any useful purpose here.
We don't try to equate unibyte and multibyte raw bytes in symbol
lookups elsewhere and there is no reason to do it here.
2022-07-11 17:35:01 +02:00
Stefan Kangas
ac0027f6a5 Remove dead branch from substitute-command-keys
* lisp/help.el (substitute-command-keys): Remove dead branch;
where-is-internal will follow any remaps for us.  Note also that the
test case for remapping still pass.
2022-07-11 17:22:19 +02:00
Lars Ingebrigtsen
f9e4b2d3ce Make g' in vc-annotate' not bug out
* lisp/vc/vc-annotate.el (vc-annotate): Don't bug out on `g'
(bug#48359).
2022-07-11 16:29:58 +02:00
Lars Ingebrigtsen
b2e6e95581 Only reset buffer-local buffer-stale-function in make-indirect-buffer
* src/buffer.c (Fmake_indirect_buffer): Don't set the global
buffer-stale-function (bug#48348).
2022-07-11 16:05:08 +02:00
Eli Zaretskii
84a5d47125 ; Fix last change
* doc/lispref/compile.texi (Native-Compilation Variables): Explain
better what the value -1 of 'native-comp-speed' means.
2022-07-11 16:52:03 +03:00
Eli Zaretskii
0461021893 ; * lisp/emacs-lisp/comp.el (native-comp-speed): Explain the -1 value. 2022-07-11 16:48:24 +03:00
Lars Ingebrigtsen
1e6a36361d Document the recent add-global-abbrev change
* doc/emacs/abbrevs.texi (Defining Abbrevs): Document that you can
use the active region.
2022-07-11 15:38:59 +02:00
Lars Ingebrigtsen
ce31339c83 Make add-mode-abbrev use the active region
* lisp/abbrev.el (add-mode-abbrev, add-global-abbrev): Document it.
(add-abbrev): If there's an active region, use that as the
expansion (bug#56496).
2022-07-11 15:34:15 +02:00
Stefan Kangas
b3fd71ed10 ; * etc/NEWS: Announce obsoletion of rlogin.el. 2022-07-11 15:05:56 +02:00
Stefan Kangas
cd5a8f9cc1 * lisp/obsolete/rlogin.el: Add "Obsolete-since" line. 2022-07-11 15:02:23 +02:00
Stefan Kangas
512e1db7ba Make net/rlogin.el obsolete
* lisp/net/rlogin.el: Move from here...
* lisp/obsolete/rlogin.el: ...to here.  (Bug#56461)
2022-07-11 15:02:23 +02:00
Stefan Kangas
899616108b * src/.lldbinit: Fix copyright year. 2022-07-11 14:57:20 +02:00