Po Lu
edffda8609
Adjust client pointer upon help event
...
* src/xterm.c (handle_one_xevent): Keep track of the device that
set do_help and make it the client pointer so that tooltips show
up under the right pointer.
2022-08-11 09:56:15 +08:00
Eli Zaretskii
e7b348b08a
Fix 'describe-char' in "C" locale
...
* lisp/descr-text.el (describe-char): Avoid assertions if
'buffer-file-coding-system' is nil. (Bug#57066)
2022-08-10 15:31:59 +03:00
Visuwesh
bca31619e8
Improve the bengali-probhat input method
...
* lisp/leim/quail/indian.el ("bengali-probhat"): Set KBD-TRANSLATE
and SHOW-LAYOUT flags non-nil. This makes the IM usable with Dvorak
keyboard and also shows more useful help. Reported by Akib Azmain
Turja <akib@disroot.org>.
2022-08-10 15:24:23 +03:00
Po Lu
8c0c9398f3
Fix some undesirable frame focus changes
...
* src/xterm.c (handle_one_xevent): Only detach upon actual
device tree change.
2022-08-10 19:31:21 +08:00
Mattias Engdegård
d8d582dc3c
; * lisp/emacs-lisp/subr-x.el (string-pad): Optimise.
2022-08-10 13:06:12 +02:00
Stefan Kangas
f6356dc88d
Make gdb-pad-string obsolete in favor of string-pad
...
* lisp/progmodes/gdb-mi.el (subr-x): Require.
(gdb-pad-string): Make obsolete in favor of 'string-pad'. Update
callers.
2022-08-10 12:54:31 +02:00
Mattias Engdegård
9d35afed49
Extend LAP optimisations to more operations
...
Extend the set of eligible opcodes for certain peephole
transformations, which then provide further optimisation
opportunities.
* lisp/emacs-lisp/byte-opt.el (byte-optimize-lapcode):
Optimise empty save-current-buffer in the same way as we already
do for save-excursion and save-restriction. This is safe
because (save-current-buffer) is a no-op.
(byte-compile-side-effect-and-error-free-ops): Add list3, list4 and
listN. These were all apparent oversights as list1 and list2 were
already included.
(byte-after-unbind-ops): Add stack-ref, stack-set, discard, list3,
list4 and listN. Stack manipulation is safe because unbind cannot
read or modify stack entries.
2022-08-10 12:51:40 +02:00
Lars Ingebrigtsen
1d9ee27270
Fix compilation warning in wisent/comp.el
...
* lisp/cedet/semantic/wisent/comp.el (require): string-pad is used
run-time.
2022-08-10 12:31:20 +02:00
Stefan Kangas
8b31c18fc8
Prefer defvar-keymap in vc/*.el
...
* lisp/vc/add-log.el (change-log-mode-map):
* lisp/vc/ediff-mult.el (ediff-dir-diffs-buffer-map):
* lisp/vc/vc-annotate.el (vc-annotate-mode-map):
* lisp/vc/vc-bzr.el (vc-bzr-shelve-map):
* lisp/vc/vc-dir.el (vc-dir-status-mouse-map)
(vc-dir-filename-mouse-map):
* lisp/vc/vc-git.el (vc-git-stash-shared-map, vc-git-stash-map)
(vc-git-stash-button-map, vc-git-log-edit-mode-map):
* lisp/vc/vc-hg.el (vc-hg-log-edit-mode-map)
(vc-hg-extra-menu-map):
* lisp/vc/vc-hooks.el (vc-prefix-map): Prefer defvar-keymap.
2022-08-10 11:53:27 +02:00
Stefan Kangas
f002fa8bfc
Delete dead code in checkdoc.el
...
* lisp/emacs-lisp/checkdoc.el: Delete code commented out since
1997.
2022-08-10 11:28:17 +02:00
Stefan Kangas
29f2b1728b
Fix namespacing issues in array.el
...
* lisp/array.el (array--limit-index, array-current-line)
(array-move-to-column-untabify, array--untabify-backward): Rename
from 'limit-index', 'current-line', 'move-to-column-untabify', and
'untabify-backward'. Update callers.
2022-08-10 11:21:24 +02:00
Stefan Kangas
358ad0d30a
Merge from origin/emacs-28
...
14833cd9df Improve wording when documenting other TRAMP syntaxes
628df15da5 ; * doc/misc/viper.texi (Rudimentary Changes): Avoid alias.
85de996bbb * lisp/vc/diff-mode.el: Don't mention XEmacs.
2022-08-10 06:31:02 +02:00
Po Lu
5e07d1d0fc
Improve MPX interaction with xwidgets and drag-and-drop
...
* src/xterm.c (handle_one_xevent): Handle focus interaction in
more places.
2022-08-10 10:33:43 +08:00
Dmitry Gutov
fcd2d14db1
js--font-lock-keywords-2: Remove the 'for each' matcher
...
* lisp/progmodes/js.el (js--font-lock-keywords-2):
Remove the 'for each' matcher. First, because it was slow
(bug#56682), and second: the 'for each' syntax was only present in
Mozilla's dialect of JavaScript (added in version 1.5), and has
been deprecated for a decade now.
2022-08-10 03:36:35 +03:00
Stefan Kangas
ec2bd7dd5c
Make wisent-pad-string obsolete in favor of string-pad
...
* lisp/cedet/semantic/wisent/comp.el (wisent-pad-string): Make
obsolete in favor of 'string-pad'. Update callers.
(subr-x): Require when compiling.
2022-08-10 00:45:50 +02:00
Stefan Kangas
561d09d7ad
Make unused function filesets-ormap obsolete
...
* lisp/filesets.el (filesets-ormap): Simplify and make obsolete in
favor of 'seq-drop-while'.
2022-08-10 00:45:50 +02:00
Stefan Kangas
cbc925bbed
Make filesets-filter-list obsolete in favor of seq-filter
...
* lisp/filesets.el (filesets-filter-list): Make obsolete in favor
of 'seq-filter'. Update callers.
2022-08-10 00:45:50 +02:00
Lars Ingebrigtsen
230a198a0f
Avoid having language environments interpreted as sections
2022-08-09 23:18:03 +02:00
Stefan Kangas
0e824bd683
Make rng-collapse-space obsolete
...
* lisp/nxml/rng-util.el (rng-collapse-space): Make obsolete in favor
of 'string-clean-whitespace'. Update callers.
Suggested by Lars Ingebrigtsen <larsi@gnus.org>.
2022-08-09 22:44:21 +02:00
Stefan Kangas
14833cd9df
Improve wording when documenting other TRAMP syntaxes
...
* doc/misc/tramp.texi (Change file name syntax): Improve wording.
(Bug#57061)
2022-08-09 22:35:35 +02:00
Stefan Kangas
32d8fc999c
Avoid using aliases for color functions
...
* lisp/emulation/viper-init.el (viper-has-face-support-p):
* lisp/emulation/viper-util.el (viper-save-cursor-color)
(viper-change-cursor-color):
* lisp/faces.el (read-color):
* lisp/net/dictionary.el (dictionary-color-support):
* lisp/obsolete/gs.el (gs-set-ghostview-colors-window-prop):
* lisp/progmodes/cperl-mode.el (cperl-choose-color):
* lisp/woman.el (woman-fontify): Avoid using aliases for
color-defined-p, display-color-p, and color-values.
2022-08-09 22:28:08 +02:00
Stefan Kangas
06cb954ae3
Remove some compat code from ps-print.el
...
* lisp/ps-print.el (ps-print-color-p): Assume color-values is
fboundp; it always is.
2022-08-09 22:26:36 +02:00
Stefan Kangas
628df15da5
; * doc/misc/viper.texi (Rudimentary Changes): Avoid alias.
2022-08-09 22:21:01 +02:00
Stefan Kangas
8caa91b2ce
* lisp/vc/pcvs-util.el (cvs-partition): Simplify.
2022-08-09 22:15:00 +02:00
Stefan Kangas
caabc5a4ab
* lisp/nxml/rng-util.el (rng-collapse-space): Simplify.
2022-08-09 21:58:00 +02:00
Stefan Kangas
fd4aad5697
; * lisp/mouse.el: Delete stale comment.
2022-08-09 21:58:00 +02:00
Stefan Kangas
c47507ec56
Make rng-blank-p obsolete in favor of string-blank-p
...
* lisp/nxml/rng-util.el (rng-blank-p): Make obsolete in favor of
string-blank-p. Update callers.
2022-08-09 21:58:00 +02:00
Stefan Kangas
581fa3d958
Autoload string-blank-p
...
* lisp/eshell/em-hist.el (subr-x):
* lisp/net/eudc.el (subr-x): Don't require.
* lisp/emacs-lisp/subr-x.el (string-blank-p): Autoload.
2022-08-09 21:58:00 +02:00
Stefan Kangas
0bc2079ce6
* lisp/ibuf-ext.el (ibuffer-remove-alist): Simplify.
2022-08-09 21:58:00 +02:00
Lars Ingebrigtsen
47aa2317c3
Use new convenience functions in replace-string
...
* lisp/replace.el (replace-string): Use new convenience functions.
2022-08-09 21:13:10 +02:00
Lars Ingebrigtsen
6ac92c65a8
Add use-region-beginning and use-region-end
...
* lisp/simple.el (use-region-beginning, use-region-end): New functions.
(use-region-p): Mention them in the doc strings (bug#45607).
2022-08-09 21:13:10 +02:00
Juri Linkov
619d5af54a
* lisp/replace.el (replace-highlight): Optimize for large buffers (bug#56815)
...
Let-bind isearch-lazy-count and lazy-highlight-buffer to nil to avoid
revisiting all matches in the whole buffer after every replacement.
2022-08-09 21:54:32 +03:00
Andrea Greselin
41169b5534
Add new user option electric-quote-replace-consecutive
...
* lisp/electric.el (electric-quote-replace-consecutive): New user
option (bug#57057).
(electric-quote-post-self-insert-function): Use it.
2022-08-09 20:44:07 +02:00
Stephen Berman
744ed0ceee
Make outline buttons work in NEWS
...
* lisp/outline.el (outline-minor-mode-highlight-buffer): Fix
button insertion.
(outline-minor-mode): Ditto.
(outline--insert-open-button): Don't mark buffer as modified when
inserting buttons.
(outline--insert-close-button): Ditto.
* lisp/textmodes/emacs-news-mode.el (emacs-news--mode-common):
Adjust outline regexp.
2022-08-09 20:44:07 +02:00
Eli Zaretskii
38f9d9bf06
; * src/keyboard.c (timer_check_2): Restore run-time conditions.
2022-08-09 21:26:21 +03:00
Eli Zaretskii
b7b160b409
Revert "Make compat alias check-ispell-version obsolete"
...
This reverts commit 24795e45e5 .
That alias is in no way obsolete, and was added for a different
reason.
2022-08-09 20:51:42 +03:00
Eli Zaretskii
2504d19dad
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
2022-08-09 20:42:39 +03:00
Lars Ingebrigtsen
b2bf91003d
Further lisp-current-defun-name tweaks
...
* lisp/emacs-lisp/lisp-mode.el (lisp-current-defun-name): Tweak so
that cl-defmethod and friends work again.
2022-08-09 19:21:36 +02:00
Lars Ingebrigtsen
5269842833
Add a faster seq-uniq for lists
...
* lisp/emacs-lisp/seq.el (seq-uniq): Add a faster method for lists
(bug#57079).
2022-08-09 19:21:36 +02:00
Laurence Warne
b92e888758
Fix python escape code fontification for multi-line literals
...
* lisp/progmodes/python.el (python--string-bytes-literal-matcher): Go
backward one char after a match so that consecutive escape codes are
highlighted
(python--not-raw-string-literal-start-regexp): Make regular expression
more comprehensive, so multi-line bytes literals are not caught
(python-rx): Accept one to three octal digits in octal escape codes
instead of always three
2022-08-09 19:21:36 +02:00
Stefan Kangas
3ef18c7a21
Make ibuffer-aif obsolete in favor of if-let
...
* lisp/ibuf-macs.el (ibuffer-aif): Make obsolete in favor of 'if-let'.
* lisp/ibuffer.el (ibuffer-mouse-toggle-mark)
(ibuffer-mark-interactive, ibuffer-compile-format, process):
Prefer 'if-let' to above obsolete macro.
(ibuffer-toggle-marks, ibuffer-map-lines): Prefer 'when-let'
to above obsolete macro.
2022-08-09 18:15:56 +02:00
Michael Albinus
b0653b27e2
Further Tramp fixes for Android 12
...
* lisp/net/tramp-adb.el (tramp-adb-handle-file-attributes)
(tramp-adb-handle-directory-files-and-attributes)
(tramp-adb-handle-file-name-all-completions): Pipe "ls" output
through "cat", in order to avoid quoting special characters.
(tramp-adb-sh-fix-ls-output): Remove fix for file names with spaces.
* test/lisp/net/tramp-tests.el (tramp-test22-file-times): Adapt test.
2022-08-09 18:12:27 +02:00
Stefan Kangas
e5bf2b942f
Improve message regarding missing LEIM
...
* lisp/international/ja-dic-utl.el (skkdic-lookup-key):
* lisp/international/mule-diag.el (list-input-methods-1):
* lisp/international/quail.el (quail-use-package): Explain that LEIM
is installed together with Emacs.
2022-08-09 17:58:15 +02:00
Stefan Kangas
f9ee2db493
Improve readability of list-input-methods
...
* lisp/international/mule-diag.el: Make screen more readable by
improving the formatting.
2022-08-09 17:58:15 +02:00
Stefan Kangas
171b9314bf
Replace utility functions with seq-uniq
...
* lisp/gnus/gnus-util.el (gnus-delete-duplicates):
* lisp/ibuf-ext.el (ibuffer-remove-duplicates): Redefine as
obsolete function alias for 'seq-uniq'. Update callers.
2022-08-09 17:58:15 +02:00
Eli Zaretskii
8813399cfa
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
2022-08-09 18:52:25 +03:00
Lars Ingebrigtsen
ee201bc77b
Make the loaddefs.el file slightly shorter
...
* lisp/emacs-lisp/loaddefs-gen.el
(loaddefs-generate--shorten-autoload): New function.
(loaddefs-generate--make-autoload): Use it to drop optional nil
values from the `autoloads' forms. This makes the loaddefs.el
file about 12K shorter.
2022-08-09 16:36:41 +02:00
Stefan Kangas
accb1d1132
Make ibuffer-awhen obsolete in favor of when-let
...
* lisp/ibuf-macs.el (ibuffer-awhen): Make obsolete in favor of
'when-let'. Update callers.
2022-08-09 15:46:54 +02:00
Stefan Kangas
d3f6edf5aa
Make ibuffer-split-list obsolete in favor of seq-group-by
...
* lisp/ibuf-ext.el (ibuffer-split-list): Make obsolete in favor of
'seq-group-by'.
(ibuffer-generate-filter-groups): Don't use above obsolete
function.
2022-08-09 15:37:53 +02:00
Stefan Kangas
24795e45e5
Make compat alias check-ispell-version obsolete
...
* lisp/textmodes/ispell.el (check-ispell-version): Make compat
alias obsolete.
2022-08-09 15:36:13 +02:00