From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Elias_M=C3=A5rtenson?= Newsgroups: gmane.emacs.devel Subject: Re: About column numbers Date: Sun, 3 Apr 2016 00:29:10 +0800 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: multipart/alternative; boundary=94eb2c122da4c9cb15052f82fe2f X-Trace: ger.gmane.org 1459614577 14233 80.91.229.3 (2 Apr 2016 16:29:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Apr 2016 16:29:37 +0000 (UTC) Cc: emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 02 18:29:29 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 1amOQS-0004WH-9B for ged-emacs-devel@m.gmane.org; Sat, 02 Apr 2016 18:29:28 +0200 Original-Received: from localhost ([::1]:50213 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amOQR-0003IC-8c for ged-emacs-devel@m.gmane.org; Sat, 02 Apr 2016 12:29:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amOQC-0003I2-91 for emacs-devel@gnu.org; Sat, 02 Apr 2016 12:29:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1amOQB-00042z-C9 for emacs-devel@gnu.org; Sat, 02 Apr 2016 12:29:12 -0400 Original-Received: from mail-vk0-x234.google.com ([2607:f8b0:400c:c05::234]:35459) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amOQB-00042t-6w for emacs-devel@gnu.org; Sat, 02 Apr 2016 12:29:11 -0400 Original-Received: by mail-vk0-x234.google.com with SMTP id e6so136579905vkh.2 for ; Sat, 02 Apr 2016 09:29:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=m+kFOi6JQ2HyeHJtwg16uKnEzDIzRM8dhLTXxYpWcOo=; b=oxlmlFwr/0LsgHbhdDVXPPX0R8GBl2093El7/UV/hhu9n0vCHOxO0wZB5CaWcFw1wm vJcLDgBOOXchsbQbXOms1i9S7Ddg3lyJ4L5KpOFmgg685CdOFJuXY3aGJ5uguNIFskq9 lAh+OyLq4epQhxExFzNSsYWzi604oZKv8ZmvLv5eZ7AUJfRovnSxgv4v14E9XcBNFmNZ uRzdjJtZsnVmsjLzZyoL8DSxJfmu/BTnXrFdozgAHqyoy7CEOHuiB5DpTt2AmF1vLQbs H91B6HyaU5jLEwXTtIHdcoUiQxTVSZgjCpUxL0NvITVYY5y9dYn/RxWY/Lq1Y14PdXB4 UI/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=m+kFOi6JQ2HyeHJtwg16uKnEzDIzRM8dhLTXxYpWcOo=; b=YeXcxo56S6tU72hvnIC5ZiB40oYg9d1DO2/j9SNjnL6Hdpc5UmLYJRewqKLCz8CEf+ 8OhyUGE9ALtZ0RMgsP6LT1DOxVKzKwLaFC/CsDbP7kyT2/mRKrpUCZnVX2wSRQkte6YD KCQ2rSfwWEqXV/iW2oSQ6VydgmZ5PLbAIoK+cWE1rEGHmxae0EKyBwsJ00naQPw5nFHQ y+VV2uQDqLLGGHThXwQ2ejaktm970TJ46q6aeEZ+tAqZHIAhL84xnUbqpQt9I7ORRjYK 5b84oC5+9ENIj/rApIAZPGX5igpoSf0GpNdPYSSMWeSXUcVUSurNPl2bCQkx6f8OC1/9 Gg8w== X-Gm-Message-State: AD7BkJLIFnt/j+1R0no9FJIZIh4dMHV0yMhn4M7fCvTa+pbSnx07woghFh6VU4OTqvyrVsLAkyEBejnCsgxR6g== X-Received: by 10.159.37.100 with SMTP id 91mr4375684uaz.79.1459614550442; Sat, 02 Apr 2016 09:29:10 -0700 (PDT) Original-Received: by 10.176.5.163 with HTTP; Sat, 2 Apr 2016 09:29:10 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400c:c05::234 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:202594 Archived-At: --94eb2c122da4c9cb15052f82fe2f Content-Type: text/plain; charset=UTF-8 On 1 April 2016 at 05:39, Stefan Monnier wrote: > >> (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. I have done this on occasions. Are there any cases where the save/widen dance actually gives a result which is not 1? Regards, Elias --94eb2c122da4c9cb15052f82fe2f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On 1= April 2016 at 05:39, Stefan Monnier <monnier@iro.umontreal.ca&= gt; wrote:
>&g= t; (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.=C2=A0 Along with the "hard narrowing" discussion, = it would be good to
have a way to get the "external point-min".=C2=A0 Currently the o= nly portable
way (short of hardcoding 1) is via (save-restriction (widen)
(point-min)) which is rather round-about and inefficient.
=
I have done this on occasions. Are there any cases where the= save/widen dance actually gives a result which is not 1?

Regards,
Elias
--94eb2c122da4c9cb15052f82fe2f--