Commit Graph

158164 Commits

Author SHA1 Message Date
Visuwesh
f6679ccceb Add new customizable phonetic Tamil input method
* lisp/language/indian.el ("Tamil"): Change the default input method
of the Tamil language environment to the new input method.

* lisp/leim/quail/indian.el
(quail-tamil-itrans-compute-syllable-table): New function extracted
from...
(quail-tamil-itrans-syllable-table): ... here.  Use the above
function.
(quail-tamil-itrans--consonant-order): Auxiliary variable for the
above function.
(quail-tamil-itrans-compute-signs-table): Add new VARIOUS argument.
(quail-tamil-itrans-various-signs-and-digits-table)
(quail-tamil-itrans-various-signs-table): Adjust call to the above
function.

("tamil-phonetic"): Add new input method.
(tamil-input): New group for the input method.
(tamil-translation-rules): New defcustom for the input method to
change the translation rules.

(tamil--syllable-table, tamil--signs-table, tamil--hashtables)
(tamil--vowel-signs): Internal variables used by the input method.
(tamil--setter, tamil--make-tables)
(tamil--update-quail-rules): Internal functions for the input method.
(bug#56323)

* etc/NEWS: Announce the new input method.
2022-07-14 09:30:56 +03:00
Po Lu
d37ba6f259 Fix killing Emacs upon display disconnect
* src/xterm.c (x_connection_closed): On Xt builds terminals can
be left alive without any frames on them, so take that into
account.  (bug#56528)
2022-07-14 11:47:00 +08:00
Po Lu
9a888323c6 ; * src/xterm.c (x_error_handler): Fix magic numbers. 2022-07-14 09:11:37 +08:00
Stefan Kangas
e4030f25f9 ; Auto-commit of loaddefs files. 2022-07-13 21:03:48 +02:00
Stefan Kangas
6d60028064 Prefer defvar-keymap in tab-bar.el
* lisp/tab-bar.el: Prefer keymap-set.
(tab-bar-map, tab-switcher-mode-map)
(tab-bar-switch-repeat-map, tab-bar-move-repeat-map): Prefer
defvar-keymap.
2022-07-13 20:01:55 +02:00
Stefan Kangas
8066669826 * lisp/vc/vc-bzr.el (vc-bzr-program): Support breezy. 2022-07-13 14:44:32 +02:00
Lars Ingebrigtsen
3d7a832092 Make smtpmail try all auth methods
* lisp/mail/smtpmail.el (smtpmail-try-auth-methods): Try all valid
methods, even if one fails (bug#48562).
2022-07-13 14:35:00 +02:00
Po Lu
9f6d8486b4 Fix recursive calls of x_connection_closed leading to dead terminal
* src/xterm.c (x_connection_closed): Return if called again for
the current display.
(x_io_error_quitter): Fix attributes.  (bug#56528)
2022-07-13 20:16:45 +08:00
Michael Albinus
ad4ccd4d90 Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs 2022-07-13 13:39:57 +02:00
Michael Albinus
b3bc7c3e82 Adapt Tramp version integrated in Emacs 28.2
* lisp/net/trampver.el (customize-package-emacs-version-alist):
Adapt Tramp version integrated in Emacs 28.2.
2022-07-13 13:38:11 +02:00
Lars Ingebrigtsen
73524ee0da Revert "Make mouse-2 respect delete-selection mode"
This reverts commit 215a700751.

This leads to unintended consequences for cua-mode, among others (bug#56530).
2022-07-13 13:37:05 +02:00
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