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: Problems with syntax-ppss: Was [... Apply `comment-depth' text properties when calling `back_comment'.] Date: Fri, 11 Mar 2016 18:31:21 -0500 Message-ID: References: <20160310130156.GA4831@acm.fritz.box> <20160310152949.GB4831@acm.fritz.box> <20160310172539.GC4831@acm.fritz.box> <20160310190824.GD4831@acm.fritz.box> <20160311204817.GF2888@acm.fritz.box> <20160311230855.GI2888@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1457739119 27277 80.91.229.3 (11 Mar 2016 23:31:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Mar 2016 23:31:59 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 12 00:31:50 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 1aeWX7-0002fQ-WD for ged-emacs-devel@m.gmane.org; Sat, 12 Mar 2016 00:31:50 +0100 Original-Received: from localhost ([::1]:58237 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeWX7-0001xB-9w for ged-emacs-devel@m.gmane.org; Fri, 11 Mar 2016 18:31:49 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37452) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeWWu-0001wp-1E for emacs-devel@gnu.org; Fri, 11 Mar 2016 18:31:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aeWWp-0005Lk-1i for emacs-devel@gnu.org; Fri, 11 Mar 2016 18:31:35 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:54706) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeWWo-0005Jk-Rw for emacs-devel@gnu.org; Fri, 11 Mar 2016 18:31:30 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aeWWm-0002PR-8z for emacs-devel@gnu.org; Sat, 12 Mar 2016 00:31:28 +0100 Original-Received: from 69-196-161-194.dsl.teksavvy.com ([69.196.161.194]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 12 Mar 2016 00:31:28 +0100 Original-Received: from monnier by 69-196-161-194.dsl.teksavvy.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 12 Mar 2016 00:31:28 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 15 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 69-196-161-194.dsl.teksavvy.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:vbjS+khgiC6y3kfosyTczp7XYSI= 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:201509 Archived-At: > . Narrow the buffer so that point-min is at the indicated position, > then try to get (forward-comment -1) from EOL working. If the user narrows this way, he/she gets *some* behavior, because the meaning of "narrowing" is vague. It can sometimes mean "I want to focus on this particular subpart of the buffer without forgetting that the rest exists" and sometimes "I want to pretend the rest doesn't exist at all", and The Right Thing to do will be different in those two cases. So the fact that my patch changes this behavior from one to the other is of no importance in general. You can argue that both behaviors are The Right Thing. Stefan