From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Perry E. Metzger" Newsgroups: gmane.emacs.devel Subject: Re: Advice needed on modeline customization hack... Date: Mon, 17 Apr 2017 08:32:47 -0400 Message-ID: <20170417083247.6767e78a@jabberwock.cb.piermont.com> References: <20170415212800.5be89037@jabberwock.cb.piermont.com> <20170416094929.51e94c82@jabberwock.cb.piermont.com> <20170416104633.1768bbb6@jabberwock.cb.piermont.com> <20170416120942.36af8967@jabberwock.cb.piermont.com> <20170416180620.3615b4b6@jabberwock.cb.piermont.com> <83y3uzeflk.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1492432380 5110 195.159.176.226 (17 Apr 2017 12:33:00 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 17 Apr 2017 12:33:00 +0000 (UTC) Cc: cpitclaudel@gmail.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 17 14:32:55 2017 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 1d05pv-0001Ag-6c for ged-emacs-devel@m.gmane.org; Mon, 17 Apr 2017 14:32:55 +0200 Original-Received: from localhost ([::1]:36425 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d05pz-0007oI-7a for ged-emacs-devel@m.gmane.org; Mon, 17 Apr 2017 08:32:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36656) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d05pt-0007oC-PQ for emacs-devel@gnu.org; Mon, 17 Apr 2017 08:32:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d05pt-0001g7-06 for emacs-devel@gnu.org; Mon, 17 Apr 2017 08:32:53 -0400 Original-Received: from hacklheber.piermont.com ([166.84.7.14]:39341) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d05po-0001cW-Cj; Mon, 17 Apr 2017 08:32:48 -0400 Original-Received: from snark.cb.piermont.com (localhost [127.0.0.1]) by hacklheber.piermont.com (Postfix) with ESMTP id 78B09A85; Mon, 17 Apr 2017 08:32:47 -0400 (EDT) Original-Received: from jabberwock.cb.piermont.com (jabberwock.cb.piermont.com [10.160.2.107]) by snark.cb.piermont.com (Postfix) with ESMTP id 329F02DE040; Mon, 17 Apr 2017 08:32:47 -0400 (EDT) In-Reply-To: <83y3uzeflk.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 166.84.7.14 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:214055 Archived-At: On Mon, 17 Apr 2017 09:02:47 +0300 Eli Zaretskii wrote: > I don't think adding a flag to the window object is necessary, as > this option is global. You just need to make > mode_line_update_needed look at the new variable, and offset the > displayed column by one if the one-based display is used. Will > this work, or am I missing something? No, you are quite correct, and, that's what I'd done at the point I sent out the patch last night. Perry -- Perry E. Metzger perry@piermont.com