unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Third <alan@idiocy.org>
To: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Cc: martin rudalics <rudalics@gmx.at>,
	Anders Lindgren <andlind@gmail.com>,
	emacs-devel <emacs-devel@gnu.org>
Subject: Re: NS port horizontal scroll-bars
Date: Tue, 26 Apr 2016 18:07:32 +0100	[thread overview]
Message-ID: <20160426170732.GA14438@breton.local> (raw)
In-Reply-To: <wltwiofw48.wl%mituharu@math.s.chiba-u.ac.jp>

On Tue, Apr 26, 2016 at 08:27:35PM +0900, YAMAMOTO Mitsuharu wrote:
> >>>>> On Tue, 26 Apr 2016 10:51:57 +0100, Alan Third <alan@idiocy.org> said:
> 
> > It's actually the other end of the process that I'm struggling
> > with. I write pixel values for dragging the scroll-bar into an
> > emacs_event struct (location of mouse in scroll-bar and total length
> > of scroll-bar), and when that data pops back out in scroll-bar.el it
> > doesn't seem to be any use to the standard scroll-bar functions.
> 
> Ah, that reminds me of something.  You can see how the Mac port
> handles that (in the `work' branch based on Emacs 25.0.93 pretest).
> 
<snip code>

That's cracked it! Thanks! I've now got the horizontal scroll bar
working with the standard handler.

> The Mac port (and its predecessors) has been using the standard
> toolkit scroll bar handler in scroll-bar.el as it is, and there has
> been no problem even in the old OS X versions having the directional
> arrows.

I'm none-the-wiser as to why the NS port is using a custom handler
then. I've discovered that it's got a bug where scrolling an
unselected window also scrolls the selected window if they're
displaying the same buffer.

I'm feeling inclined towards trying to get rid of the custom handler
altogether.
-- 
Alan Third



  reply	other threads:[~2016-04-26 17:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-24 16:01 NS port horizontal scroll-bars Alan Third
2016-04-24 17:28 ` Anders Lindgren
2016-04-25 20:34   ` Alan Third
2016-04-26  5:39     ` Anders Lindgren
2016-04-26  6:35     ` martin rudalics
2016-04-26  9:51       ` Alan Third
2016-04-26 11:27         ` YAMAMOTO Mitsuharu
2016-04-26 17:07           ` Alan Third [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-05-01 14:40 Angelo Graziosi

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=20160426170732.GA14438@breton.local \
    --to=alan@idiocy.org \
    --cc=andlind@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=mituharu@math.s.chiba-u.ac.jp \
    --cc=rudalics@gmx.at \
    /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).