* bug#50549: [PATCH] ; * lisp/eshell/em-unix.el (nil-blank-string): Doc fix
@ 2021-09-12 11:22 Hanno Perrey
2021-09-12 15:22 ` Lars Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: Hanno Perrey @ 2021-09-12 11:22 UTC (permalink / raw)
To: 50549
[-- Attachment #1: Type: text/plain, Size: 257 bytes --]
Hej,
the attached patch corrects the documentation for nil-blank-string in
lisp/eshell/em-unix.el: the function returns nil if STRING contains only
blank characters, not *non*-blank characters as it says in the current
master.
Thanks and cheers,
Hanno
[-- Attachment #2: 0001-lisp-eshell-em-unix.el-nil-blank-string-Doc-fix.patch --]
[-- Type: text/x-patch, Size: 818 bytes --]
From b07a7e07af788a50f270561bd9814654376249cd Mon Sep 17 00:00:00 2001
From: Hanno Perrey <hanno@hoowl.se>
Date: Sun, 12 Sep 2021 13:15:11 +0200
Subject: [PATCH] ; * lisp/eshell/em-unix.el (nil-blank-string): Doc fix
---
lisp/eshell/em-unix.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/eshell/em-unix.el b/lisp/eshell/em-unix.el
index 7e48a9c757..5b400c74fc 100644
--- a/lisp/eshell/em-unix.el
+++ b/lisp/eshell/em-unix.el
@@ -968,7 +968,7 @@ eshell-diff-quit
(set-window-configuration eshell-diff-window-config)))
(defun nil-blank-string (string)
- "Return STRING, or nil if STRING contains only non-blank characters."
+ "Return STRING, or nil if STRING contains only blank characters."
(cond
((string-match "[^[:blank:]]" string) string)
(nil)))
--
2.33.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#50549: [PATCH] ; * lisp/eshell/em-unix.el (nil-blank-string): Doc fix
2021-09-12 11:22 bug#50549: [PATCH] ; * lisp/eshell/em-unix.el (nil-blank-string): Doc fix Hanno Perrey
@ 2021-09-12 15:22 ` Lars Ingebrigtsen
0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2021-09-12 15:22 UTC (permalink / raw)
To: Hanno Perrey; +Cc: 50549
Hanno Perrey <hanno@hoowl.se> writes:
> the attached patch corrects the documentation for nil-blank-string in
> lisp/eshell/em-unix.el: the function returns nil if STRING contains
> only blank characters, not *non*-blank characters as it says in the
> current master.
Thanks; pushed to Emacs 28.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-09-12 15:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-12 11:22 bug#50549: [PATCH] ; * lisp/eshell/em-unix.el (nil-blank-string): Doc fix Hanno Perrey
2021-09-12 15:22 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).