GNU bug report logs - #6931
24.0.50; fringe-mode

Previous Next

Package: emacs;

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

Date: Fri, 27 Aug 2010 22:51:02 UTC

Severity: wishlist

Found in version 24.0.50

Fixed in version 28.1

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 6931 in the body.
You can then email your comments to 6931 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 owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6931; Package emacs. (Fri, 27 Aug 2010 22:51:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Drew Adams" <drew.adams <at> oracle.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 27 Aug 2010 22:51:02 GMT) Full text and rfc822 format available.

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

From: "Drew Adams" <drew.adams <at> oracle.com>
To: <bug-gnu-emacs <at> gnu.org>
Subject: 24.0.50; fringe-mode
Date: Fri, 27 Aug 2010 15:50:32 -0700
Command `fringe-mode' is not normal.  It does not act as a normal mode
command.  And its variable, `fringe-mode', does not act as a normal mode
variable.  This is not good for users or for Lisp coders.  If you are
going to keep this behavior, then do not use "-mode" in the name at all
- call it `fringe-mess' or something instead.
 
Code that tests a mode variable should be able to treat a value of nil
as meaning that the mode is turned off.  In this case, that would mean
there is no fringe.  Not so, however.
 
If you want the value of variable `fringe-mode' to provide the fringe
width also, then 0 and nil should give the same info: fringe is not
shown.  If you want a special value that means "the default width", then
use the symbol `default' or something - do not use nil to mean a default
width of 8.
 
This command and its variable are a mess.
 

In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
 of 2010-08-16 on 3249CTO
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.4) --no-opt --cflags
-Ic:/imagesupport/include'
 





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#6931; Package emacs. (Wed, 27 Apr 2016 22:49:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: "Drew Adams" <drew.adams <at> oracle.com>
Cc: 6931 <at> debbugs.gnu.org
Subject: Re: bug#6931: 24.0.50; fringe-mode
Date: Thu, 28 Apr 2016 00:48:27 +0200
"Drew Adams" <drew.adams <at> oracle.com> writes:

> Command `fringe-mode' is not normal.  It does not act as a normal mode
> command.  And its variable, `fringe-mode', does not act as a normal mode
> variable.  This is not good for users or for Lisp coders.  If you are
> going to keep this behavior, then do not use "-mode" in the name at all
> - call it `fringe-mess' or something instead.
>
> Code that tests a mode variable should be able to treat a value of nil
> as meaning that the mode is turned off.  In this case, that would mean
> there is no fringe.  Not so, however.
>
> If you want the value of variable `fringe-mode' to provide the fringe
> width also, then 0 and nil should give the same info: fringe is not
> shown.  If you want a special value that means "the default width", then
> use the symbol `default' or something - do not use nil to mean a default
> width of 8.
>
> This command and its variable are a mess.

Yes, it's pretty confusing.  Perhaps the `fringe-mode' command should be
renamed to `choose-fringe-state' or something?

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#6931; Package emacs. (Thu, 03 Jun 2021 08:22:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: "Drew Adams" <drew.adams <at> oracle.com>
Cc: 6931 <at> debbugs.gnu.org
Subject: Re: bug#6931: 24.0.50; fringe-mode
Date: Thu, 03 Jun 2021 10:20:52 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Yes, it's pretty confusing.  Perhaps the `fringe-mode' command should be
> renamed to `choose-fringe-state' or something?

I think that would have been preferable, but since this is both a user
option and a command, renaming them will be prohibitively expensive
(i.e., it'll affect a lot of users, since presumably many of them will
have `fringe-mode' settings in their .emacs files).

So instead I've noted (in both doc strings) that these aren't modes.

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




bug marked as fixed in version 28.1, send any further explanations to 6931 <at> debbugs.gnu.org and "Drew Adams" <drew.adams <at> oracle.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 03 Jun 2021 08:22: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, 01 Jul 2021 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 292 days ago.

Previous Next


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