GNU bug report logs - #17679
Wrong :type for `gnus-signature-limit'

Previous Next

Packages: emacs, gnus;

Reported by: Samuel Bronson <naesten <at> gmail.com>

Date: Tue, 3 Jun 2014 17:53:02 UTC

Severity: normal

Tags: fixed

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

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 17679 in the body.
You can then email your comments to 17679 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 bugs <at> gnus.org:
bug#17679; Package gnus. (Tue, 03 Jun 2014 17:53:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Samuel Bronson <naesten <at> gmail.com>:
New bug report received and forwarded. Copy sent to bugs <at> gnus.org. (Tue, 03 Jun 2014 17:53:02 GMT) Full text and rfc822 format available.

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

From: Samuel Bronson <naesten <at> gmail.com>
To: submit <at> debbugs.gnu.org (The Gnus Bugfixing Girls + Boys)
Subject: Wrong :type for `gnus-signature-limit'
Date: Tue, 03 Jun 2014 13:52:38 -0400
[Message part 1 (text/plain, inline)]
I see this in `gnus-art.el':
[Message part 2 (text/x-emacs-lisp, inline)]
(defcustom gnus-signature-limit nil
  "Provide a limit to what is considered a signature.
If it is a number, no signature may not be longer (in characters) than
that number.  If it is a floating point number, no signature may be
longer (in lines) than that number.  If it is a function, the function
will be called without any parameters, and if it returns nil, there is
no signature in the buffer.  If it is a string, it will be used as a
regexp.  If it matches, the text in question is not a signature.

This can also be a list of the above values."
  :type '(choice (const nil)
		 (integer :value 200)
		 (number :value 4.0)
		 function
		 (regexp :value ".*"))
  :group 'gnus-article-signature)
[Message part 3 (text/plain, inline)]
I can't help but notice that the :type neglects the case "This can also
be a list of the above values." from the docstring.

Gnus v5.13
GNU Emacs 24.3.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2013-12-22 on binet, modified by Debian

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!

Information forwarded to bugs <at> gnus.org:
bug#17679; Package gnus. (Wed, 25 Jan 2017 17:33:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Samuel Bronson <naesten <at> gmail.com>
Cc: 17679 <at> debbugs.gnu.org
Subject: Re: bug#17679: Wrong :type for `gnus-signature-limit'
Date: Wed, 25 Jan 2017 18:32:03 +0100
Samuel Bronson <naesten <at> gmail.com> writes:

> (defcustom gnus-signature-limit nil
>   "Provide a limit to what is considered a signature.
> If it is a number, no signature may not be longer (in characters) than
> that number.  If it is a floating point number, no signature may be
> longer (in lines) than that number.  If it is a function, the function
> will be called without any parameters, and if it returns nil, there is
> no signature in the buffer.  If it is a string, it will be used as a
> regexp.  If it matches, the text in question is not a signature.
>
> This can also be a list of the above values."
>   :type '(choice (const nil)
> 		 (integer :value 200)
> 		 (number :value 4.0)
> 		 function
> 		 (regexp :value ".*"))
>   :group 'gnus-article-signature)
>
> I can't help but notice that the :type neglects the case "This can also
> be a list of the above values." from the docstring.

OK; fixed in the Emacs master now.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug reassigned from package 'gnus' to 'emacs,gnus'. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 25 Jan 2017 17:33:04 GMT) Full text and rfc822 format available.

bug No longer marked as found in versions 5.13. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 25 Jan 2017 17:33:04 GMT) Full text and rfc822 format available.

Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 25 Jan 2017 17:34:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 17679 <at> debbugs.gnu.org and Samuel Bronson <naesten <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 25 Jan 2017 17:34:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 23 Feb 2017 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 8 years and 115 days ago.

Previous Next


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