From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "David De La Harpe Golden" Newsgroups: gmane.emacs.devel Subject: Fwd: Enabling Transient Mark Mode by default Date: Fri, 22 Feb 2008 05:49:15 +0000 Message-ID: <8e24944a0802212149i59a503cdsdcca527353f6a2d0@mail.gmail.com> References: <87myq4saw1.fsf@catnip.gol.com> <85ablvftqe.fsf@lola.goethe.zz> <8e24944a0802201130y1601cd6dvf22a8089e2de97f7@mail.gmail.com> <858x1fe6fc.fsf@lola.goethe.zz> <8e24944a0802201241o4a2a70d0xb823b3fa27692bfd@mail.gmail.com> <87zltujk8n.fsf@jurta.org> <8e24944a0802212139r2bae3597ke49c5c6da65da445@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_3865_19755342.1203659355449" X-Trace: ger.gmane.org 1203659375 337 80.91.229.12 (22 Feb 2008 05:49:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Feb 2008 05:49:35 +0000 (UTC) To: Emacs-Devel , "Juri Linkov" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 22 06:49:59 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JSQnG-00008G-87 for ged-emacs-devel@m.gmane.org; Fri, 22 Feb 2008 06:49:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JSQmk-0005xJ-Aq for ged-emacs-devel@m.gmane.org; Fri, 22 Feb 2008 00:49:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JSQmd-0005xE-Qr for emacs-devel@gnu.org; Fri, 22 Feb 2008 00:49:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JSQmb-0005wo-Vp for emacs-devel@gnu.org; Fri, 22 Feb 2008 00:49:19 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JSQmb-0005wY-Ls for emacs-devel@gnu.org; Fri, 22 Feb 2008 00:49:17 -0500 Original-Received: from wr-out-0506.google.com ([64.233.184.225]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JSQmb-0005hd-7K for emacs-devel@gnu.org; Fri, 22 Feb 2008 00:49:17 -0500 Original-Received: by wr-out-0506.google.com with SMTP id 58so476775wri.10 for ; Thu, 21 Feb 2008 21:49:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=70Qg6q4BCXEhaxvAMMPWo5ACuxB1EKZfFEQGCybQSu8=; b=jL8X0vLnZ6e/SigNjXeRCWox/ALFtIGTz5XjLVlis0l1nSg/41CDSkBS+SbbloIcvB7I+8SKI0yX3upRjF2yFIqoxOrxb0TKH0ph4VCEd+tjdxXuTlaFLPuPPjEtw7UxtHmH2YanerVVf1sy6np9KJVFOneU3gBnk07ylG4NPu8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=WFVvrEDM3bKmjhhuebXqvhkZad/GRrP6piE4GO5oDTs07VNdKnX15aJnNgd1evr5r6dBN1o6FCEZDQjq/vUaCciQ6IK90Mhpeoe8KbhS1hBe45sjQn8lOYuEdDy7FbjJ5YCn6mRt1d4mRRcrklfTP3e//zTohFkUSxMOZIIwwWI= Original-Received: by 10.142.127.10 with SMTP id z10mr8341688wfc.216.1203659355449; Thu, 21 Feb 2008 21:49:15 -0800 (PST) Original-Received: by 10.143.17.10 with HTTP; Thu, 21 Feb 2008 21:49:15 -0800 (PST) In-Reply-To: <8e24944a0802212139r2bae3597ke49c5c6da65da445@mail.gmail.com> X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 (Google crawlbot) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:89937 Archived-At: ------=_Part_3865_19755342.1203659355449 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Argh, effing gmail. resending, to people besides Miles this time (sorry Miles). On 22/02/2008, Miles Bader wrote: > Juri Linkov writes: > > But even this is not necessary: cua-selection-mode uses C-SPC C-SPC > > to set the mark without activating the region (more precisely the second > > C-SPC cancels the region activation). This is another reason to enable > > cua-selection-mode by default because this will help people who use > > the mark for navigational purposes. > > > No it's not. If that feature is desired (seems ok to me), it should > just be added to normal t-m-m. Well, it does have slight discoverability and ease-of-typing advantages over C-SPC C-g. Small thing to add to set-mark-command. Might also be ui-consistent to augment momentary mark (transient-mark-mode = lambda) similarly i.e. when transient-mark-mode is t (perma-on), C-SPC C-SPC deactivates mark, but when transient-mark-mode is off, a third C-SPC after the C-SPC C-SPC turning on momentary mark cancels the momentary mark? Illustrative/trivial patch attached, seems nice in small tests, but dunno if there are any awful ramifications. ------=_Part_3865_19755342.1203659355449 Content-Type: text/x-diff; name=disable-mark-on-c-spc-c-spc.diff Content-Transfer-Encoding: base64 X-Attachment-Id: f_fcyb6vn1 Content-Disposition: attachment; filename=disable-mark-on-c-spc-c-spc.diff LS0tIGxpc3Avc2ltcGxlLmVsCisrKyBsaXNwL3NpbXBsZS5lbApAQCAtMzQ1NSw3ICszNDU1LDEx IEBACiBvbGQgbWFyayBwb3NpdGlvbiBvbiBsb2NhbCBtYXJrIHJpbmcuICBBbHNvIHB1c2ggdGhl IG9sZ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pKQogICAgKHQKLSAgICAocHVzaC1tYXJrLWNvbW1h bmQgbmlsKSkpKQorICAgIChwdXNoLW1hcmstY29tbWFuZCBuaWwpKSkpKQogCiAoZGVmdW4gcHVz aC1tYXJrICgmb3B0aW9uYWwgbG9jYXRpb24gbm9tc2cgYWN0aXZhdGUpCiAgICJTZXQgbWFyayBh dCBMT0NBVElPTiAocG9pbnQsIGJ5IGRlZmF1bHQpIGFuZCBwdXNoIG9sZCBtYXJrIG9uIG1hcmsg cmluZy4K ------=_Part_3865_19755342.1203659355449--