GNU bug report logs - #56821
[PATCH] * subr.el (buffer-match-p): Add t as trivial a condition

Previous Next

Package: emacs;

Reported by: Philip Kaludercic <philipk <at> posteo.net>

Date: Fri, 29 Jul 2022 12:02:02 UTC

Severity: normal

Tags: patch

Done: Philip Kaludercic <philipk <at> posteo.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 56821 in the body.
You can then email your comments to 56821 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#56821; Package emacs. (Fri, 29 Jul 2022 12:02:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Philip Kaludercic <philipk <at> posteo.net>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 29 Jul 2022 12:02:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Philip Kaludercic <philipk <at> posteo.net>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] * subr.el (buffer-match-p): Add t as trivial a condition
Date: Fri, 29 Jul 2022 12:01:32 +0000
[Message part 1 (text/plain, inline)]
Tags: patch


The proposed patch adds a simple condition to buffer-match-p, that had
previously either be expressed using an empty string (or any regular
expression that matches all words), an empty (and) or a symbol like
`always'.  I think it would be intuitive to add t, especially when
considering new user options like `outline-minor-mode-use-buttons' being
added that indicate they should be used as boolean value.

In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.34, cairo version 1.17.6)
 of 2022-07-29 built on rhea
Repository revision: dedd05d2831d650b07cd9f0c639bdc8eb3bef1e4
Repository branch: master
System Description: Fedora Linux 36 (Workstation Edition)

Configured using:
 'configure --with-pgtk --with-imagemagick 'CFLAGS=-march=native -O2
 -pipe' LDFLAGS=-flto'

[0001-subr.el-buffer-match-p-Add-t-as-trivial-a-condition.patch (text/patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#56821; Package emacs. (Fri, 29 Jul 2022 12:05:02 GMT) Full text and rfc822 format available.

Message #8 received at 56821 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Philip Kaludercic <philipk <at> posteo.net>
Cc: 56821 <at> debbugs.gnu.org
Subject: Re: bug#56821: [PATCH] * subr.el (buffer-match-p): Add t as trivial
 a condition
Date: Fri, 29 Jul 2022 14:04:31 +0200
Philip Kaludercic <philipk <at> posteo.net> writes:

> The proposed patch adds a simple condition to buffer-match-p, that had
> previously either be expressed using an empty string (or any regular
> expression that matches all words), an empty (and) or a symbol like
> `always'.  I think it would be intuitive to add t, especially when
> considering new user options like `outline-minor-mode-use-buttons' being
> added that indicate they should be used as boolean value.

Makes sense to me.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#56821; Package emacs. (Fri, 29 Jul 2022 15:55:01 GMT) Full text and rfc822 format available.

Message #11 received at 56821 <at> debbugs.gnu.org (full text, mbox):

From: Philip Kaludercic <philip.kaludercic <at> fau.de>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 56821 <at> debbugs.gnu.org
Subject: Re: bug#56821: [PATCH] * subr.el (buffer-match-p): Add t as trivial
 a condition
Date: Fri, 29 Jul 2022 17:54:19 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Philip Kaludercic <philipk <at> posteo.net> writes:
>
>> The proposed patch adds a simple condition to buffer-match-p, that had
>> previously either be expressed using an empty string (or any regular
>> expression that matches all words), an empty (and) or a symbol like
>> `always'.  I think it would be intuitive to add t, especially when
>> considering new user options like `outline-minor-mode-use-buttons' being
>> added that indicate they should be used as boolean value.
>
> Makes sense to me.

Ok, I would push the commit in that case.




Reply sent to Philip Kaludercic <philipk <at> posteo.net>:
You have taken responsibility. (Sat, 30 Jul 2022 10:44:02 GMT) Full text and rfc822 format available.

Notification sent to Philip Kaludercic <philipk <at> posteo.net>:
bug acknowledged by developer. (Sat, 30 Jul 2022 10:44:02 GMT) Full text and rfc822 format available.

Message #16 received at 56821-done <at> debbugs.gnu.org (full text, mbox):

From: Philip Kaludercic <philipk <at> posteo.net>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 56821-done <at> debbugs.gnu.org
Subject: Re: bug#56821: [PATCH] * subr.el (buffer-match-p): Add t as trivial
 a condition
Date: Sat, 30 Jul 2022 10:43:22 +0000
Philip Kaludercic <philip.kaludercic <at> fau.de> writes:

> Lars Ingebrigtsen <larsi <at> gnus.org> writes:
>
>> Philip Kaludercic <philipk <at> posteo.net> writes:
>>
>>> The proposed patch adds a simple condition to buffer-match-p, that had
>>> previously either be expressed using an empty string (or any regular
>>> expression that matches all words), an empty (and) or a symbol like
>>> `always'.  I think it would be intuitive to add t, especially when
>>> considering new user options like `outline-minor-mode-use-buttons' being
>>> added that indicate they should be used as boolean value.
>>
>> Makes sense to me.
>
> Ok, I would push the commit in that case.

Done.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 27 Aug 2022 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 28 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.