GNU bug report logs - #38796
26.3; `view-lossage': Use a variable for the lossage limit

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Sun, 29 Dec 2019 17:06:01 UTC

Severity: wishlist

Tags: patch

Found in version 26.3

Done: Tino Calancha <tino.calancha <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Drew Adams <drew.adams <at> oracle.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>, Tino Calancha <tino.calancha <at> gmail.com>
Cc: Stefan Monnier <monnier <at> iro.umontreal.ca>, 38796 <at> debbugs.gnu.org, uyennhi.qm <at> gmail.com
Subject: bug#38796: 26.3; `view-lossage': Use a variable for the lossage limit
Date: Sat, 22 Aug 2020 15:54:09 -0700 (PDT)
> I thought it sounded quite natural to use the same mechanism to switch
> lossage logging off.  `(update-lossage-size 0)' seems like a natural
> thing to do to have no lossage.

FWIW, I said the same thing:

https://debbugs.gnu.org/cgi/bugreport.cgi?bug=38796#28

It's not unusual or weird for a zero-valued size
parameter to have such an effect. 

> >     Users can still safely modify the lossage limit with the
> >     command `update-lossage-size'.  For convenience, add
> >     a function `lossage-size' to return the current limit.
> 
> Hm...  other functions use the convention of having a zero-parameter
> function return the data, and having a parameter to set it.  So
> (lossage-size 500) could set it and (lossage-size) could return the
> current size?

FWIW, most `set-*' functions are commands.
And a command is what we should shoot for here.




This bug report was last modified 4 years and 241 days ago.

Previous Next


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