From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: superword-mode Date: Wed, 27 Mar 2013 15:31:40 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <877gksskpv.fsf@lifelogs.com> References: <87wqt0xqiy.fsf@lifelogs.com> <87sj3ny4ca.fsf@lifelogs.com> <87ehf7zid3.fsf@fleche.redhat.com> <87obeby2ph.fsf@lifelogs.com> <878v5fxzjg.fsf@lifelogs.com> <871ub7xn7e.fsf@lifelogs.com> <87r4j2v7t8.fsf@lifelogs.com> <87zjxqt21y.fsf_-_@lifelogs.com> <51530A2A.1090702@lanl.gov> <87fvzgswen.fsf@lifelogs.com> <87boa4svrj.fsf@lifelogs.com> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1364412737 22159 80.91.229.3 (27 Mar 2013 19:32:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Mar 2013 19:32:17 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 27 20:32:40 2013 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 1UKw5I-0008AT-P9 for ged-emacs-devel@m.gmane.org; Wed, 27 Mar 2013 20:32:32 +0100 Original-Received: from localhost ([::1]:43817 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKw4u-0002ty-PR for ged-emacs-devel@m.gmane.org; Wed, 27 Mar 2013 15:32:08 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKw4q-0002qv-SF for emacs-devel@gnu.org; Wed, 27 Mar 2013 15:32:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKw4p-0004FW-CI for emacs-devel@gnu.org; Wed, 27 Mar 2013 15:32:04 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:35295) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKw4p-0004F1-6r for emacs-devel@gnu.org; Wed, 27 Mar 2013 15:32:03 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UKw57-0007UW-Nq for emacs-devel@gnu.org; Wed, 27 Mar 2013 20:32:21 +0100 Original-Received: from pool-72-93-31-86.bstnma.east.verizon.net ([72.93.31.86]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Mar 2013 20:32:21 +0100 Original-Received: from tzz by pool-72-93-31-86.bstnma.east.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Mar 2013 20:32:21 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 39 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pool-72-93-31-86.bstnma.east.verizon.net X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:G6usZQ4rPzn0sV0iecPtv38PcNA= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:158322 Archived-At: On Wed, 27 Mar 2013 12:33:26 -0400 Stefan Monnier wrote: >> Overriding the CUA `left-word' and `right-word' command works OK with >> `subword-mode' and `superword-mode', except that S-C-left and S-C-right >> don't initiate a selection. I don't know if that's trivially fixed or >> not. SM> Yes, the fix is in the interactive spec (which needs a "^"). At the risk of sounding like an idiot, I tried (interactive "^p") and it didn't work, I still don't start a selection with S-C-left/right: #+begin_src lisp (defun subword-forward (&optional arg) ... (interactive "p") ... (defun subword-backward (&optional arg) ... (interactive "^p") ... (defun subword-right (&optional arg) "Do the same as `right-word' but on subwords." (interactive "^p") ... (defun subword-left (&optional arg) "Do the same as `left-word' but on subwords." (interactive "^p") #+end_src I hope it's something trivial I've missed. Ted