From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hanno Perrey Newsgroups: gmane.emacs.bugs Subject: bug#50549: [PATCH] ; * lisp/eshell/em-unix.el (nil-blank-string): Doc fix Date: Sun, 12 Sep 2021 13:22:12 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------5C6FFC70710864315A7D5B0C" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38623"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 To: 50549@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 12 17:12:14 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mPR9S-0009oR-09 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Sep 2021 17:12:14 +0200 Original-Received: from localhost ([::1]:55928 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mPR9Q-0007VD-TA for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Sep 2021 11:12:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35150) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mPR9H-0007Uh-83 for bug-gnu-emacs@gnu.org; Sun, 12 Sep 2021 11:12:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60122) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mPR9H-0007ns-0Z for bug-gnu-emacs@gnu.org; Sun, 12 Sep 2021 11:12:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mPR9G-0003Gm-Kf for bug-gnu-emacs@gnu.org; Sun, 12 Sep 2021 11:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Hanno Perrey Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Sep 2021 15:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 50549 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.163145949412524 (code B ref -1); Sun, 12 Sep 2021 15:12:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Sep 2021 15:11:34 +0000 Original-Received: from localhost ([127.0.0.1]:43433 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mPR8m-0003Ft-Pf for submit@debbugs.gnu.org; Sun, 12 Sep 2021 11:11:34 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:45792) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mPNYw-0001Vg-KQ for submit@debbugs.gnu.org; Sun, 12 Sep 2021 07:22:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58234) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mPNYw-0003j4-Ep for bug-gnu-emacs@gnu.org; Sun, 12 Sep 2021 07:22:18 -0400 Original-Received: from minsky.hcoop.net ([104.248.1.95]:47418) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mPNYu-0006vq-Od for bug-gnu-emacs@gnu.org; Sun, 12 Sep 2021 07:22:18 -0400 Original-Received: from 194-18-252-127-no2005.tbcn.telia.com ([194.18.252.127] helo=[192.168.23.21]) by minsky.hcoop.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mPNYs-00070A-Pw for bug-gnu-emacs@gnu.org; Sun, 12 Sep 2021 07:22:14 -0400 Content-Language: en-US Received-SPF: none client-ip=104.248.1.95; envelope-from=hanno@hoowl.se; helo=minsky.hcoop.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 12 Sep 2021 11:11:31 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:214137 Archived-At: This is a multi-part message in MIME format. --------------5C6FFC70710864315A7D5B0C Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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 --------------5C6FFC70710864315A7D5B0C Content-Type: text/x-patch; charset=UTF-8; name="0001-lisp-eshell-em-unix.el-nil-blank-string-Doc-fix.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0001-lisp-eshell-em-unix.el-nil-blank-string-Doc-fix.patch" >From b07a7e07af788a50f270561bd9814654376249cd Mon Sep 17 00:00:00 2001 From: Hanno Perrey 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 --------------5C6FFC70710864315A7D5B0C--