From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: About column numbers Date: Thu, 31 Mar 2016 17:39:30 -0400 Message-ID: References: <56FB02BB.3090501@alice.it> <83wpokuh3a.fsf@gnu.org> <56FC0CDB.9090707@alice.it> <87poubvnhh.fsf@linux-m68k.org> <87lh4zvlp2.fsf@linux-m68k.org> <56FD53F6.5090805@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1459460432 21631 80.91.229.3 (31 Mar 2016 21:40:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Mar 2016 21:40:32 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 31 23:40:25 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 1alkKG-0007xr-VZ for ged-emacs-devel@m.gmane.org; Thu, 31 Mar 2016 23:40:25 +0200 Original-Received: from localhost ([::1]:34595 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alkKG-0002jv-6y for ged-emacs-devel@m.gmane.org; Thu, 31 Mar 2016 17:40:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alkK3-0002jf-7d for emacs-devel@gnu.org; Thu, 31 Mar 2016 17:40:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1alkK0-00046m-2Z for emacs-devel@gnu.org; Thu, 31 Mar 2016 17:40:11 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:37372) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alkJz-00046b-S5 for emacs-devel@gnu.org; Thu, 31 Mar 2016 17:40:08 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1alkJx-0007qE-IA for emacs-devel@gnu.org; Thu, 31 Mar 2016 23:40:05 +0200 Original-Received: from 69-165-138-79.dsl.teksavvy.com ([69.165.138.79]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 31 Mar 2016 23:40:05 +0200 Original-Received: from monnier by 69-165-138-79.dsl.teksavvy.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 31 Mar 2016 23:40:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 12 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 69-165-138-79.dsl.teksavvy.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:bZkYgfHnxk5uQEhpG4JevxBB3ug= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:202538 Archived-At: >> (it would break some code, but most of it is already fundamentally >> broken because it should use `point-min` rather than hardcoding 1, so >> it's not *that* terrible). > Amusingly, always using (point-min) also leads to interesting bugs. Oh yes. Along with the "hard narrowing" discussion, it would be good to have a way to get the "external point-min". Currently the only portable way (short of hardcoding 1) is via (save-restriction (widen) (point-min)) which is rather round-about and inefficient. Stefan