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: Sun, 16 Apr 2017 10:46:33 -0400 Message-ID: <20170416104633.1768bbb6@jabberwock.cb.piermont.com> References: <20170415212800.5be89037@jabberwock.cb.piermont.com> <20170416094929.51e94c82@jabberwock.cb.piermont.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/JlFdRFrl1WiVFut5Shk.GqQ" X-Trace: blaine.gmane.org 1492354049 6304 195.159.176.226 (16 Apr 2017 14:47:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 16 Apr 2017 14:47:29 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 16 16:47:23 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 1czlSS-0001Mo-Gx for ged-emacs-devel@m.gmane.org; Sun, 16 Apr 2017 16:47:20 +0200 Original-Received: from localhost ([::1]:60786 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1czlSU-00082J-SK for ged-emacs-devel@m.gmane.org; Sun, 16 Apr 2017 10:47:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42975) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1czlRn-00082A-0I for emacs-devel@gnu.org; Sun, 16 Apr 2017 10:46:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1czlRi-0000HE-Qw for emacs-devel@gnu.org; Sun, 16 Apr 2017 10:46:39 -0400 Original-Received: from hacklheber.piermont.com ([166.84.7.14]:36737) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1czlRi-0000F7-MZ for emacs-devel@gnu.org; Sun, 16 Apr 2017 10:46:34 -0400 Original-Received: from snark.cb.piermont.com (localhost [127.0.0.1]) by hacklheber.piermont.com (Postfix) with ESMTP id AB7251F9; Sun, 16 Apr 2017 10:46:33 -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 758062DE021; Sun, 16 Apr 2017 10:46:33 -0400 (EDT) In-Reply-To: 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:214002 Archived-At: --MP_/JlFdRFrl1WiVFut5Shk.GqQ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline On Sun, 16 Apr 2017 10:07:25 -0400 Stefan Monnier wrote: > > instead. The big question for me right now is what to name the > > knob, believe it or not. > > Suggestion of the day: perry-metzger-s-anonymous-knob ? I'm trying column-number-mode-starts-from-zero instead. :P Opinions on the attached patches? If there is consensus that they could go in, I'll update the appropriate docs as well. (And should column-number-mode-starts-from-zero be in simple.el where I put it?) Perry -- Perry E. Metzger perry@piermont.com --MP_/JlFdRFrl1WiVFut5Shk.GqQ Content-Type: application/octet-stream; name=column.diff Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=column.diff ZGlmZiAtLWdpdCBhL2V0Yy9yZWZjYXJkcy9nbnVzLWxvZ28ucGRmIGIvZXRjL3JlZmNhcmRzL2du dXMtbG9nby5wZGYKZGVs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tYmVyIGFuZCBDb2x1bW4gbnVtYmVy XG5cCiBtb3VzZS0xOiBEaXNwbGF5IExpbmUgYW5kIENvbHVtbiBNb2RlIE1lbnUiKSkKKyAgICAg ICAgKDEwICwocHJvcGVydGl6ZQorICAgICAgICAgICAgICAiICglbCwlQykiCisgICAgICAgICAg ICAgICdsb2NhbC1tYXAgbW9kZS1saW5lLWNvbHVtbi1saW5lLW51bWJlci1tb2RlLW1hcAorICAg ICAgICAgICAgICAnbW91c2UtZmFjZSAnbW9kZS1saW5lLWhpZ2hsaWdodAorICAgICAgICAgICAg ICAnaGVscC1lY2hvICJMaW5lIG51bWJlciBhbmQgQ29sdW1uIG51bWJlclxuXAorbW91c2UtMTog RGlzcGxheSBMaW5lIGFuZCBDb2x1bW4gTW9kZSBNZW51IikpKQogICAgICAgICg2ICwocHJvcGVy dGl6ZQogCSAgICAiIEwlbCIKIAkgICAgJ2xvY2FsLW1hcCBtb2RlLWxpbmUtY29sdW1uLWxpbmUt bnVtYmVyLW1vZGUtbWFwCkBAIC0zODEsMTIgKzM4OCwxOSBAQCBtb2RlLWxpbmUtcG9zaXRpb24K IAkgICAgJ2hlbHAtZWNobyAiTGluZSBOdW1iZXJcblwKIG1vdXNlLTE6IERpc3BsYXkgTGluZSBh bmQgQ29sdW1uIE1vZGUgTWVudSIpKSkpCiAgICAgICgoY29sdW1uLW51bWJlci1tb2RlCi0gICAg ICAgKDUgLChwcm9wZXJ0aXplCi0JICAgICIgQyVjIgotCSAgICAnbG9jYWwtbWFwIG1vZGUtbGlu ZS1jb2x1bW4tbGluZS1udW1iZXItbW9kZS1tYXAKLQkgICAgJ21vdXNlLWZhY2UgJ21vZGUtbGlu ZS1oaWdobGlnaHQKLQkgICAgJ2hlbHAtZWNobyAiQ29sdW1uIG51bWJlclxuXAotbW91c2UtMTog RGlzcGxheSBMaW5lIGFuZCBDb2x1bW4gTW9kZSBNZW51IikpKSkpKQorICAgICAgIChjb2x1bW4t bnVtYmVyLW1vZGUtc3Rh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