From: Hanno Perrey <hanno@hoowl.se>
To: 50549@debbugs.gnu.org
Subject: bug#50549: [PATCH] ; * lisp/eshell/em-unix.el (nil-blank-string): Doc fix
Date: Sun, 12 Sep 2021 13:22:12 +0200 [thread overview]
Message-ID: <e870dadd-2f10-ae7c-2dff-a68274edd379@hoowl.se> (raw)
[-- 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
next reply other threads:[~2021-09-12 11:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-12 11:22 Hanno Perrey [this message]
2021-09-12 15:22 ` bug#50549: [PATCH] ; * lisp/eshell/em-unix.el (nil-blank-string): Doc fix Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e870dadd-2f10-ae7c-2dff-a68274edd379@hoowl.se \
--to=hanno@hoowl.se \
--cc=50549@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).