From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: NS port horizontal scroll-bars Date: Mon, 25 Apr 2016 21:34:20 +0100 Message-ID: <20160425203420.GA37698@breton.local> References: <20160424160123.GA37657@breton.local> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1461616487 24163 80.91.229.3 (25 Apr 2016 20:34:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Apr 2016 20:34:47 +0000 (UTC) Cc: emacs-devel To: Anders Lindgren Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 25 22:34:45 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 1aunDN-0004FK-JX for ged-emacs-devel@m.gmane.org; Mon, 25 Apr 2016 22:34:41 +0200 Original-Received: from localhost ([::1]:34094 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aunDN-0001YE-19 for ged-emacs-devel@m.gmane.org; Mon, 25 Apr 2016 16:34:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aunD6-0001Wu-Qp for emacs-devel@gnu.org; Mon, 25 Apr 2016 16:34:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aunD6-0001L5-2Y for emacs-devel@gnu.org; Mon, 25 Apr 2016 16:34:24 -0400 Original-Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]:33321) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aunD5-0001KW-SY for emacs-devel@gnu.org; Mon, 25 Apr 2016 16:34:24 -0400 Original-Received: by mail-wm0-x233.google.com with SMTP id 127so25617701wmz.0 for ; Mon, 25 Apr 2016 13:34:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=dE7JFU4fgWK/D3dKm/NdaHcj+Wq05s7NWYRWERJweio=; b=X9ma4GZMlebZ5ZfjBBz0F0DJqh3Z0Oz6C7qadKyRWEiAG314cG9WAyXmCfgJT+igDe OX4JOaPUUxUAY2W8E6I1aQeoCsNgpnpvcFj7FJelAknddexxgInM1MaGyB9Ojo2z5VXb CUD1ZUdLKCEKWT8S8+rHeGb3/WMINl4pscGuBx4MKluEZ7Dfqj9q6p0i+N2LG58fEGyH KUU+T+WR5oOkuZ+3hHi4Muaao2+fhH//JES/vsP7THVHLdaNvF471tMZ19vaQC6F4LWG Vn7auRtHxGajKrrKXLUo0/xImyghdbsw+pUhfKMcLU6s1H7xeyZ6e/2ENRro/Bw0uoy2 NNTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=dE7JFU4fgWK/D3dKm/NdaHcj+Wq05s7NWYRWERJweio=; b=OnWeaVkYlM/C+BuWG0Duyh/4kHhkJG1spK516+RFw4toMkckJCnhke/dn2eyNMPUY0 z3XFHJ7ZJlBv6bz7lFkou9gmLCYR522p1uHj7eO+FwJuookmQUmZh0kL2w1+9H1bmeem c6t7xQTwBn8r7blrBEDbnyJja+SmVEzHLwo0yUE87l+Qotmona9d+ujSDD4h+2qfxEN+ /FDEmGjpOOKrsaGhp0be1g7LVgZtj4M6yZqzZN8Ik3pphmBDalV3/7JUkXnUihOPJ0C9 tzk6mFk1Z7TR+vhN/9I6cj1c75ZD3qAO4LWW8LapOsJ9vuV8LILspWiuykilBsksUGkm nFCw== X-Gm-Message-State: AOPr4FUj3nJ9ExZTG2Hr65YqoBRu4mmOxQExXX358cqobruftGAEqKitX4fwrwvq2tJe4g== X-Received: by 10.194.179.168 with SMTP id dh8mr41966894wjc.130.1461616463011; Mon, 25 Apr 2016 13:34:23 -0700 (PDT) Original-Received: from breton.local (ip6-2001-08b0-03f8-8129-9532-5983-3a57-0360.holly.idiocy.org. [2001:8b0:3f8:8129:9532:5983:3a57:360]) by smtp.gmail.com with ESMTPSA id c85sm24565605wmd.0.2016.04.25.13.34.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Apr 2016 13:34:22 -0700 (PDT) Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::233 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:203309 Archived-At: On Sun, Apr 24, 2016 at 07:28:58PM +0200, Anders Lindgren wrote: > I think you simply haven't mapped the horizontal events to anything. > ns-win.el contains the following: > > (global-set-key [vertical-scroll-bar down-mouse-1] > 'ns-handle-scroll-bar-event) > (global-unset-key [vertical-scroll-bar mouse-1]) > (global-unset-key [vertical-scroll-bar drag-mouse-1]) Yup, that's it exactly! 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. -- Alan Third