From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anders Lindgren Newsgroups: gmane.emacs.devel Subject: Re: NS port horizontal scroll-bars Date: Tue, 26 Apr 2016 07:39:57 +0200 Message-ID: References: <20160424160123.GA37657@breton.local> <20160425203420.GA37698@breton.local> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11428a163a0ca505315cb999 X-Trace: ger.gmane.org 1461649225 7488 80.91.229.3 (26 Apr 2016 05:40:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Apr 2016 05:40:25 +0000 (UTC) Cc: emacs-devel To: Alan Third Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 26 07:40:18 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1auvjN-0000rH-Hk for ged-emacs-devel@m.gmane.org; Tue, 26 Apr 2016 07:40:17 +0200 Original-Received: from localhost ([::1]:36315 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1auvjM-0004Rx-Dx for ged-emacs-devel@m.gmane.org; Tue, 26 Apr 2016 01:40:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54391) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1auvj5-0004Mr-RS for emacs-devel@gnu.org; Tue, 26 Apr 2016 01:40:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1auvj5-00081g-36 for emacs-devel@gnu.org; Tue, 26 Apr 2016 01:39:59 -0400 Original-Received: from mail-vk0-x22c.google.com ([2607:f8b0:400c:c05::22c]:35341) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1auvj4-00081W-UT for emacs-devel@gnu.org; Tue, 26 Apr 2016 01:39:59 -0400 Original-Received: by mail-vk0-x22c.google.com with SMTP id u23so4816734vkb.2 for ; Mon, 25 Apr 2016 22:39:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=NRK46TWGuHa95U3Ka2r8aKCoVF3Zrhtg1uCp30olB/4=; b=K3JfPONKmoO5RFrtaS4NP9WuOKFqQW+N2wVrd9t4qaOw9acm3KCJNuzPgH8sdbE38z YfQfmhgK/asvYn2N8IFC6vYDauKUOR6iex4PZHNJh2A5nbyuqL7z1ihKGUckRLAqPx+6 gzSe5mq4T/m4QBhaJFs8S/lDpyfDriSgAcV04qomXrEvFWwaexY775lvCUpX7rcNwWae gtBKJuxeZJQwBbH6jS5x5w1H0hGWK5EdlbTIHf2fzSsmvPAZUagi9lA1zFVAQUQ3TGT/ RXzysIdyVSAKSJAfSnIOcBe8RFnMiTgdB7SERkQNrEoZ/3SCEf3JEySw75NJyASpmIwl Um7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=NRK46TWGuHa95U3Ka2r8aKCoVF3Zrhtg1uCp30olB/4=; b=PQxYdKkqu45vjgDRe5KNgCEjaYTDWI/NlZ0DMg3Zd8lzNcAbligHyT0EWoUdyUN6Z7 WL+2Y6MCXcx7t5kYkZnJhwwn027Qf5Cl2quAv1ja8uJYo/Cjgw65Q2w4wDq2TsPLmnZx qvyRYVIcZVhefLdZ5DQIAtY5ht6E5o5mEkpDKrw5xXnceFga9zZHLza+no9zlghClxEI TIHqxQdP3pDjTdMQjnJy/7xunGgXkypPhBburOz/whkVlHEG3lPI1/rtsOr/SZhf/Y9+ mzZuqUW2/Tc/cnWp6Xw1AyfjJwHfttWn/9TWVCaYV9h+wl2SfuG8obEZBSS9EmOBT7aH tJqA== X-Gm-Message-State: AOPr4FXiPsbyfqcZT40VqvmWLHs+rTjMf8fqjR7UiReTMcfd+Dtkw3pNWsrsae2eVY7LZGtIM0DvHh6gLu5Xdg== X-Received: by 10.31.3.89 with SMTP id 86mr322006vkd.26.1461649197893; Mon, 25 Apr 2016 22:39:57 -0700 (PDT) Original-Received: by 10.31.214.131 with HTTP; Mon, 25 Apr 2016 22:39:57 -0700 (PDT) In-Reply-To: <20160425203420.GA37698@breton.local> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400c:c05::22c X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:203321 Archived-At: --001a11428a163a0ca505315cb999 Content-Type: text/plain; charset=UTF-8 Hi! > Yup, that's it exactly! > Great! > Now I just need to work out how to turn the values I get into columns > that I can scroll the screen to. > > Is there a function that returns the width of the longest visible > line, or the width of the buffer with truncated lines? I can't find > anything like that. > I don't know of any such function either. However, I noticed that the scroll bar change length depending on the content of the window. So, presumably, you get all relevant information when `ns_set_horizontal_scroll_bar' is called. -- Anders --001a11428a163a0ca505315cb999 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi!
=C2=A0
Yup, that's it exactly!
=

Great!
=C2=A0
Now I just need to work out how to turn the values I get into columns that I can scroll the screen to.

Is there a function that returns the width of the longest visible
line, or the width of the buffer with truncated lines? I can't find
anything like that.

I don't know of= any such function either. However, I noticed that the scroll bar change le= ngth depending on the content of the window. So, presumably, you get all re= levant information when `ns_set_horizontal_scroll_bar' is called.
=
=C2=A0
=C2=A0 =C2=A0 -- Anders

--001a11428a163a0ca505315cb999--