Juri Linkov
a3e10af95c
Keep reading when typed RET in read-char-from-minibuffer and y-or-n-p
...
* lisp/subr.el (read-char-from-minibuffer-map):
Remap exit-minibuffer to read-char-from-minibuffer-insert-other.
(y-or-n-p-map): Remap 'exit' to y-or-n-p-insert-other.
(y-or-n-p): Don't mention RET in docstring. (Bug#51101)
2021-10-10 20:31:15 +03:00
David M. Koppelman
013e3be832
* lisp/userlock.el (ask-user-about-supersession-threat): Accept 'y' strictly.
...
(Bug#51101)
2021-10-10 20:27:29 +03:00
Eli Zaretskii
ae61d7a57d
Fix point positioning on mouse clicks with non-zero line-height
...
* src/xdisp.c (move_it_to): After passing a newline, reset
it->override_ascent, like 'display_line' does (in
'append_space_for_newline'). (Bug#51111)
2021-10-10 17:14:55 +03:00
João Távora
4c7e74c386
Complete shorthands to longhands for symbol-completing tables
...
Shorthands aren't symbols, they're text forms that 'read' into
symbols. As such, shorthands aren't candidates in these tables of
symbols. But in some situations, if no other candidates match the
pattern, we can e.g. complete "x-foo" to "xavier-foo" if the shorthand
(("x-" . "xavier-"))
is set up in the buffer of origin.
bug#50959
* lisp/help-fns.el (help--symbol-completion-table): Report
`symbol-help' category.
* lisp/minibuffer.el (completion-styles-alist): New 'shorthand'
style.
(completion-category-defaults): Link 'symbol-help' category with
'shorthand' style.
(minibuffer--original-buffer): New variable.
(completing-read-default): Setup minibuffer--original-buffer.
(completion-shorthand-try-completion)
(completion-shorthand-all-completions): New helpers.
2021-10-10 14:33:23 +01:00
João Távora
c2513c5d0d
Add new failing test for bug#51089
...
* test/lisp/progmodes/elisp-mode-tests.el
(elisp-dont-shadow-punctuation-only-symbols): Add new failing test.
2021-10-10 14:29:37 +01:00
Lars Ingebrigtsen
005c15cdb5
Fix mairix-el.texi menu
2021-10-10 13:58:57 +02:00
Stefan Kangas
1d1e96377c
; * lisp/emacs-lisp/shortdoc.el: Fix typo.
2021-10-10 13:53:55 +02:00
Dmitry Gutov
6bf29072e9
Avoid mapping file names through 'substring'
...
* lisp/progmodes/project.el (project--files-in-directory):
Avoid mapping file names through 'substring'. Reducing the amount
of garbage generated. Better perf by up to 20%.
Bump the package version.
2021-10-10 04:15:42 +03:00
Kyle Meyer
bcce93f04c
Update to Org 9.5-46-gb71474
2021-10-09 16:34:12 -04:00
Stephen Gildea
5d408f1a24
Expanded testing of MH-E with multiple MH variants
...
* test/lisp/mh-e/mh-utils-tests.el: Environment variable TEST_MH_PATH
controls which installed MH variant to test with. Moved the commentary
about testing with different MH variants from above 'with-mh-test-env'
definition to "Commentary" section at the top of the file.
* test/lisp/mh-e/test-all-mh-variants.sh: New script to test all
installed MH variants.
2021-10-09 11:36:38 -07:00
Philipp Stephani
b497add971
Fix Seccomp filter for newer GNU/Linux systems (Bug#51073).
...
On some systems, process startup calls prctl(PR_CAPBSET_READ) via
'cap_get_bound'. We can just return EINVAL.
* lib-src/seccomp-filter.c (main): Add a rule for
prctl(PR_CAPBSET_READ, ...).
2021-10-09 19:39:31 +02:00
Michael Albinus
75d9fbec88
Tramp code cleanup
...
* lisp/net/tramp.el (tramp-remote-path): Adapt docstring.
(tramp-action-login, tramp-action-password, tramp-action-yesno)
(tramp-action-yn, tramp-process-actions): Move let-binding of
`enable-recursive-minibuffers' up.
(tramp-handle-make-process, tramp-handle-write-region):
* lisp/net/tramp-adb.el (tramp-adb-handle-write-region)
(tramp-adb-handle-make-process):
* lisp/net/tramp-sh.el (tramp-sh-handle-make-process)
(tramp-sh-handle-write-region):
* lisp/net/tramp-smb.el (tramp-smb-handle-write-region):
* lisp/net/tramp-sshfs.el (tramp-sshfs-handle-write-region):
Use `string-or-null-p'.
2021-10-09 18:42:11 +02:00
Glenn Morris
cc202c713b
Merge from origin/emacs-28
...
394209c1a0 (origin/emacs-28) ; Fix indentation in etc/NEWS
81f20e8b89 Fix thinko in ls-lisp--insert-directory
ec9f25bd35 Mention that RET means "yes" in y-or-n-p
00eb21c897 ; * src/dispextern.h (struct glyph_string): Comment on NCH...
20eb3644ba Rewrite Antinews for Emacs 28
3a9b881603 ; * etc/NEWS: Rearrange the "incompatible changes" sections.
ebb7e26013 ; * etc/NEWS: Fix a typo.
315fe20086 ; * src/Makefile.in (../native-lisp): Add comment.
47cbd103f5 * lisp/bindings.el (mode-line-position): Improve tooltip.
35a752863a * lisp/progmodes/xref.el: Bump the version.
bbcd8cc1a9 Slight simplificaiton
e139dd1b1e Fix doc strings of 2 categories
59782839cb (xref--collect-matches-1): Remove some intermediate alloca...
1c7d056f4d ; Fix two typos where em dash was written as en dash
# Conflicts:
# etc/NEWS
2021-10-09 07:50:36 -07:00
Stefan Monnier
fecc4c0f79
* lisp/progmodes/bug-reference.el: Use new eql specializer syntax
2021-10-09 10:42:49 -04:00
Michael Albinus
394209c1a0
; Fix indentation in etc/NEWS
2021-10-09 16:42:00 +02:00
Michael Albinus
81f20e8b89
Fix thinko in ls-lisp--insert-directory
...
* lisp/ls-lisp.el (ls-lisp--insert-directory): Ensure that
SWITCHES is a string.
2021-10-09 16:18:53 +02:00
Lars Ingebrigtsen
ec9f25bd35
Mention that RET means "yes" in y-or-n-p
...
* lisp/subr.el (y-or-n-p): Mention that RET also means yes (bug#51101).
2021-10-09 15:04:18 +02:00
F. Jason Park
1341134620
Add ERC version to protocol log
...
* lisp/erc/erc.el (erc-toggle-debug-irc-protocol): Include the erc
version in the debug logs (bug#51107).
2021-10-09 14:59:43 +02:00
Lars Ingebrigtsen
22704345f7
Remove mistaken dired-x entry from previous info-look patch.
2021-10-09 14:49:38 +02:00
Lars Ingebrigtsen
f839c7f2c0
Make `C-h S' work on symbols from most of the manuals in Emacs
...
* lisp/info-look.el (lambda): Add `C-h S' lookup for all the
"misc" manuals in Emacs (bug#42753).
2021-10-09 14:44:21 +02:00
Lars Ingebrigtsen
72a959c132
Add indices to mairix-el
...
* doc/misc/mairix-el.texi (Function Index): Add indices.
2021-10-09 14:43:47 +02:00
Eli Zaretskii
00eb21c897
; * src/dispextern.h (struct glyph_string): Comment on NCHARS. (Bug#51105)
2021-10-09 14:38:06 +03:00
Eli Zaretskii
20eb3644ba
Rewrite Antinews for Emacs 28
...
* doc/lispref/anti.texi (Antinews):
* doc/emacs/anti.texi (Antinews): Rewrite for Emacs 28.
* doc/lispref/elisp.texi (Top):
* doc/emacs/emacs.texi (Top): Update menu accordingly.
2021-10-09 14:32:28 +03:00
Eli Zaretskii
3a9b881603
; * etc/NEWS: Rearrange the "incompatible changes" sections.
2021-10-09 14:30:31 +03:00
Lars Ingebrigtsen
f43a3a7cd7
Simplify `clean-mode'
...
* lisp/simple.el (clean-mode): Simplify the property exclusion.
2021-10-09 13:12:33 +02:00
Eli Zaretskii
ebb7e26013
; * etc/NEWS: Fix a typo.
2021-10-09 12:49:38 +03:00
Eli Zaretskii
315fe20086
; * src/Makefile.in (../native-lisp): Add comment.
2021-10-09 11:23:44 +03:00
Stefan Kangas
f35246db19
Remove duplicate definition of x-display-color-p
...
* lisp/emulation/viper-init.el (x-display-color-p): Remove duplicate
definition. This would just overwrite the alias defined in faces.el.
2021-10-09 08:48:34 +02:00
Stefan Kangas
47cbd103f5
* lisp/bindings.el (mode-line-position): Improve tooltip.
2021-10-09 08:33:19 +02:00
Dmitry Gutov
35a752863a
* lisp/progmodes/xref.el: Bump the version.
2021-10-09 04:38:11 +03:00
Dmitry Gutov
bbcd8cc1a9
Slight simplificaiton
...
* lisp/progmodes/xref.el (xref--insert-xrefs):
Compute log only once. Use 'dolist'.
2021-10-09 04:33:02 +03:00
Stefan Kangas
5c0a512ef4
Remove some unnecessary calls to mh-funcall-if-exists
...
* lisp/mh-e/mh-acros.el (mh-do-at-event-location):
* lisp/mh-e/mh-mime.el (mh-mime-cleanup, mh-display-smileys)
(mh-insert-mime-security-button, mh-insert-mime-button):
* lisp/mh-e/mh-show.el (mh-defun-show-buffer):
* lisp/mh-e/mh-xface.el (mh-x-image-url-fetch-image)
(mh-x-image-display, mh-picon-image-types): Remove unnecessary calls
to mh-funcall-if-exists; these functions always exist as they are
autoloaded.
2021-10-09 03:09:20 +02:00
Stefan Kangas
9a934c4c0f
Remove old Gnus compat code from MH-E
...
* lisp/mh-e/mh-gnus.el (mh-mm-merge-handles)
(mh-mm-set-handle-multipart-parameter, mh-mm-inline-text-vcard)
(mh-mm-possibly-verify-or-decrypt)
(mh-mm-handle-multipart-ctl-parameter, mh-mm-readable-p)
(mh-mm-long-lines-p, mh-mm-keep-viewer-alive-p)
(mh-mm-destroy-parts, mh-mm-uu-dissect-text-parts)
(mh-mml-minibuffer-read-disposition): Make into obsolete aliases
for functions without the 'mh-' prefix. Update callers.
(mh-gnus-local-map-property): Remove Emacs 20 compat code.
2021-10-09 03:09:17 +02:00
Stefan Monnier
3ae275eedc
test/lisp/progmodes/elisp-mode-resources/simple-shorthand-test.el: Lexbind
...
Add the usual lexical-binding cookie.
2021-10-08 18:36:29 -04:00
Stefan Kangas
d51f684aef
Remove XEmacs compat code from lisp/obsolete/*.el
...
* lisp/obsolete/crisp.el (crisp-kill-region)
(crisp-region-active):
* lisp/obsolete/eudcb-ph.el (eudc-ph-open-session):
* lisp/obsolete/fast-lock.el (fast-lock-save-faces):
* lisp/obsolete/iswitchb.el (iswitchb-completion-help)
(iswitchb-case):
* lisp/obsolete/otodo-mode.el (todo-mode):
* lisp/obsolete/pgg-parse.el (pgg-parse-armor):
* lisp/obsolete/pgg.el (pgg-verify-region):
* lisp/obsolete/tpu-edt.el (activate-mark-hook, tpu-mark)
(tpu-set-mark, tpu-load-xkeys):
* lisp/obsolete/tpu-mapper.el (tpu-map-key, tpu-mapper): Remove XEmacs
compat code.
2021-10-08 22:50:49 +02:00
Stefan Kangas
bf5b95d932
Remove XEmacs compat code from sql.el
...
* lisp/progmodes/sql.el (sql-interactive-mode-map, sql-mode)
(sql-interactive-mode): Remove XEmacs compat code. (Bug#51096)
2021-10-08 22:50:46 +02:00
Eli Zaretskii
e139dd1b1e
Fix doc strings of 2 categories
...
* lisp/international/characters.el (?R, ?L): Make the first line
of the categories' doc string shorter, to fit into 15 columns.
2021-10-08 22:20:19 +03:00
Stefan Kangas
e73c9ac4ed
Remove Emacs 20 compat code from sql.el
...
* lisp/progmodes/sql.el (sql-input-ring-separator)
(sql-product-font-lock): Remove Emacs 20 compat code.
2021-10-08 21:02:14 +02:00
Stefan Kangas
519f9e144f
Remove some additional XEmacs compat code from viper
...
* lisp/emulation/viper-util.el (viper-memq-char): Make into
obsolete function alias for 'memq'. Update callers.
(viper-char-equal): Make into obsolete function alias for 'eq'.
Update callers.
(viper-color-display-p): Make into obsolete function alias for
'x-display-color-p'. Update callers.
2021-10-08 20:53:48 +02:00
Stefan Kangas
f146325bd1
Obsolete XEmacs compat convention in erc-button-press-button
...
* lisp/erc/erc-button.el (erc-button-press-button): Advertise new
calling convention without XEmacs compatibility.
2021-10-08 20:25:52 +02:00
Dmitry Gutov
59782839cb
(xref--collect-matches-1): Remove some intermediate allocations
...
* lisp/progmodes/xref.el: (xref--collect-matches-1):
Rewrite to remove some intermediate allocations.
Modest performance improvement.
2021-10-08 18:44:54 +03:00
Stefan Kangas
1c7d056f4d
; Fix two typos where em dash was written as en dash
2021-10-08 16:51:24 +02:00
Glenn Morris
2bc37c14db
Merge from origin/emacs-28
...
af01b674ce (origin/emacs-28) ; Fix spacing in previous commit
915e044d60 Use the correct label in the warning
6e83a4100a ; * admin/make-tarball.txt: Should configure --with-native...
525602d682 ; * etc/TODO (display): Add entry about Default_Ignorables.
65de510c16 ; Fix 'restore-buffer-modified-p' doc string typo
9d8202b45e Add Emacs 27 compatibility hack
89d64fca75 Pacify GCC 10.3 -Wmaybe-uninitialized
bb8ef1aa30 * lisp/tab-bar.el (tab-detach, tab-window-detach): New ali...
7ae70054aa ; * src/composite.h (LGSTRING_FONT): Add comment about its...
1af00e67d6 Include the refcards in the release tarball
3c29fb705c ; * src/Makefile.in (../native-lisp): Make the long recipe...
2021-10-08 07:50:28 -07:00
Tassilo Horn
af01b674ce
; Fix spacing in previous commit
2021-10-08 13:03:45 +02:00
Arash Esbati
915e044d60
Use the correct label in the warning
...
* lisp/textmodes/reftex-toc.el (reftex-toc-rename-label): Add
missing space in the prompt. Use the new user defined label in
the warning (bug#36235).
2021-10-08 12:31:40 +02:00
Eli Zaretskii
6e83a4100a
; * admin/make-tarball.txt: Should configure --with-native-compilation.
2021-10-08 10:31:17 +03:00
Eli Zaretskii
525602d682
; * etc/TODO (display): Add entry about Default_Ignorables.
2021-10-08 10:27:03 +03:00
Stephen Gildea
65de510c16
; Fix 'restore-buffer-modified-p' doc string typo
...
* src/buffer.c (restore-buffer-modified-p): Fix typo in doc string:
"and" for "or" regarding lock/unlock. Note that 'set-buffer-modified-p'
doc string already uses the correct "or".
2021-10-07 20:11:36 -07:00
Dmitry Gutov
9d8202b45e
Add Emacs 27 compatibility hack
...
* lisp/progmodes/xref.el: Add Emacs 27 compatibility hack, for the
standalone version of this package.
2021-10-08 05:23:19 +03:00
Stefan Kangas
b506c5b217
Make mh-* XEmacs compat aliases obsolete
...
* lisp/mh-e/mh-acros.el (mh-make-local-hook): Make XEmacs and Emacs 20
macro obsolete. Update all callers
* lisp/mh-e/mh-compat.el (mh-require): Make XEmacs compat alias
obsolete. Update all callers
(mh-write-file-functions): Make XEmacs compat macro obsolete. Update
all callers
(mh-assoc-string, mh-display-color-cells, mh-face-foreground)
(mh-face-foreground, mh-face-background)
(mh-font-lock-add-keywords, mh-image-load-path-for-library)
(mh-image-search-load-path, mh-line-beginning-position)
(mh-line-end-position, mh-mail-abbrev-make-syntax-table)
(mh-define-obsolete-variable-alias, mh-make-obsolete-variable)
(mh-match-string-no-properties, mh-replace-regexp-in-string)
(mh-test-completion, mh-url-hexify-string, mh-view-mode-enter)
(mh-window-full-height-p): Make XEmacs compat definitions into
obsolete function aliases for the same names but without the "mh-"
prefix. Update all callers.
2021-10-08 03:38:12 +02:00