From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tomas Nordin Newsgroups: gmane.emacs.bugs Subject: bug#29346: dwim transpose-subr opportunity? Date: Sat, 18 Nov 2017 14:35:22 +0100 Message-ID: <87375bwvz9.fsf@fliptop> References: <87a7zkwooy.fsf@fliptop> <83bmk0gh8l.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1511012179 14709 195.159.176.226 (18 Nov 2017 13:36:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 18 Nov 2017 13:36:19 +0000 (UTC) Cc: 29346@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 18 14:36:12 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 1eG3I0-0003Az-Q1 for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Nov 2017 14:36:08 +0100 Original-Received: from localhost ([::1]:50063 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eG3I7-0002HX-Tk for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Nov 2017 08:36:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41251) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eG3Hy-0002HE-Et for bug-gnu-emacs@gnu.org; Sat, 18 Nov 2017 08:36:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eG3Hu-0001In-GJ for bug-gnu-emacs@gnu.org; Sat, 18 Nov 2017 08:36:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36971) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eG3Hu-0001Ic-Bw for bug-gnu-emacs@gnu.org; Sat, 18 Nov 2017 08:36:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eG3Hu-0006tD-2u for bug-gnu-emacs@gnu.org; Sat, 18 Nov 2017 08:36:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Tomas Nordin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Nov 2017 13:36:02 +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.151101213326449 (code B ref 29346); Sat, 18 Nov 2017 13:36:02 +0000 Original-Received: (at 29346) by debbugs.gnu.org; 18 Nov 2017 13:35:33 +0000 Original-Received: from localhost ([127.0.0.1]:45652 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eG3HR-0006sX-4D for submit@debbugs.gnu.org; Sat, 18 Nov 2017 08:35:33 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:58933) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eG3HP-0006sJ-OW for 29346@debbugs.gnu.org; Sat, 18 Nov 2017 08:35:32 -0500 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id A8AF020991 for <29346@debbugs.gnu.org>; Sat, 18 Nov 2017 14:35:24 +0100 (CET) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 3yfGFR3FFfz1011; Sat, 18 Nov 2017 14:35:23 +0100 (CET) In-Reply-To: <83bmk0gh8l.fsf@gnu.org> 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:140057 Archived-At: Eli Zaretskii writes: > 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? >> 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.