unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* indicate-buffer-boundaries
@ 2004-09-24 23:40 Richard Stallman
  2004-09-25 23:50 ` indicate-buffer-boundaries Kim F. Storm
  0 siblings, 1 reply; 9+ messages in thread
From: Richard Stallman @ 2004-09-24 23:40 UTC (permalink / raw)


The interface for indicate-buffer-boundaries is really kludgy.
I cleaned up the doc for it, but I would really rather make
it simpler.

A good way to make it simpler is to use an alist.  Pick four suitable
symbols, one for each of these icons.  I suggest `top', `bottom', `up'
and `down'.  t can serve as a default for all four.  In the alist,
associate these symbols with either `left', `right' or `nil'.

Instead of current (t .  right), we would use ((top . left) (t . right))
or ((top . left) (bottom . right) (up . right) (down . right))
Instead of current (left . nil), we would use ((top . left) (bottom . left)).

Isn't that clearer?  It is much less ad-hoc.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: indicate-buffer-boundaries
  2004-09-24 23:40 indicate-buffer-boundaries Richard Stallman
@ 2004-09-25 23:50 ` Kim F. Storm
  2004-11-14 16:38   ` indicate-buffer-boundaries Lars Hansen
  0 siblings, 1 reply; 9+ messages in thread
From: Kim F. Storm @ 2004-09-25 23:50 UTC (permalink / raw)
  Cc: emacs-devel

Richard Stallman <rms@gnu.org> writes:

> The interface for indicate-buffer-boundaries is really kludgy.
> I cleaned up the doc for it, but I would really rather make
> it simpler.
>
> A good way to make it simpler is to use an alist.  Pick four suitable
> symbols, one for each of these icons.  I suggest `top', `bottom', `up'
> and `down'.  t can serve as a default for all four.  In the alist,
> associate these symbols with either `left', `right' or `nil'.
>
> Instead of current (t .  right), we would use ((top . left) (t . right))
> or ((top . left) (bottom . right) (up . right) (down . right))
> Instead of current (left . nil), we would use ((top . left) (bottom . left)).
>
> Isn't that clearer?  It is much less ad-hoc.

That would be cleaner, yes.  

I will change it.

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: indicate-buffer-boundaries
  2004-09-25 23:50 ` indicate-buffer-boundaries Kim F. Storm
@ 2004-11-14 16:38   ` Lars Hansen
  0 siblings, 0 replies; 9+ messages in thread
From: Lars Hansen @ 2004-11-14 16:38 UTC (permalink / raw)
  Cc: emacs-devel

It seems to me that indicate-buffer-boundaries does not work as 
documented. According to the docstring marks should be visible if if the 
value is non-nil. But actually the value has to be 'left, 'right or a cons.

BTW, shouldn't this variable be customizable?

^ permalink raw reply	[flat|nested] 9+ messages in thread

* indicate-buffer-boundaries
@ 2004-11-21 17:35 Andreas Schwab
  2004-11-21 20:36 ` indicate-buffer-boundaries Lars Hansen
  2004-11-25  2:21 ` indicate-buffer-boundaries Richard Stallman
  0 siblings, 2 replies; 9+ messages in thread
From: Andreas Schwab @ 2004-11-21 17:35 UTC (permalink / raw)
  Cc: emacs-devel

When indicate-buffer-boundaries is non-nil but neither 'left nor 'right
nor an alist, that does not show any boundary indicators any more.  Is
that intented?  The doc string suggests that any non-nil value should have
an effect, and I would expect setting it to t would choose some default.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: indicate-buffer-boundaries
  2004-11-21 17:35 indicate-buffer-boundaries Andreas Schwab
@ 2004-11-21 20:36 ` Lars Hansen
  2004-11-21 23:12   ` indicate-buffer-boundaries Andreas Schwab
  2004-11-28  0:58   ` indicate-buffer-boundaries Kim F. Storm
  2004-11-25  2:21 ` indicate-buffer-boundaries Richard Stallman
  1 sibling, 2 replies; 9+ messages in thread
From: Lars Hansen @ 2004-11-21 20:36 UTC (permalink / raw)
  Cc: Andreas Schwab, emacs-devel

Andreas Schwab wrote:

> When indicate-buffer-boundaries is non-nil but neither 'left nor 'right
> nor an alist, that does not show any boundary indicators any more.  Is
> that intented?  The doc string suggests that any non-nil value should have
> an effect, and I would expect setting it to t would choose some default.

I asked the same question 10 days ago (this thread).
And I think the variable should be made customizable and should be added 
to the Options->Show/Hide menu.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: indicate-buffer-boundaries
  2004-11-21 20:36 ` indicate-buffer-boundaries Lars Hansen
