From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#29346: dwim transpose-subr opportunity? Date: Sat, 18 Nov 2017 16:45:45 +0200 Message-ID: <83k1ynfxwm.fsf@gnu.org> References: <87a7zkwooy.fsf@fliptop> <83bmk0gh8l.fsf@gnu.org> <87375bwvz9.fsf@fliptop> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1511016437 6188 195.159.176.226 (18 Nov 2017 14:47:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 18 Nov 2017 14:47:17 +0000 (UTC) Cc: 29346@debbugs.gnu.org To: Tomas Nordin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 18 15:47:13 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1eG4Oe-0000tv-2I for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Nov 2017 15:47:04 +0100 Original-Received: from localhost ([::1]:50279 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eG4Ol-0000iX-CU for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Nov 2017 09:47:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55433) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eG4Oe-0000iG-Vi for bug-gnu-emacs@gnu.org; Sat, 18 Nov 2017 09:47:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eG4Ob-0004jE-Ta for bug-gnu-emacs@gnu.org; Sat, 18 Nov 2017 09:47:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36992) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eG4Ob-0004j4-Q9 for bug-gnu-emacs@gnu.org; Sat, 18 Nov 2017 09:47:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eG4Ob-0008SX-J1 for bug-gnu-emacs@gnu.org; Sat, 18 Nov 2017 09:47:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Nov 2017 14:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29346 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29346-submit@debbugs.gnu.org id=B29346.151101637432461 (code B ref 29346); Sat, 18 Nov 2017 14:47:01 +0000 Original-Received: (at 29346) by debbugs.gnu.org; 18 Nov 2017 14:46:14 +0000 Original-Received: from localhost ([127.0.0.1]:45673 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eG4Nq-0008RV-5z for submit@debbugs.gnu.org; Sat, 18 Nov 2017 09:46:14 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:36052) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eG4Nm-0008RG-Sv for 29346@debbugs.gnu.org; Sat, 18 Nov 2017 09:46:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eG4Ne-0003KI-OB for 29346@debbugs.gnu.org; Sat, 18 Nov 2017 09:46:05 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57728) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eG4Ne-0003KA-L9; Sat, 18 Nov 2017 09:46:02 -0500 Original-Received: from [176.228.60.248] (port=4804 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eG4Nd-0006R3-4w; Sat, 18 Nov 2017 09:46:02 -0500 In-reply-to: <87375bwvz9.fsf@fliptop> (message from Tomas Nordin on Sat, 18 Nov 2017 14:35:22 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:140060 Archived-At: > From: Tomas Nordin > Cc: 29346@debbugs.gnu.org > Date: Sat, 18 Nov 2017 14:35:22 +0100 > > > I think this would be a source of inadvertent mistakes and > > annoyances. Transient Mark mode is on by default, which means M-t can > > frequently do something the user didn't intend it to, just because the > > region happened to be active. A similar situation exists with typing > > Is an example of that the following > > ^Jack and Jill over ^jumped the hill. > > The first '^' is for the mark and next is for point, making an active > region, and now I hit M-t because I wanted to swap 'over' with 'jump', > but instead I swapped 'Jack' with 'jumped'. > > Just for my understanding. Or is there better examples? You understood me, that's exactly what I had in mind. > >> It gets a bit silly as suggested though, I guess the logic should be > >> something like (or (= arg 0) (and transpose-dwim (use-region-p))) > > > > Maybe. But I wonder why this relatively rare use case is so important > > as to mandate a new defcustom, whose only purpose is to save the user > > from typing M-0 or "C-u 0". Just because people didn't read the doc > > I was mostly thinking not to disturb the long lasting default I think, > or the possible annoyances as you say. Thanks for clarifying that.