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: On controlling rectangle-preview Date: Tue, 19 Jul 2016 21:32:30 -0400 Message-ID: References: <87wpkhgq5i.fsf@udel.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1468978428 3350 80.91.229.3 (20 Jul 2016 01:33:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Jul 2016 01:33:48 +0000 (UTC) Cc: emacs-devel@gnu.org To: Mark Oteiza Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 20 03:33:40 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 1bPgOJ-0003jo-OY for ged-emacs-devel@m.gmane.org; Wed, 20 Jul 2016 03:33:39 +0200 Original-Received: from localhost ([::1]:59966 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPgOI-0005AH-TB for ged-emacs-devel@m.gmane.org; Tue, 19 Jul 2016 21:33:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39953) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPgNI-0002Hy-Lm for emacs-devel@gnu.org; Tue, 19 Jul 2016 21:32:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bPgND-0005dy-6b for emacs-devel@gnu.org; Tue, 19 Jul 2016 21:32:36 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:1832) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPgND-0005du-2F for emacs-devel@gnu.org; Tue, 19 Jul 2016 21:32:31 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AzFgA731xV/3mcpUVcDoMChAKFVbtAh0sEAgKBPDsSAQEBAQEBAYEKQQWDXQEBAwFWIwULCw4mEhQYDSSINwjPIwEBAQEGAgEfizqFBQeELQWzP4FFI4M6WiKCeAEBAQ X-IPAS-Result: A0AzFgA731xV/3mcpUVcDoMChAKFVbtAh0sEAgKBPDsSAQEBAQEBAYEKQQWDXQEBAwFWIwULCw4mEhQYDSSINwjPIwEBAQEGAgEfizqFBQeELQWzP4FFI4M6WiKCeAEBAQ X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="248601993" Original-Received: from 69-165-156-121.dsl.teksavvy.com (HELO pastel.home) ([69.165.156.121]) by ironport2-out.teksavvy.com with ESMTP; 19 Jul 2016 21:32:30 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 6ED9564CD0; Tue, 19 Jul 2016 21:32:30 -0400 (EDT) In-Reply-To: <87wpkhgq5i.fsf@udel.edu> (Mark Oteiza's message of "Tue, 19 Jul 2016 19:32:41 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:205851 Archived-At: > The automatic preview can be pretty jarring, especially when doing > rectangle-string in one place (some mode, language, what-have-you), then > going someplace else, doing rectangle-string and seeing the preview when > the plan is to enter something completely different. FWIW, I also find it unsatisfactory in some cases. Which cases annoy me depends on whether the text I'm about to insert is related to the last text I inserted via that mechanism, so there's no way Emacs can tell whether it'll be annoying or not. > Not sure if there is a better way to control this other than introducing > a parameter. Agreed. I thought about delaying the preview a bit when str is "", but it's fiddly and not very convincing either. > For the reasons above I'd prefer this to be nil by default, I could live with it being nil by default (or even without any option at all). > - (when (equal str "") > + (when (and rectangle-preview-default (equal str "")) But I think the preview should not be inhibited when str is "" *again* (i.e. when str is "" as a result of minibuffer modifications rather than as a result of inaction). Stefan