@ 2004-11-21 23:12   ` Andreas Schwab
  2004-11-28  0:58   ` indicate-buffer-boundaries Kim F. Storm
  1 sibling, 0 replies; 9+ messages in thread
From: Andreas Schwab @ 2004-11-21 23:12 UTC (permalink / raw)
  Cc: emacs-devel, Kim F. Storm

Lars Hansen <larsh@math.ku.dk> writes:

> Andreas Schwab wrote:
>
>> When indicate-buffer-boundaries is non-nil but neither 'left nor 'right
>> nor an alist, that does not show any boundary indicators any more.  Is
>> that intented?  The doc string suggests that any non-nil value should have
>> an effect, and I would expect setting it to t would choose some default.
>
> I asked the same question 10 days ago (this thread).

Sorry, I missed that.

> And I think the variable should be made customizable

I agree, but first we should agree upon the acceptable values.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: indicate-buffer-boundaries
  2004-11-21 17:35 indicate-buffer-boundaries Andreas Schwab
  2004-11-21 20:36 ` indicate-buffer-boundaries Lars Hansen
@ 2004-11-25  2:21 ` Richard Stallman
  2004-11-25 15:35   ` indicate-buffer-boundaries Lars Hansen
  1 sibling, 1 reply; 9+ messages in thread
From: Richard Stallman @ 2004-11-25  2:21 UTC (permalink / raw)
  Cc: emacs-devel, storm

    When indicate-buffer-boundaries is non-nil but neither `left' nor `right'
    nor an alist, that does not show any boundary indicators any more.

When I try setting it to t, it shows the boundary indicators on the left,
as the comments in the code say.

I will clarify this in the doc string.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: indicate-buffer-boundaries
  2004-11-25  2:21 ` indicate-buffer-boundaries Richard Stallman
@ 2004-11-25 15:35   ` Lars Hansen
  0 siblings, 0 replies; 9+ messages in thread
From: Lars Hansen @ 2004-11-25 15:35 UTC (permalink / raw)
  Cc: Andreas Schwab, storm, emacs-devel

Richard Stallman wrote:

>    When indicate-buffer-boundaries is non-nil but neither `left' nor `right'
>    nor an alist, that does not show any boundary indicators any more.
>
>When I try setting it to t, it shows the boundary indicators on the left,
>as the comments in the code say.
>  
>
Yes, now it works as documented, Kim fixed it 3 days ago (2004-11-22).

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: indicate-buffer-boundaries
  2004-11-21 20:36 ` indicate-buffer-boundaries Lars Hansen
  2004-11-21 23:12   ` indicate-buffer-boundaries Andreas Schwab
@ 2004-11-28  0:58   ` Kim F. Storm
  1 sibling, 0 replies; 9+ messages in thread
From: Kim F. Storm @ 2004-11-28  0:58 UTC (permalink / raw)
  Cc: Andreas Schwab, emacs-devel

Lars Hansen <larsh@math.ku.dk> writes:

> Andreas Schwab wrote:
>
>> When indicate-buffer-boundaries is non-nil but neither 'left nor 'right
>> nor an alist, that does not show any boundary indicators any more.  Is
>> that intented?  The doc string suggests that any non-nil value should have
>> an effect, and I would expect setting it to t would choose some default.
>
> I asked the same question 10 days ago (this thread).
> And I think the variable should be made customizable and should be
> added to the Options->Show/Hide menu.

Done.  See  Options > Show/Hide > Fringe > Indicators

--
Kim F. Storm <storm@cua.dk> http://www.cua.dk

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-11-28  0:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-24 23:40 indicate-buffer-boundaries Richard Stallman
2004-09-25 23:50 ` indicate-buffer-boundaries Kim F. Storm
2004-11-14 16:38   ` indicate-buffer-boundaries Lars Hansen
  -- strict thread matches above, loose matches on Subject: below --
2004-11-21 17:35 indicate-buffer-boundaries Andreas Schwab
2004-11-21 20:36 ` indicate-buffer-boundaries Lars Hansen
2004-11-21 23:12   ` indicate-buffer-boundaries Andreas Schwab
2004-11-28  0:58   ` indicate-buffer-boundaries Kim F. Storm
2004-11-25  2:21 ` indicate-buffer-boundaries Richard Stallman
2004-11-25 15:35   ` indicate-buffer-boundaries Lars Hansen

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).