From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: New hook before-region-change-functions wanted Date: Sun, 10 Sep 2017 18:21:57 -0400 Message-ID: References: <20170908144657.GA3463@ACM> <20170910185353.GE3588@ACM> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1505082176 21139 195.159.176.226 (10 Sep 2017 22:22:56 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 10 Sep 2017 22:22:56 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 11 00:22:51 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 1drAci-0004ka-CE for ged-emacs-devel@m.gmane.org; Mon, 11 Sep 2017 00:22:40 +0200 Original-Received: from localhost ([::1]:54463 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drAcp-0006e0-74 for ged-emacs-devel@m.gmane.org; Sun, 10 Sep 2017 18:22:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38037) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drAc9-0006dm-Oq for emacs-devel@gnu.org; Sun, 10 Sep 2017 18:22:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1drAc5-0008Hf-K4 for emacs-devel@gnu.org; Sun, 10 Sep 2017 18:22:04 -0400 Original-Received: from pmta31.teksavvy.com ([76.10.157.38]:48165) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1drAc5-0008EJ-EY for emacs-devel@gnu.org; Sun, 10 Sep 2017 18:22:01 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2F4HQD6ubVZ/xYMr7hbHAEBBAEBCgEBg?= =?us-ascii?q?1qBUoNThVmGB48rAYFzLwGYC4VCBAIChApYAQIBAQEBAQIDaChCEAGERgEEAVY?= =?us-ascii?q?jBQsLDiYSFBgNJIo8CLBbizUBAQgogyuIXYprAQSgdKAUhy6VG4FJWIENMiEIM?= =?us-ascii?q?YgBJIcbglABAQE?= X-IPAS-Result: =?us-ascii?q?A2F4HQD6ubVZ/xYMr7hbHAEBBAEBCgEBg1qBUoNThVmGB48?= =?us-ascii?q?rAYFzLwGYC4VCBAIChApYAQIBAQEBAQIDaChCEAGERgEEAVYjBQsLDiYSFBgNJ?= =?us-ascii?q?Io8CLBbizUBAQgogyuIXYprAQSgdKAUhy6VG4FJWIENMiEIMYgBJIcbglABAQE?= X-IronPort-AV: E=Sophos;i="5.42,374,1500955200"; d="scan'208";a="3662690" Original-Received: from 184-175-12-22.dsl.teksavvy.com (HELO pastel.home) ([184.175.12.22]) by smtp.teksavvy.com with ESMTP; 10 Sep 2017 18:21:57 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 747E760407; Sun, 10 Sep 2017 18:21:57 -0400 (EDT) In-Reply-To: <20170910185353.GE3588@ACM> (Alan Mackenzie's message of "Sun, 10 Sep 2017 18:53:53 +0000") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 76.10.157.38 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:218096 Archived-At: > `widen' is physically a separate function from `narrow-to-region'. It currently isn't implemented by calling narrow-to-region, but that's just a technical detail: it behaves exactly like (defun widen () (narrow-to-region 1 (1+ (buffer-size)))) > As I see it, there is no such thing as "hard" or "soft" narrowing. Indeed, the issue of soft-vs-hard narrowing can also be looked at in a different way, and maybe the best way to solve it will not involve changing narrowing at all. Of Then again, maybe it will. > Incidentally, I've now posted a patch for bug #22983. I'm interested in > what you think of it. I'll try and look at it soon, thank you, Stefan