unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Masatake YAMATO <jet@gyve.org>
Cc: emacs-devel@gnu.org
Subject: Re: bug? the position of scroll-bar
Date: Sun, 21 Sep 2003 14:51:30 +0900 (JST)	[thread overview]
Message-ID: <20030921.145130.208947415.jet@gyve.org> (raw)
In-Reply-To: <m38yoj6may.fsf@kfs-l.imdomain.dk>

> > After evaluating (scroll-bar-mode) twice, 
> > both (nth 2 (window-scroll-bars)) and (frame-parameter nil 'vertical-scroll-bars)
> > return t. So I cannot know the position of scroll-bar(left or right). I think
> > this is a bug.
> 
> A short-coming at least :-)   A value of t means to use the system default
> setting.
> 
> In any case, I have installed a fix that should help you.

Thank you. I've tested your change and I'm almost satisfied with it.
But I have still one question.

(progn (set-window-scroll-bars (selected-window) 10 'hippopotamus)
       (window-scroll-bars (selected-window)))
=> (10 2 hippopotamus nil)

hippopotamus is accepted. But M-x set-window-scroll-bars shows:


    set-window-scroll-bars is a built-in function.
    (set-window-scroll-bars WINDOW WIDTH &optional VERTICAL-TYPE HORIZONTAL-TYPE)

    Set width and type of scroll bars of window WINDOW.
    If window is nil, set scroll bars of the currently selected window.
    Second parameter WIDTH specifies the pixel width for the scroll bar;
    this is automatically adjusted to a multiple of the frame column width.
    Third parameter VERTICAL-TYPE specifies the type of the vertical scroll
    bar: left, right, or nil.
    ^^^^^^^^^^^^^^^^^^^^^^^^^
    A width of nil and type of t means to use the frame's corresponding value.


Should set-window-scroll-bars return an error if hippopotamus is specified?

I've tried to add following code 

  if (!(EQ (vertical_type, Qnil)
	|| EQ (vertical_type, Qleft) 
	|| EQ (vertical_type, Qright)))
    error ("Invalid type of vertical scroll bar");

to DEFUN ("set-window-scroll-bars", Fset_window_scroll_bars, Sset_window_scroll_bars,..
but this addition causes segmentation fault during make command running.

Masatake YAMATO

  reply	other threads:[~2003-09-21  5:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-17 11:48 bug? the position of scroll-bar Masatake YAMATO
2003-09-21  0:02 ` Kim F. Storm
2003-09-21  5:51   ` Masatake YAMATO [this message]
2003-09-22  7:56     ` Kim F. Storm
2003-09-22  9:22       ` Masatake YAMATO
2003-09-22 12:23         ` Kim F. Storm
2003-09-21 22:34   ` 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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=20030921.145130.208947415.jet@gyve.org \
    --to=jet@gyve.org \
    --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 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).