From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.devel Subject: Re: tabulated-list: extend truncation into next align-right col Date: Wed, 02 Nov 2016 17:20:57 +0900 Message-ID: <87h97qb8d2.fsf@gmail.com> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1478074886 30549 195.159.176.226 (2 Nov 2016 08:21:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 2 Nov 2016 08:21:26 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: Tino Calancha , Emacs developers To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 02 09:21:22 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c1qnK-0005rH-G8 for ged-emacs-devel@m.gmane.org; Wed, 02 Nov 2016 09:21:14 +0100 Original-Received: from localhost ([::1]:53294 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1qnI-0003kC-7L for ged-emacs-devel@m.gmane.org; Wed, 02 Nov 2016 04:21:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56308) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1qnB-0003k7-EK for emacs-devel@gnu.org; Wed, 02 Nov 2016 04:21:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c1qn8-0004vA-Af for emacs-devel@gnu.org; Wed, 02 Nov 2016 04:21:05 -0400 Original-Received: from mail-pf0-x22e.google.com ([2607:f8b0:400e:c00::22e]:34962) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c1qn8-0004tz-4J for emacs-devel@gnu.org; Wed, 02 Nov 2016 04:21:02 -0400 Original-Received: by mail-pf0-x22e.google.com with SMTP id i88so7876349pfk.2 for ; Wed, 02 Nov 2016 01:21:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:references:cc:date:in-reply-to:message-id :user-agent:mime-version; bh=oYsmvt64P7KQ5lRZ/HEBy9M1fTdLjLY0XgwZqP1d/TE=; b=xmtZwzjwoAMEU4l/nZqhOyQO2qQ+PdadSZrXwuwfx+Uj1lK+M2rOhQ4vphkLq4PJOS yYXBYSolBp6dT8dXcLYM0m2IzCULsbKAI3vXWxBTXTTfBtV9zLqUGEP9F/6DMeuNlrye Mtsj8C6DL/O9PK9pe4a8bd6aF+yoi5QA1ghou1mL2TCLOOjGTAldwmJMCDwSTNBMpFi7 uOhH/kZl2heWAU9ZYNNN+cWPw85IcPhw0g5xnZA+P2uo0FL2GYsizl1DUqcUiDSd6pbj 6qaA4u1nKV5jOzOQbAb+mWoZPdPokYP2KmrjSXLjYJiC74dYBu0kOsJiE/+7JKjvDccn ct3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:references:cc:date:in-reply-to :message-id:user-agent:mime-version; bh=oYsmvt64P7KQ5lRZ/HEBy9M1fTdLjLY0XgwZqP1d/TE=; b=jLCxOMo2Gg+9MNu4Jzkketevw7SuHH5OjCZEt0WBtAAsyym5XgPMgkU51LYKhHBav7 7/outrUzzWS6gbW4LdmcBhr/CuIx42P3SZmeD33cYGY5j6xkf/n1dMF0j6irOLL94fae WEYTO9TMxWPqbtok7PLrp0I2XVXvnx6GiYHQZLdMkSn2A5Ob8QGuQciLuaAmesVS3Yj0 OmoJ26AGZs4qhbKxshl0AH+3BFCgaUzDRZJHa0Go7lprs54XffUCe+L/iIVLHKvkPglF yneMEv45fHsKEBPYzG6UkgarGwNsWhRsyaArNKBMgSJh/X8DvIYiAtJ3zLHHrT02mroV lJvQ== X-Gm-Message-State: ABUngvd6Wxwr6heYkPJiIBVmEwijV4wMLH96KLwfcPqte2Iqbs6ATrQjLRwUbM8mHWbWXQ== X-Received: by 10.99.48.69 with SMTP id w66mr3838913pgw.109.1478074861038; Wed, 02 Nov 2016 01:21:01 -0700 (PDT) Original-Received: from calancha-pc (57.92.100.220.dy.bbexcite.jp. [220.100.92.57]) by smtp.gmail.com with ESMTPSA id x62sm2421627pfb.20.2016.11.02.01.20.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 02 Nov 2016 01:21:00 -0700 (PDT) In-Reply-To: (Tino Calancha's message of "Wed, 2 Nov 2016 14:06:29 +0900 (JST)") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c00::22e 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:209103 Archived-At: Tino Calancha writes: > I suspect my patch naively asumes that we have > `tabulated-list-use-header-line' non-nil, so that buffer line 1 > is the first column. But we might have a fake header there... In that case, assuming we add the predicate suggested in Bug#24855, i guess we just need to change: + (min next-col-width + (tabulated-list--near-cols-max-widths + (1- (line-number-at-pos)) + (1+ n)))) + width)))) by the following: + (min next-col-width + (tabulated-list--near-cols-max-widths + (- (line-number-at-pos) + (if (tabulated-list-no-header-p) 1 2)) + (1+ n)))) + width))))