all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Simon Josefsson <jas@extundo.com>
Cc: emacs-devel@gnu.org
Subject: Re: Fringes again
Date: Wed, 22 May 2002 10:54:10 +0200	[thread overview]
Message-ID: <iluznysbm19.fsf@latte.josefsson.org> (raw)
In-Reply-To: <buoit5hvuti.fsf@mcspd15.ucom.lsi.nec.co.jp> (Miles Bader's message of "22 May 2002 10:24:09 +0900")

[-- Attachment #1: Type: text/plain, Size: 2095 bytes --]

Miles Bader <miles@lsi.nec.co.jp> writes:

> Simon Josefsson <jas@extundo.com> writes:
>> I've now implemented one approach below.  It makes the user interface
>> of fringe.el similar as mouse-avoidance-mode.el.  Is this OK?
>
> I like that much better.
>
> Perhaps `left' and `right' should be called `left-only' and `right-only'
> to emphasize what they do (when I first looked at the choices, and saw
> `left', I immediately thought `left what?' -- even though I already knew
> what to expect!).

Yup, fixed.

> I also think it would be clearer to use `both' instead of `default',
> but that would actually be a slight misnomer, since the implemenation
> actually does just revert to the default, and that might make the name
> wrong if the default is ever changed.  What do you think?

It would be a misnomer when the new per-buffer or per-window code gets
added which makes it possible to fine-tune the fringe.  OTOH I kind
off like both better as well, but I think default is safer.

>> It is consistent with how `toggle-scroll-bar' and `scroll-bar-mode'
>> already behaves.  The docstring and the prompt triggered by invoking
>> `toggle-fringe' and `fringe-mode' should now be clear.  Is this OK, or
>> can you suggest alternative names?
>
> Well, I like the prompting behavior better, and Richard approved the
> name `toggle-fringe', but I'm not sure the name `toggle-fringe' makes
> much sense if it doesn't actually `toggle'... :-(
>
> One alternative would be to use the name `set-fringe-mode' to set the
> per-frame fringe style -- this is also consistent with existing
> practice, e.g., `set-default-font', `set-background-color', etc., and
> with this name, prompting for a value actually make sense.  :-)

I changed it to set-fringe-style.

> A last niggling point is that the (interactive ...) prompting code
> should probably be put into a function, since it's duplicated in two
> commands now...

Right, done.

Does anyone have any opinions on the attached code?

I have one remaining question: How do you find out the default fringe
width?  Right now it is hard coded to 10.


[-- Attachment #2: fringe.el --]
[-- Type: application/emacs-lisp, Size: 5744 bytes --]

  parent reply	other threads:[~2002-05-22  8:54 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-20 20:03 Fringes again Simon Josefsson
2002-05-20 23:37 ` Miles Bader
2002-05-21 19:12   ` Richard Stallman
2002-05-21 20:53   ` Simon Josefsson
2002-05-21 21:40     ` Thien-Thi Nguyen
2002-05-22  8:20       ` Simon Josefsson
2002-05-22  1:24     ` Miles Bader
2002-05-22  3:21       ` Eli Zaretskii
2002-05-22  3:40         ` Miles Bader
2002-05-22  8:54       ` Simon Josefsson [this message]
2002-05-24  0:07         ` Miles Bader
2002-05-24  9:47           ` Simon Josefsson
2002-05-24 23:00             ` Kim F. Storm
2002-05-24 23:48               ` Simon Josefsson
2002-05-25 23:06                 ` Kim F. Storm
2002-05-25 23:15                   ` Simon Josefsson
2002-05-21 15:57 ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=iluznysbm19.fsf@latte.josefsson.org \
    --to=jas@extundo.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.