Juri Linkov
17894ef565
In dired-query use read-char-from-minibuffer with bound help-char (bug#42708)
...
* lisp/dired-aux.el (dired-query): Replace read-char-choice call
with read-char-from-minibuffer.
* lisp/subr.el (read-char-choice): Restore the previous version
that uses read-key.
(read-char-from-minibuffer): Bind help-char to help-form-show
when help-form is non-nil.
2020-11-11 21:18:31 +02:00
Glenn Morris
33e8116fc2
Merge from origin/emacs-27
...
f5d7fb3a2d
(origin/emacs-27) Fix 'uudecode-decode-region-internal' in...
d4242177da
Fix 'send-string-to-terminal' writing very long strings
9da0f4026c
* lisp/subr.el (read-char-from-minibuffer): Doc fix. (Bug...
9899f74e4e
Merge branch 'emacs-27' of git.savannah.gnu.org:/srv/git/e...
a6fcba783e
Fix documentation of 'windmove-swap-states-default-keybind...
f4acd7a924
Split windows evenly when 'min-margins' parameter was set ...
2020-11-07 09:57:56 -08:00
Andrea Corallo
75e8ee728f
Merge remote-tracking branch 'savannah/master' into HEAD
2020-11-07 16:21:36 +01:00
Eli Zaretskii
9da0f4026c
* lisp/subr.el (read-char-from-minibuffer): Doc fix. (Bug#44451)
2020-11-07 11:10:36 +02:00
Mattias Engdegård
d85e0df7ad
Add missing side-effect-free and error-free properties
...
Any function that is pure is also side-effect-free and some are also
error-free. Right now these have to be declared separately.
* lisp/emacs-lisp/byte-opt.el (side-effect-free-fns): Add
bool-vector-count-consecutive, bool-vector-count-population,
bool-vector-subsetp, copysign, isnan, lax-plist-get, ldexp, memql,
regexp-opt and string-to-syntax.
(side-effect-and-error-free-fns): Add type-of.
* lisp/subr.el (kbd, string-replace): Declare side-effect-free.
2020-11-01 18:22:11 +01:00
Andrea Corallo
d5791ba5fe
Merge remote-tracking branch 'savannah/master' into HEAD
2020-10-17 08:00:34 +02:00
Mattias Engdegård
674fee5e9f
Remove dynamic declaration of 'save-match-data-internal'
...
* lisp/subr.el: Remove defvar which has no relevance today; it can
very well be a lexical variable.
2020-10-15 11:46:49 +02:00
Andrea Corallo
f8505fd3d4
Merge remote-tracking branch 'savannah/master' into HEAD
2020-10-14 11:04:55 +02:00
Lars Ingebrigtsen
b31e48d4ef
Make read-char-choice less modal
...
* lisp/subr.el (read-char-choice): Use `read-char-from-minibuffer'
here (bug#42708) so that we're not as modal (and users can copy
the help buffer, if they should so want).
2020-10-13 04:59:11 +02:00
Robert Weiner
ff9ec6b139
Make posn-set-point work on frame events
...
* lisp/subr.el (event-start): Mention the frame part of the events.
(posn-window): Ditto.
(posn-set-point): Make this work if the event is a frame event
(bug#28621).
2020-10-11 04:03:47 +02:00
Andrea Corallo
f7e7ff4fb1
Merge remote-tracking branch 'savannah/master' into HEAD
2020-10-10 11:00:35 +02:00
Lars Ingebrigtsen
cc70a7b7a8
alist-get doc string further clarification
...
* lisp/subr.el (alist-get): Mention generalized variables again
for easier cross-referencing (bug#43836).
2020-10-07 04:50:52 +02:00
Andreas Schwab
a9f147af71
Use the full name of the null byte/character, not its abbreviation
...
* lisp/subr.el (inhibit-nul-byte-detection): Make it an obsolete alias.
* src/coding.c (setup_coding_system): Use original name.
(detect_coding): Rename nul_byte_found => null_byte_found.
(detect_coding_system): Use original name.
Rename nul_byte_found => null_byte_found.
(Fdefine_coding_system_internal): Use original name.
(syms_of_coding): Rename inhibit-nul-byte-detection to
inhibit-null-byte-detection.
* src/w16select.c (get_clipboard_data): Rename nul_char to null_char.
* src/json.c (check_string_without_embedded_nulls): Rename from
check_string_without_embedded_nuls.
(Fjson_parse_string): Adjust accordingly.
* src/coding.h (enum define_coding_undecided_arg_index)
(enum coding_attr_index): Rename ...nul_byte... to ...null_byte....
* lisp/info.el (info-insert-file-contents, Info-insert-dir):
* lisp/international/mule.el (define-coding-system):
* lisp/vc/vc-git.el (vc-git--call):
* doc/lispref/nonascii.texi (Lisp and Coding Systems): Use original name.
2020-10-05 20:19:59 +02:00
Andrea Corallo
44ef24342f
Merge remote-tracking branch 'savannah/master' into HEAD
2020-10-04 19:45:05 +02:00
Stefan Kangas
c6fa0ad315
; Prefer https to http in many URLs
...
These were all tested with https and confirmed working.
2020-10-01 15:28:15 +02:00
Lars Ingebrigtsen
5b0d8d0f28
Further doc fixes for dotimes about RESULT
...
* lisp/subr.el (dotimes): Be even more explicit about RESULT
(bug#16206).
2020-09-30 20:31:44 +02:00
Andrea Corallo
6eb5a8c492
Merge remote-tracking branch 'savannah/master' into clean-up
2020-09-30 09:09:39 +02:00
Lars Ingebrigtsen
baf331e40c
Rename replace-in-string to string-replace
...
* doc/lispref/searching.texi (Search and Replace): Update.
* lisp/bindings.el (mode-line-position): Update callers.
* lisp/subr.el (string-replace): Rename from replace-in-string
since that clashes with XEmacs' replace-in-string which is
equivalent to the Emacs replace-regexp-in-string (bug#43598).
2020-09-27 00:24:50 +02:00
Lars Ingebrigtsen
53cf5936c1
Slight replace-in-string optimization
...
* lisp/subr.el (replace-in-string): Optimize to return the
original string if nothing was replaced (bug#43598).
2020-09-27 00:17:58 +02:00
Lars Ingebrigtsen
9b6f564227
Make macroexpand of `push' slightly less confusing
...
* lisp/subr.el (push): Use a symbol with a different name to make
macroexpand look slightly less confusing (bug#43601).
2020-09-26 17:05:17 +02:00
Andrea Corallo
06acf681d6
Merge remote-tracking branch 'savannah/master' into HEAD
2020-09-26 15:31:50 +02:00
Mattias Engdegård
8a253a96a0
Fix replace-in-string infloop with empty pattern string (bug#43598)
...
* lisp/subr.el (replace-in-string): Raise an error if FROMSTRING is
empty.
* test/lisp/subr-tests.el (replace-in-string): Add test case.
2020-09-25 13:15:42 +02:00
Lars Ingebrigtsen
d27b137289
Clean up replace-in-string slightly
...
* lisp/subr.el (replace-in-string): Clean up previous fix slightly.
2020-09-25 02:27:01 +02:00
Lars Ingebrigtsen
09adf92644
Fix previous replace-in-string rewrite
...
* lisp/subr.el (replace-in-string): Fix logic errors in previous
patch.
2020-09-25 02:07:05 +02:00
Lars Ingebrigtsen
7f9ad5980c
Fix replace-in-string multibyteness problems with string-search
...
* lisp/subr.el (replace-in-string): Simplify by using the new
string-search function (bug#43598).
2020-09-25 01:53:16 +02:00
Andrea Corallo
5a8be1719a
Merge remote-tracking branch 'savannah/master' into HEAD
2020-09-21 21:45:02 +02:00
Stefan Kangas
462dbc1cb2
; Fix typos
2020-09-21 14:26:42 +02:00
Peder O. Klingenberg
a2be81780e
Extend process-lines to allow exit status handling
...
* subr.el (process-lines-handling-status): Extension of the old
process-lines, with more flexible handling of the exit status.
(process-lines): Old API implemented using the new function.
(process-lines-ignore-status): Another use of the new function -
return the output lines regardless of the exit status (bug#1321).
2020-09-20 00:16:36 +02:00
Lars Ingebrigtsen
0a7152e095
Fix up previous replace-in-string commit
...
* lisp/subr.el (replace-in-string): Fix thinko in implementation.
2020-09-15 17:36:36 +02:00
Lars Ingebrigtsen
caf64ae08b
Add new, simple `replace-in-string' function
...
* lisp/subr.el (replace-in-string): New, side-effect-free function.
* doc/lispref/searching.texi (Search and Replace): Document it.
2020-09-15 17:15:59 +02:00
Andrea Corallo
a26b14733b
Merge remote-tracking branch 'savannah/master' into HEAD
2020-09-10 10:45:02 +02:00
Lars Ingebrigtsen
670c41cf12
Add edebug form to subr--with-wrapper-hook-no-warnings
...
* lisp/subr.el (subr--with-wrapper-hook-no-warnings): Add a debug
form to allow edebugging some stuff.
2020-09-07 02:26:08 +02:00
Andrea Corallo
87b9c3e718
Have .elc files in `load-history' when loading native code (bug#43089)
...
* src/lread.c (Fload): Add the corresponding .elc file to
`load-history' when loading native code.
* lisp/subr.el (eval-after-load): Use `load-file-name' instead of
`load-true-file-name'.
2020-08-29 16:08:03 +02:00
Andrea Corallo
c3514a6274
Merge remote-tracking branch 'savannah/master' into HEAD
2020-08-29 11:33:37 +02:00
Lars Ingebrigtsen
99fe2a2643
Remove side-effect-free markup for assoc-default
...
* lisp/subr.el (assoc-default): assoc-default isn't
side-effect-free, because it takes a :test parameter that can do
anything (bug#37943).
2020-08-26 11:28:18 +02:00
Lars Ingebrigtsen
642c921f4e
remove-overlays doc clarification
...
* lisp/subr.el (remove-overlays): Doc fix (bug#13648).
2020-08-25 16:22:07 +02:00
Stefan Kangas
326fdb9ec0
Remove many items obsolete since Emacs 23.2 and 23.3
...
* lisp/allout.el (allout-init):
* lisp/emacs-lisp/shadow.el (shadows-compare-text-p):
* lisp/ffap.el (ffap-version):
* lisp/filecache.el (file-cache-choose-completion):
* lisp/help.el (print-help-return-message):
* lisp/image-mode.el (image-mode-maybe):
* lisp/imenu.el (imenu-example--name-and-position):
* lisp/international/mule-cmds.el (princ-list):
* lisp/mail/rmail.el (rmail-highlight-face):
* lisp/minibuffer.el (read-file-name-predicate):
* lisp/mouse.el (mouse-choose-completion):
* lisp/progmodes/cc-cmds.el (c-forward-into-nomenclature):
* lisp/progmodes/xscheme.el
(advertised-xscheme-send-previous-expression):
* lisp/simple.el (completion-base-size)
(choose-completion-delete-max-match, exchange-dot-and-mark):
* lisp/subr.el (eval-next-after-load):
* lisp/term.el (term-dynamic-simple-complete):
Remove items, obsolete since Emacs 23.2 and 23.3.
* doc/misc/cc-mode.texi (Movement Commands): Doc fix.
* doc/lispref/help.texi (Accessing Documentation):
* lisp/emacs-lisp/edebug.el (edebug-wrap-def-body):
* lisp/comint.el (comint-dynamic-list-completions):
* lisp/progmodes/idlwave.el (idlwave-make-modified-completion-map-xemacs)
(idlwave-make-modified-completion-map-emacs)
(idlwave-choose-completion):
* lisp/progmodes/vhdl-mode.el:
* lisp/term.el (term-dynamic-list-completions):
Remove references to 'mouse-choose-completion'.
* lisp/image-mode.el (image-mode-to-text):
Remove reference to 'image-mode-maybe'.
* lisp/mail/rmail.el (rmail-highlight-headers):
Use 'rmail-highlight' face instead of 'rmail-highlight-face'.
* lisp/progmodes/antlr-mode.el (antlr-mode-map, antlr-mode-menu):
Remove reference to 'c-forward-into-nomenclature'.
* lisp/simple.el (choose-completion, choose-completion-string)
(completion-list-mode, completion-setup-function): Don't use
'completion-base-size'.
; * etc/NEWS: List removed items.
This was discussed in
https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg00400.html
2020-08-24 04:09:47 +02:00
Andrea Corallo
886377fefd
Merge remote-tracking branch 'savannah/master' into HEAD
2020-08-19 16:11:00 +02:00
Stefan Kangas
b06ef8d5e9
Mark XEmacs compat alias as obsolete
...
* lisp/subr.el (user-original-login-name): Mark as obsolete. This
XEmacs compat alias was obsoleted even by XEmacs, so there is no point
in keeping it around.
2020-08-16 15:38:06 +02:00
Stefan Kangas
874ba85363
Remove many items obsolete since Emacs 23.1
...
Emacs 23.1 was five major releases and over a decade ago.
This list can be reviewed before to the next release, but for now
hopefully this motivates any needed external updates.
Ref: https://lists.gnu.org/archive/html/emacs-devel/2020-05/msg02198.html
* lisp/abbrev.el (pre-abbrev-expand-hook):
* lisp/bookmark.el (bookmark-read-annotation-text-func)
(bookmark-jump-noselect):
* lisp/buff-menu.el (buffer-menu-mode-hook):
* lisp/cus-edit.el (custom-mode-hook, custom-mode):
* lisp/dirtrack.el (dirtrack-debug-toggle, dirtrack-debug):
* lisp/emacs-lisp/crm.el (crm-minibuffer-complete)
(crm-minibuffer-completion-help)
(crm-minibuffer-complete-and-exit):
* lisp/emacs-lisp/easymenu.el
(easy-menu-precalculate-equivalent-keybindings):
* lisp/emacs-lisp/lisp-mode.el (lisp-mode-auto-fill):
* lisp/epa.el (epa-display-verify-result):
* lisp/epg.el (epg-passphrase-callback-function):
* lisp/eshell/eshell.el (eshell-report-bug):
* lisp/ffap.el (ffap-bug, ffap-submit-bug):
* lisp/files.el (locate-file-completion):
* lisp/hi-lock.el (hi-lock-face-history, hi-lock-regexp-history):
* lisp/hilit-chg.el (highlight-changes-initial-state)
(highlight-changes-active-string)
(highlight-changes-passive-string, global-highlight-changes):
* lisp/international/mule-cmds.el (nonascii-insert-offset)
(nonascii-translation-table):
* lisp/international/mule-diag.el (non-iso-charset-alist):
* lisp/international/mule-util.el (detect-coding-with-priority):
* lisp/international/mule.el (charset-id, charset-bytes)
(charset-list, char-valid-p, generic-char-p)
(char-coding-system-table, make-coding-system)
(set-coding-priority)
* lisp/mail/rmail.el (rmail-message-filter):
* lisp/minibuffer.el (complete-in-turn, dynamic-completion-table)
(completion-common-substring)
(minibuffer-local-must-match-filename-map):
* lisp/mouse.el (mouse-major-mode-menu, mouse-popup-menubar)
(mouse-popup-menubar-stuff):
* lisp/net/newst-treeview.el (newsticker-groups-filename):
* lisp/obsolete/tpu-edt.el (tpu-have-ispell, GOLD-map):
* lisp/password-cache.el (password-read-and-add):
* lisp/shell.el (shell-dirtrack-toggle):
* lisp/subr.el (forward-point, redisplay-end-trigger-functions)
(process-filter-multibyte-p, set-process-filter-multibyte):
* lisp/t-mouse.el (t-mouse-mode):
* lisp/term/w32-win.el (w32-focus-frame, w32-select-font):
* lisp/textmodes/ispell.el (ispell-aspell-supports-utf8):
* lisp/textmodes/remember.el (remember-buffer):
* lisp/tooltip.el (tooltip-hook):
* lisp/url/url-util.el (url-generate-unique-filename):
* lisp/url/url-vars.el (url-temporary-directory):
* lisp/vc/vc-hooks.el (vc-workfile-version)
(vc-default-working-revision):
* lisp/vc/vc-mtn.el (vc-mtn-command):
* lisp/vc/vc.el (vc-revert-buffer):
* lisp/vcursor.el (vcursor-toggle-vcursor-map):
Remove items, obsolete since Emacs 23.1.
* lisp/abbrev.el (expand-abbrev):
* lisp/epg.el (epg-context): Change
'epg-passphrase-callback-function' call to 'epa-' alternative.
* lisp/eshell/em-rebind.el (eshell-cannot-leave-input-list): Don't
refer to removed function 'forward-point'.
* test/manual/etags/c-src/abbrev.c (Fexpand_abbrev):
(syms_of_abbrev): Don't run removed hook 'pre-abbrev-expand-hook'.
* lisp/international/mule.el (transform-make-coding-system-args):
Declare obsolete.
* lisp/progmodes/idlwave.el:
Update reference to removed function 'char-valid-p'.
* lisp/gnus/mml2015.el (epg-encrypt-string):
* lisp/gnus/mml1991.el (epg-make-context):
* lisp/gnus/mml-smime.el (autoload):
Remove autoload of removed 'epg-passphrase-callback-function'.
* lisp/minibuffer.el (completion-extra-properties):
Remove support for `completion-common-substring'.
* lisp/obsolete/tpu-edt.el (tpu-toggle-overwrite-mode)
Remove support for removed `spell' package.
* src/coding.c (syms_of_coding):
* doc/misc/efaq.texi:
* doc/emacs/frames.texi (Menu Mouse Clicks):
* doc/misc/url.texi (Customization): Doc fixes.
; * etc/NEWS: List removed items.
2020-08-14 13:07:26 +02:00
Andrea Corallo
12a982d978
Merge remote-tracking branch 'savannah/master' into HEAD
2020-08-09 15:03:23 +02:00
Basil L. Contovounesios
38ad404ba5
; Silence recent byte-compiler warning in subr.el
...
* lisp/subr.el (save-match-data-internal): Declare before first use.
2020-08-05 11:40:27 +01:00
Andrea Corallo
e5095f0fd3
Merge remote-tracking branch 'savannah/master' into HEAD
2020-08-02 17:36:29 +02:00
Mattias Engdegård
c48bb7deb8
Preserve match data in 'kbd'
...
* lisp/subr.el (kbd): Preserve match data since this function is
declared pure (see discussion in bug#42147).
2020-07-29 17:48:53 +02:00
Andrea Corallo
9daffe9cfe
Merge remote-tracking branch 'savannah/master' into HEAD
2020-05-24 10:20:23 +01:00
Glenn Morris
d436e4840a
Merge from origin/emacs-27
...
d6a0b66a0c
(origin/emacs-27) * lisp/subr.el (save-match-data): Clarif...
1a6d59eeba
Improve the documentation of setting up fontsets
c7737d40f2
; * etc/TODO (Ligatures): Update the entry based on recent...
fb2e34cd21
; * etc/TODO (Ligatures): Update the entry based on recent...
13b6dfd4f7
* doc/emacs/killing.texi (Rectangles): Improve indexing.
a10254dd46
Fix accessing files on networked drives on MS-Windows
2020-05-23 07:50:30 -07:00
Stefan Monnier
d6a0b66a0c
* lisp/subr.el (save-match-data): Clarify use in docstring
2020-05-23 09:33:41 -04:00
Andrea Corallo
3bcb79fdcd
Merge remote-tracking branch 'savannah/master' into HEAD
2020-05-14 07:14:23 +01:00
Stefan Monnier
68b34c6631
* lisp/subr.el (dolist, dotimes, combine-change-calls): Cosmetic tweaks
...
(dolist, dotimes): Adjust comment since testing
`lexical-binding` is supposed to be reliable.
(combine-change-calls): Add debug and indent specs.
2020-05-11 00:18:14 -04:00
Andrea Corallo
3ac3ba22be
* lisp/subr.el (called-interactively-p): Fix for native code bug#40694.
2020-04-24 19:24:07 +01:00