From unknown Sat Sep 13 02:39:43 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#9810 <9810@debbugs.gnu.org> To: bug#9810 <9810@debbugs.gnu.org> Subject: Status: cw in viper mode clobbers clipboard Reply-To: bug#9810 <9810@debbugs.gnu.org> Date: Sat, 13 Sep 2025 09:39:43 +0000 retitle 9810 cw in viper mode clobbers clipboard reassign 9810 emacs submitter 9810 Bob Nnamtrop severity 9810 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 20 12:19:29 2011 Received: (at submit) by debbugs.gnu.org; 20 Oct 2011 16:19:29 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGvL6-0008Tn-Ms for submit@debbugs.gnu.org; Thu, 20 Oct 2011 12:19:29 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGvL3-0008TV-SA for submit@debbugs.gnu.org; Thu, 20 Oct 2011 12:19:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RGvJp-00039C-S8 for submit@debbugs.gnu.org; Thu, 20 Oct 2011 12:18:11 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:60887) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGvJp-000398-QA for submit@debbugs.gnu.org; Thu, 20 Oct 2011 12:18:09 -0400 Received: from eggs.gnu.org ([140.186.70.92]:49354) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGvJo-0004qC-DP for bug-gnu-emacs@gnu.org; Thu, 20 Oct 2011 12:18:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RGvJn-00038V-0t for bug-gnu-emacs@gnu.org; Thu, 20 Oct 2011 12:18:08 -0400 Received: from mail-vw0-f41.google.com ([209.85.212.41]:47989) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGvJm-00038K-Uk for bug-gnu-emacs@gnu.org; Thu, 20 Oct 2011 12:18:06 -0400 Received: by vws16 with SMTP id 16so2709066vws.0 for ; Thu, 20 Oct 2011 09:18:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=yn/32+YN0Dv20kFflptqIIotp4nUYSwR+oLkC2mE65Y=; b=gWJg4woxP7wiEge6tQq/ULJKIQumJ1a8wlRTCx27fccHe4epq1w7JQZQmZF4K4F+68 IIKSpz4S+n36IGNxLtqmFEF4eVap4ElUd/T3DGcCHTN3ATfmoaHADBwB6v5RmKPfEPn3 GmJ60BWjQf4L5IgHB8GSvsCS8+6Jt2V6IfYz0= MIME-Version: 1.0 Received: by 10.52.90.51 with SMTP id bt19mr11761813vdb.34.1319127486182; Thu, 20 Oct 2011 09:18:06 -0700 (PDT) Received: by 10.52.116.1 with HTTP; Thu, 20 Oct 2011 09:18:06 -0700 (PDT) Date: Thu, 20 Oct 2011 10:18:06 -0600 Message-ID: Subject: cw in viper mode clobbers clipboard From: Bob Nnamtrop To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.1 (-----) As the title says, in viper command mode typing cw (ie change word) causes the emacs clipboard (not sure the proper name for it, but the thing I expect a middle mouse button to paste into the buffer) to get clobbered. This is a regression over all previous versions (actually I remember this bug occurring a long time ago and getting fixed so something must have broken it again). To replicate: emacs -Q M-x viper i (ie, go into insert mode) asdf hjkl (type a few words) (ie, go into command mode) click on the 'a' (or move there any way you want) double click to put 'asdf' into emacs clipboard (ie X11 clipboard, primary, whatever) click on the 'h' (or move there any way you want) cw (ie viper command to change word)j (to paste the clipboard, or yank or whatever emacs calls it :-) hjkl is pasted in But 'asdf' should have been pasted in. This also occurs with other commands like 'ct', etc. This is very annoying and I cannot imagine using the new version if this is not fixed. Thanks much, Bob In GNU Emacs 24.0.90.1 (x86_64-apple-darwin10.8.0, X toolkit, Xaw3d scroll bars) of 2011-10-04 on where.i.am Windowing system distributor `The X.Org Foundation', version 11.0.11003000 configured using `configure '--prefix=/Users/name/local-emacs-24.0.90' '--with-x-toolkit=athena'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x v i p e r - o i a s d f SPC h j k l 0 c w Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Loading viper... Loading /Users/name/.viper...done Loading viper...done Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader emacsbug tabify viper viper-ex viper-macs viper-mous viper-cmd viper-keym ring viper-util viper-init advice help-fns advice-preload time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 20 12:26:54 2011 Received: (at 9810) by debbugs.gnu.org; 20 Oct 2011 16:26:54 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGvSH-0000DQ-Su for submit@debbugs.gnu.org; Thu, 20 Oct 2011 12:26:54 -0400 Received: from mail-bw0-f44.google.com ([209.85.214.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGvSG-0000DE-DA for 9810@debbugs.gnu.org; Thu, 20 Oct 2011 12:26:53 -0400 Received: by bkas6 with SMTP id s6so3427958bka.3 for <9810@debbugs.gnu.org>; Thu, 20 Oct 2011 09:25:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=MjSIwroaqYwmlQ5+YSaDAjWK7xhdM+LiUd06CfwgSh0=; b=JufZ+KnQgbsbEGjq6lFm8/i+JjP+deMsXdoxJWvGie1bGuYnAqKL9AMhQDty8n7dle dgPswwup6xwW2bJ7uKxU+lX+n9MOEFWMCCf2FODvR1R1IFEgoZwdzg5K3AalCtXe+W4T n+NNVBB/ZrmQ8+5vlt6u1we2pXHnSlNvNjFSw= Received: by 10.223.76.201 with SMTP id d9mr19123835fak.12.1319127937316; Thu, 20 Oct 2011 09:25:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.152.20.229 with HTTP; Thu, 20 Oct 2011 09:25:17 -0700 (PDT) In-Reply-To: References: From: Lennart Borgman Date: Thu, 20 Oct 2011 18:25:17 +0200 Message-ID: Subject: Re: bug#9810: cw in viper mode clobbers clipboard To: Bob Nnamtrop Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: 9810 Cc: 9810@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) On Thu, Oct 20, 2011 at 18:18, Bob Nnamtrop wrote: > As the title says, in viper command mode typing cw (ie change word) > causes the emacs clipboard (not sure the proper name for it, but the > thing I expect a middle mouse button to paste into the buffer) to get > clobbered. This is a regression over all previous versions (actually I > remember this bug occurring a long time ago and getting fixed so > something must have broken it again). To replicate: > > emacs -Q > M-x viper > i (ie, go into insert mode) > asdf hjkl (type a few words) > (ie, go into command mode) > click on the 'a' (or move there any way you want) > double click to put 'asdf' into emacs clipboard (ie X11 clipboard, > primary, whatever) > click on the 'h' (or move there any way you want) > cw (ie viper command to change word)j > (to paste the clipboard, or yank or whatever > emacs calls it :-) > hjkl is pasted in > > But 'asdf' should have been pasted in. This also occurs with other > commands like 'ct', etc. This is very annoying and I cannot imagine > using the new version if this is not fixed. I think the current behavior is the correct one. Why do you think it is in error? From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 20 12:28:37 2011 Received: (at 9810) by debbugs.gnu.org; 20 Oct 2011 16:28:37 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGvTw-0000Fy-Ua for submit@debbugs.gnu.org; Thu, 20 Oct 2011 12:28:37 -0400 Received: from mtaout21.012.net.il ([80.179.55.169]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGvTu-0000Fk-K8 for 9810@debbugs.gnu.org; Thu, 20 Oct 2011 12:28:35 -0400 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0LTD00L00HL9OW00@a-mtaout21.012.net.il> for 9810@debbugs.gnu.org; Thu, 20 Oct 2011 18:27:18 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.124.212.197]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LTD00LFMHPAME60@a-mtaout21.012.net.il>; Thu, 20 Oct 2011 18:27:12 +0200 (IST) Date: Thu, 20 Oct 2011 18:27:13 +0200 From: Eli Zaretskii Subject: Re: bug#9810: cw in viper mode clobbers clipboard In-reply-to: X-012-Sender: halo1@inter.net.il To: Bob Nnamtrop Message-id: <83r527sk66.fsf@gnu.org> References: X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 9810 Cc: 9810@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) > Date: Thu, 20 Oct 2011 10:18:06 -0600 > From: Bob Nnamtrop > > emacs -Q > M-x viper > i (ie, go into insert mode) > asdf hjkl (type a few words) > (ie, go into command mode) > click on the 'a' (or move there any way you want) > double click to put 'asdf' into emacs clipboard (ie X11 clipboard, > primary, whatever) > click on the 'h' (or move there any way you want) > cw (ie viper command to change word)j > (to paste the clipboard, or yank or whatever > emacs calls it :-) > hjkl is pasted in > > But 'asdf' should have been pasted in. Did you read the section "Selection changes" in etc/NEWS? I think what you see is the result of a deliberate change in behavior described there. In particular, double-clicking a mouse no longer puts the selected text into the clipboard, only into the PRIMARY selection. > This is very annoying and I cannot imagine using the new version if > this is not fixed. The above-mentioned section also tells you how to customize Emacs to get the old behavior back. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 20 12:45:52 2011 Received: (at 9810) by debbugs.gnu.org; 20 Oct 2011 16:45:52 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGvkd-0000gc-Fe for submit@debbugs.gnu.org; Thu, 20 Oct 2011 12:45:51 -0400 Received: from mail-vw0-f44.google.com ([209.85.212.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGvkY-0000gN-Hu for 9810@debbugs.gnu.org; Thu, 20 Oct 2011 12:45:47 -0400 Received: by vws5 with SMTP id 5so2172846vws.3 for <9810@debbugs.gnu.org>; Thu, 20 Oct 2011 09:44:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=dySa8pTvzN+N7gKLQxfRd2Fg5KgThNMFu1EEhFBFPdo=; b=hBuQdYVlxUmxeUyljqEQmp/AB3zBFJd0P1J/Jqco1i0N6vcrL/1W8az2iuCZOqH40o tu60d+iPKPnN5iXUKr9sI0pCX0DUL7WYa6IsB5rv6s5hSXOcm/rsEBfob3FZMV0572Ze oMth6Tfh/Ck5SR0Y1bFbKk5PUpC59nYTrml1E= MIME-Version: 1.0 Received: by 10.52.90.51 with SMTP id bt19mr11849271vdb.34.1319129071866; Thu, 20 Oct 2011 09:44:31 -0700 (PDT) Received: by 10.52.116.1 with HTTP; Thu, 20 Oct 2011 09:44:31 -0700 (PDT) In-Reply-To: References: Date: Thu, 20 Oct 2011 10:44:31 -0600 Message-ID: Subject: Re: bug#9810: cw in viper mode clobbers clipboard From: Bob Nnamtrop To: Lennart Borgman Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: 9810 Cc: 9810@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.9 (---) On Thu, Oct 20, 2011 at 10:25 AM, Lennart Borgman wrote: > On Thu, Oct 20, 2011 at 18:18, Bob Nnamtrop wrote: >> But 'asdf' should have been pasted in. This also occurs with other >> commands like 'ct', etc. This is very annoying and I cannot imagine >> using the new version if this is not fixed. > > I think the current behavior is the correct one. Why do you think it > is in error? > Because the just typing 'cw' should not cause either clipboard or primary to be altered. The word is highlighted but that should be it, it should not go into primary (or clipboard or any other selection). The way it is now the common (for me) work-flow (put something into primary, go somewhere else, use cw then to change that word) described above does not work anymore. The changes to primary and clipboard described in NEWS have nothing to do with this (or should not). Bob From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 20 12:50:50 2011 Received: (at 9810) by debbugs.gnu.org; 20 Oct 2011 16:50:50 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGvpP-0000nZ-By for submit@debbugs.gnu.org; Thu, 20 Oct 2011 12:50:49 -0400 Received: from mail-gy0-f172.google.com ([209.85.160.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGvpM-0000nM-Do for 9810@debbugs.gnu.org; Thu, 20 Oct 2011 12:50:45 -0400 Received: by gyh20 with SMTP id 20so2914241gyh.3 for <9810@debbugs.gnu.org>; Thu, 20 Oct 2011 09:49:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=HTGBgf+xhfM/kvRgEW2bP+Hs+VGzla6egKhlAN/OUZ4=; b=DnAM4D3ObMtMYhcDMnKltJri+TQncyiggEHSIJP1qKqSlvDcyHuOa1946tCB7Q6hbk K8Kqn38KlFh34rHcWr2STlBY5W7tiPvvadpSUJ4UgSxE24QZ2f51ASO8RtkB5WHLckz1 S9fvSPUcRSSr3F3bBmskwAGstZ5YOdEAlhHNI= Received: by 10.223.16.82 with SMTP id n18mr19136179faa.2.1319129345268; Thu, 20 Oct 2011 09:49:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.152.20.229 with HTTP; Thu, 20 Oct 2011 09:48:45 -0700 (PDT) In-Reply-To: References: From: Lennart Borgman Date: Thu, 20 Oct 2011 18:48:45 +0200 Message-ID: Subject: Re: bug#9810: cw in viper mode clobbers clipboard To: Bob Nnamtrop Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: 9810 Cc: 9810@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) On Thu, Oct 20, 2011 at 18:44, Bob Nnamtrop wrote: > On Thu, Oct 20, 2011 at 10:25 AM, Lennart Borgman > wrote: >> On Thu, Oct 20, 2011 at 18:18, Bob Nnamtrop wrote: >>> But 'asdf' should have been pasted in. This also occurs with other >>> commands like 'ct', etc. This is very annoying and I cannot imagine >>> using the new version if this is not fixed. >> >> I think the current behavior is the correct one. Why do you think it >> is in error? >> > > Because the just typing 'cw' should not cause either clipboard or > primary to be altered. I do expect cw to cause the clipboard to change since something from the buffer is erased. I think most people would expect that too. However I do not understand the reason for why think differently. (Except that you find it inconvenient, but that is a different thing.) From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 20 12:50:57 2011 Received: (at 9810) by debbugs.gnu.org; 20 Oct 2011 16:50:57 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGvpX-0000ns-Ea for submit@debbugs.gnu.org; Thu, 20 Oct 2011 12:50:57 -0400 Received: from mail-vw0-f44.google.com ([209.85.212.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGvpU-0000nY-Ip for 9810@debbugs.gnu.org; Thu, 20 Oct 2011 12:50:53 -0400 Received: by vws5 with SMTP id 5so2177608vws.3 for <9810@debbugs.gnu.org>; Thu, 20 Oct 2011 09:49:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=xlAYLiCfOc3girAirfwfmzw31tfnfCEwa/vGRVhbzYc=; b=r4QAYx/bQNJ26e1wFNsvcr8SHHvLULLqxVCp63086SLquDP7exyWRdOxrgdbir3mkK 8ZWWhcB63QfFEGuDuJnlOLq2BKhiipzBMuFMD6e7qlu5bZACRzrmqvUrZ+lcMQqSOP9F K6++2OqcHqxxp0bWYsp84pQ2V7w8fA4C3LV/A= MIME-Version: 1.0 Received: by 10.52.34.83 with SMTP id x19mr11396714vdi.102.1319129310585; Thu, 20 Oct 2011 09:48:30 -0700 (PDT) Received: by 10.52.116.1 with HTTP; Thu, 20 Oct 2011 09:48:30 -0700 (PDT) In-Reply-To: <83r527sk66.fsf@gnu.org> References: <83r527sk66.fsf@gnu.org> Date: Thu, 20 Oct 2011 10:48:30 -0600 Message-ID: Subject: Re: bug#9810: cw in viper mode clobbers clipboard From: Bob Nnamtrop To: Eli Zaretskii Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.9 (---) X-Debbugs-Envelope-To: 9810 Cc: 9810@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.9 (---) On Thu, Oct 20, 2011 at 10:27 AM, Eli Zaretskii wrote: >> Date: Thu, 20 Oct 2011 10:18:06 -0600 >> From: Bob Nnamtrop >> >> emacs -Q >> M-x viper >> i (ie, go into insert mode) >> asdf hjkl (type a few words) >> (ie, go into command mode) >> click on the 'a' (or move there any way you want) >> double click to put 'asdf' into emacs clipboard (ie X11 clipboard, >> primary, whatever) >> click on the 'h' (or move there any way you want) >> cw (ie viper command to change word)j >> (to paste the clipboard, or yank or whatever >> emacs calls it :-) >> hjkl is pasted in >> >> But 'asdf' should have been pasted in. > > Did you read the section "Selection changes" in etc/NEWS? =A0I think > what you see is the result of a deliberate change in behavior > described there. =A0In particular, double-clicking a mouse no longer > puts the selected text into the clipboard, only into the PRIMARY > selection. > >> This is very annoying and I cannot imagine using the new version if >> this is not fixed. > > The above-mentioned section also tells you how to customize Emacs to > get the old behavior back. > I just read that info in NEWS about selection changes and I'm glad I did (since it will affect me in other ways). But it should have nothing to do with the bug I describe. The point I make is that 'cw' should not alter any of the selections (primary, clipboard, etc). The word gets hi-lighted but that is only a visual aid, it should not alter the 'selection'. Bob From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 20 12:58:53 2011 Received: (at 9810) by debbugs.gnu.org; 20 Oct 2011 16:58:53 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGvxE-0000ym-0N for submit@debbugs.gnu.org; Thu, 20 Oct 2011 12:58:52 -0400 Received: from mail-vx0-f172.google.com ([209.85.220.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGvx8-0000yW-Eh for 9810@debbugs.gnu.org; Thu, 20 Oct 2011 12:58:49 -0400 Received: by vcbfo1 with SMTP id fo1so2643583vcb.3 for <9810@debbugs.gnu.org>; Thu, 20 Oct 2011 09:57:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ebixmkEtBHksHFxPlkJ4pijUEwCmCsRRWd8+H51CRUs=; b=CF4wNk3YbqC3u1/UE5qf0Dth2y82isFKZO5k2uWN6rkli0vj06XH+cIWEraCfVJUmX iN8hXOJZ6s1U9ONgniD4EEi+cjbyJUC6Dj3zg/FOggut3iWNZMAhL9B6yjP94HWsqPu2 JfffnEkJ1KJyC9U4IlSElFxfogc/KTa8XzZpU= MIME-Version: 1.0 Received: by 10.52.69.52 with SMTP id b20mr1413459vdu.85.1319129851625; Thu, 20 Oct 2011 09:57:31 -0700 (PDT) Received: by 10.52.116.1 with HTTP; Thu, 20 Oct 2011 09:57:31 -0700 (PDT) In-Reply-To: References: Date: Thu, 20 Oct 2011 10:57:31 -0600 Message-ID: Subject: Re: bug#9810: cw in viper mode clobbers clipboard From: Bob Nnamtrop To: Lennart Borgman Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Score: -3.9 (---) X-Debbugs-Envelope-To: 9810 Cc: 9810@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.9 (---) On Thu, Oct 20, 2011 at 10:48 AM, Lennart Borgman wrote: > On Thu, Oct 20, 2011 at 18:44, Bob Nnamtrop wrote: >> On Thu, Oct 20, 2011 at 10:25 AM, Lennart Borgman >> wrote: >>> On Thu, Oct 20, 2011 at 18:18, Bob Nnamtrop wrote: >>>> But 'asdf' should have been pasted in. This also occurs with other >>>> commands like 'ct', etc. This is very annoying and I cannot imagine >>>> using the new version if this is not fixed. >>> >>> I think the current behavior is the correct one. Why do you think it >>> is in error? >>> >> >> Because the just typing 'cw' should not cause either clipboard or >> primary to be altered. > > I do expect cw to cause the clipboard to change since something from > the buffer is erased. I think most people would expect that too. > > However I do not understand the reason for why think differently. > (Except that you find it inconvenient, but that is a different thing.) > Right after you type 'cw' nothing in the buffer is erased. The word is hi-lighted but that is it. So it should not change any selection at that point. Try what I describe in 23.3. You will see it is a regression. Bob From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 20 12:59:39 2011 Received: (at 9810) by debbugs.gnu.org; 20 Oct 2011 16:59:39 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGvxz-000107-2k for submit@debbugs.gnu.org; Thu, 20 Oct 2011 12:59:39 -0400 Received: from mail-yx0-f172.google.com ([209.85.213.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGvxv-0000zv-Ji for 9810@debbugs.gnu.org; Thu, 20 Oct 2011 12:59:36 -0400 Received: by yxj19 with SMTP id 19so2924635yxj.3 for <9810@debbugs.gnu.org>; Thu, 20 Oct 2011 09:58:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=MjzstDnevleOEWad6UnDlnzxQF/pL7dCYM0uJwLRgy4=; b=s/CWCNopLutjpfLu+RkjHhMmnt1APMhHRfR4LRwJ4HCAdBcj1/qhrVsWbYkeO80qsW Z85ai0vBFC6DNj4BClkgysjSEBu1n6NwTe72nxLuAWTHrBfmvXjdfTMJi4DGdfxY25oX zPKI+UjW1kH8Kt5+6hFNN8isr36UCVQCe29RA= Received: by 10.223.76.201 with SMTP id d9mr19272003fak.12.1319129900233; Thu, 20 Oct 2011 09:58:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.152.20.229 with HTTP; Thu, 20 Oct 2011 09:58:00 -0700 (PDT) In-Reply-To: References: <83r527sk66.fsf@gnu.org> From: Lennart Borgman Date: Thu, 20 Oct 2011 18:58:00 +0200 Message-ID: Subject: Re: bug#9810: cw in viper mode clobbers clipboard To: Bob Nnamtrop Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: 9810 Cc: Eli Zaretskii , 9810@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) On Thu, Oct 20, 2011 at 18:48, Bob Nnamtrop wrote: > > The point I make is that 'cw' > should not alter any of the selections (primary, clipboard, etc). Doing just 'cw' in viper actually deletes the word in the buffer so putting it on the clipboard is the expected behavior. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 20 13:00:12 2011 Received: (at 9810) by debbugs.gnu.org; 20 Oct 2011 17:00:12 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGvyV-00011f-JH for submit@debbugs.gnu.org; Thu, 20 Oct 2011 13:00:12 -0400 Received: from mtaout23.012.net.il ([80.179.55.175]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGvyQ-00010Z-Re for 9810@debbugs.gnu.org; Thu, 20 Oct 2011 13:00:08 -0400 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0LTD00700ITO5R00@a-mtaout23.012.net.il> for 9810@debbugs.gnu.org; Thu, 20 Oct 2011 18:58:50 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.124.212.197]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LTD007PEJ616200@a-mtaout23.012.net.il>; Thu, 20 Oct 2011 18:58:50 +0200 (IST) Date: Thu, 20 Oct 2011 18:58:53 +0200 From: Eli Zaretskii Subject: Re: bug#9810: cw in viper mode clobbers clipboard In-reply-to: X-012-Sender: halo1@inter.net.il To: Bob Nnamtrop Message-id: <83pqhrsipe.fsf@gnu.org> References: X-Spam-Score: -1.8 (-) X-Debbugs-Envelope-To: 9810 Cc: lennart.borgman@gmail.com, 9810@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.8 (-) > Date: Thu, 20 Oct 2011 10:44:31 -0600 > From: Bob Nnamtrop > Cc: 9810@debbugs.gnu.org > > just typing 'cw' should not cause either clipboard or > primary to be altered. The word is highlighted but that should be it, > it should not go into primary (or clipboard or any other selection). > The way it is now the common (for me) work-flow (put something into > primary, go somewhere else, use cw then to change that > word) described above does not work anymore. The changes to primary > and clipboard described in NEWS have nothing to do with this (or > should not). Can you tell me which function does the cw command run? From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 20 13:11:20 2011 Received: (at 9810) by debbugs.gnu.org; 20 Oct 2011 17:11:20 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGw9G-0001HQ-2O for submit@debbugs.gnu.org; Thu, 20 Oct 2011 13:11:19 -0400 Received: from mail-vw0-f44.google.com ([209.85.212.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGw9B-0001HB-Mo for 9810@debbugs.gnu.org; Thu, 20 Oct 2011 13:11:15 -0400 Received: by vws5 with SMTP id 5so2197516vws.3 for <9810@debbugs.gnu.org>; Thu, 20 Oct 2011 10:09:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=9czaHWYrpJtmAcjECDtTX+Q54A+jm/nthm9jCehYPps=; b=LdxCL1TX6do5CGvNgDrLG9lMaFkMkpp4NyL4uzZMUJQ6YtBGzgrpu/b5KkscoESJt7 U4fzwUoeaUVWL/z3+2Jod0PU5kK1bvDklQMseVxY51yDHD83lfvk66wiTT5YKvDZ3zlt 7twelszYU7f+UWVj6JVw+/AN+qZqKhCRq1q88= MIME-Version: 1.0 Received: by 10.52.92.212 with SMTP id co20mr11658743vdb.119.1319130598648; Thu, 20 Oct 2011 10:09:58 -0700 (PDT) Received: by 10.52.116.1 with HTTP; Thu, 20 Oct 2011 10:09:58 -0700 (PDT) In-Reply-To: References: <83r527sk66.fsf@gnu.org> Date: Thu, 20 Oct 2011 11:09:58 -0600 Message-ID: Subject: Re: bug#9810: cw in viper mode clobbers clipboard From: Bob Nnamtrop To: Lennart Borgman Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Score: -3.9 (---) X-Debbugs-Envelope-To: 9810 Cc: Eli Zaretskii , 9810@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.9 (---) On Thu, Oct 20, 2011 at 10:58 AM, Lennart Borgman wrote: > On Thu, Oct 20, 2011 at 18:48, Bob Nnamtrop wrote: >> >> The point I make is that 'cw' >> should not alter any of the selections (primary, clipboard, etc). > > Doing just 'cw' in viper actually deletes the word in the buffer so > putting it on the clipboard is the expected behavior. > Well, I do not know if that is true or not from a technical standpoint. But from the user perspective the word is not deleted until you type some new text or hit . Right after typing cw the word is still displayed and it is hi-lighted. So I would not say it is deleted. There is no advantage to the user to clobber the selection that that point, since they may want to use what was previously in there. I just tried what I originally describe in a terminal window (ie starting from emacs -Q -nw) and it works as I expect. The previously selected selection is pasted in to the hi-lighted word after typing cw. Just like it all previous versions of emacs (terminal or not). Bob From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 20 13:13:57 2011 Received: (at 9810) by debbugs.gnu.org; 20 Oct 2011 17:13:57 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGwBm-0001Kz-Tn for submit@debbugs.gnu.org; Thu, 20 Oct 2011 13:13:56 -0400 Received: from mail-vw0-f44.google.com ([209.85.212.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGwBj-0001Kj-D5 for 9810@debbugs.gnu.org; Thu, 20 Oct 2011 13:13:53 -0400 Received: by vws5 with SMTP id 5so2200251vws.3 for <9810@debbugs.gnu.org>; Thu, 20 Oct 2011 10:12:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=pBWcIXnIzO1mNuXwk5Pa0zcc4TYnC6SJza8Yv7K8vgo=; b=my9JhfzDeFW1rJelJ2oJYNF4y97UHfzU5oKqGrXybhREojjXzycpoUUG5T88zIuKUY NEeiFY1jz07kp9BU2GjW1ZWjDSBldnD5iwftv+1eMr+dY5IBfYa73gTvdrVqJHMM3J8z 47DO137GsVi14m5KW0bFGTKuxsuaFiolxHXvg= MIME-Version: 1.0 Received: by 10.52.74.69 with SMTP id r5mr2229535vdv.51.1319130756721; Thu, 20 Oct 2011 10:12:36 -0700 (PDT) Received: by 10.52.116.1 with HTTP; Thu, 20 Oct 2011 10:12:36 -0700 (PDT) In-Reply-To: <83pqhrsipe.fsf@gnu.org> References: <83pqhrsipe.fsf@gnu.org> Date: Thu, 20 Oct 2011 11:12:36 -0600 Message-ID: Subject: Re: bug#9810: cw in viper mode clobbers clipboard From: Bob Nnamtrop To: Eli Zaretskii Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: 9810 Cc: lennart.borgman@gmail.com, 9810@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.8 (---) On Thu, Oct 20, 2011 at 10:58 AM, Eli Zaretskii wrote: >> Date: Thu, 20 Oct 2011 10:44:31 -0600 >> From: Bob Nnamtrop >> Cc: 9810@debbugs.gnu.org >> >> just typing 'cw' should not cause either clipboard or >> primary to be altered. The word is highlighted but that should be it, >> it should not go into primary (or clipboard or any other selection). >> The way it is now the common (for me) work-flow (put something into >> primary, go somewhere else, use cw then to change that >> word) described above does not work anymore. The changes to primary >> and clipboard described in NEWS have nothing to do with this (or >> should not). > > Can you tell me which function does the cw command run? > Well, I do not really understand the viper code, but some searching and I found this comment at line 1602 in viper-cmd.el ;; This function is called by various movement commands to execute a ;; destructive command on the region specified by the movement command. For ;; instance, if the user types cw, then the command viper-forward-word will ;; call viper-execute-com to execute viper-exec-change, which eventually will ;; call viper-change to invoke the replace mode on the region. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 20 13:18:49 2011 Received: (at 9810) by debbugs.gnu.org; 20 Oct 2011 17:18:49 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGwGV-0001SH-P2 for submit@debbugs.gnu.org; Thu, 20 Oct 2011 13:18:48 -0400 Received: from mtaout21.012.net.il ([80.179.55.169]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGwGT-0001S4-3r for 9810@debbugs.gnu.org; Thu, 20 Oct 2011 13:18:46 -0400 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0LTD00L00JT2UN00@a-mtaout21.012.net.il> for 9810@debbugs.gnu.org; Thu, 20 Oct 2011 19:16:09 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.124.212.197]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LTD00LT1JYWMEB0@a-mtaout21.012.net.il>; Thu, 20 Oct 2011 19:16:09 +0200 (IST) Date: Thu, 20 Oct 2011 19:16:11 +0200 From: Eli Zaretskii Subject: Re: bug#9810: cw in viper mode clobbers clipboard In-reply-to: X-012-Sender: halo1@inter.net.il To: Bob Nnamtrop Message-id: <83obxbshwk.fsf@gnu.org> References: <83r527sk66.fsf@gnu.org> X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 9810 Cc: lennart.borgman@gmail.com, 9810@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) > Date: Thu, 20 Oct 2011 11:09:58 -0600 > From: Bob Nnamtrop > Cc: Eli Zaretskii , 9810@debbugs.gnu.org > > I just tried what I originally describe in a terminal window (ie > starting from emacs -Q -nw) and it works as I expect. The previously > selected selection is pasted in to the hi-lighted word after typing > cw. Just like it all previous versions of emacs (terminal or not). On a text terminal, Emacs does not interact with the clipboard or selections, so any problems with the clipboard or selections will never show in "emacs -nw". From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 20 16:08:14 2011 Received: (at 9810) by debbugs.gnu.org; 20 Oct 2011 20:08:14 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGyuT-0005N7-FH for submit@debbugs.gnu.org; Thu, 20 Oct 2011 16:08:14 -0400 Received: from pruche.dit.umontreal.ca ([132.204.246.22]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGyuO-0005Md-AB for 9810@debbugs.gnu.org; Thu, 20 Oct 2011 16:08:10 -0400 Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id p9KK6lij009503; Thu, 20 Oct 2011 16:06:51 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 238A4664BB; Thu, 20 Oct 2011 14:46:18 -0400 (EDT) From: Stefan Monnier To: Bob Nnamtrop Subject: Re: bug#9810: cw in viper mode clobbers clipboard Message-ID: References: Date: Thu, 20 Oct 2011 14:46:18 -0400 In-Reply-To: (Bob Nnamtrop's message of "Thu, 20 Oct 2011 10:57:31 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4016=0 X-NAI-Spam-Version: 2.2.0.9286 : core <4016> : streams <693573> : uri <988088> X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 9810 Cc: Lennart Borgman , 9810@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) > Right after you type 'cw' nothing in the buffer is erased. The word is > hi-lighted but that is it. So it should not change any selection at That's what is supposed to happen now that select-active-regions defaults to t. Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 20 16:29:32 2011 Received: (at 9810) by debbugs.gnu.org; 20 Oct 2011 20:29:32 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGzF5-0005rX-TR for submit@debbugs.gnu.org; Thu, 20 Oct 2011 16:29:32 -0400 Received: from mail-vw0-f44.google.com ([209.85.212.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGzF3-0005rM-L5 for 9810@debbugs.gnu.org; Thu, 20 Oct 2011 16:29:30 -0400 Received: by vws5 with SMTP id 5so2371103vws.3 for <9810@debbugs.gnu.org>; Thu, 20 Oct 2011 13:28:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Uoj7zyTFyaaeYpsRVb2l0o6Vdg49HFsju9bGVOJWmNA=; b=xTe/ETxTwTW88eSCVAQE+Nze1EFASfUb+wC16D5Dk0Hx//Q6mPtO/yJz8Fxao9ygRs 9gIh22Wt+akaX7JG70Tx38ACo5QjeVIFzO4RzDc9JeA24itfqEGrHR8UBmqmYepxoF5h McAne2QpLAN8ILbHwg/5Srp1ukEdKX1ezIeLc= MIME-Version: 1.0 Received: by 10.52.92.212 with SMTP id co20mr12237642vdb.119.1319142494053; Thu, 20 Oct 2011 13:28:14 -0700 (PDT) Received: by 10.52.116.1 with HTTP; Thu, 20 Oct 2011 13:28:14 -0700 (PDT) In-Reply-To: References: Date: Thu, 20 Oct 2011 14:28:14 -0600 Message-ID: Subject: Re: bug#9810: cw in viper mode clobbers clipboard From: Bob Nnamtrop To: Stefan Monnier Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: 9810 Cc: Lennart Borgman , 9810@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.8 (---) On Thu, Oct 20, 2011 at 12:46 PM, Stefan Monnier wrote: >> Right after you type 'cw' nothing in the buffer is erased. The word is >> hi-lighted but that is it. So it should not change any selection at > > That's what is supposed to happen now that select-active-regions > defaults to t. I like the behavior of select-active-regions when it is set to t. However, I do not consider the selected word when one does 'cw' an active region (in the usual emacs sense). It is a vi construct independent of emacs active regions and so it need not honor the select-active-regions setting. I am curious what other long-time viper mode users think about this change in behavior (note that I no idea if any of the responders to this bug report are viper users or not). Bob From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 20 16:34:33 2011 Received: (at 9810) by debbugs.gnu.org; 20 Oct 2011 20:34:33 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGzJw-0005z8-Gl for submit@debbugs.gnu.org; Thu, 20 Oct 2011 16:34:33 -0400 Received: from mail-bw0-f44.google.com ([209.85.214.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGzJu-0005yu-DL for 9810@debbugs.gnu.org; Thu, 20 Oct 2011 16:34:31 -0400 Received: by bkas6 with SMTP id s6so3651189bka.3 for <9810@debbugs.gnu.org>; Thu, 20 Oct 2011 13:33:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=pdrVosWh/P+2VyMVxWhX0vsvML6fgnOAT5Okiejjo0Q=; b=R1QsyKZZNvC3cQaBrqK+9Lz0E580AE2OeU/9B/LGCu9YIYGQsG5zICuoAHpeIFAq9b dnDVtw74FD3gpU0iT0MSH+fTDEQ1WS6/paVG/9A7t6FIMpSOIXpfzoRXjbvW7hvsfYy/ 11GjXZoBl0EXq9FFAjyyNrPF9igFbjZ+/+QbE= Received: by 10.223.15.10 with SMTP id i10mr20135094faa.17.1319142794275; Thu, 20 Oct 2011 13:33:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.152.20.229 with HTTP; Thu, 20 Oct 2011 13:32:54 -0700 (PDT) In-Reply-To: References: From: Lennart Borgman Date: Thu, 20 Oct 2011 22:32:54 +0200 Message-ID: Subject: Re: bug#9810: cw in viper mode clobbers clipboard To: Bob Nnamtrop Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: 9810 Cc: Stefan Monnier , 9810@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) On Thu, Oct 20, 2011 at 22:28, Bob Nnamtrop wrote: > > I am curious what other long-time viper mode users think about this > change in behavior (note that I no idea if any of the responders to > this bug report are viper users or not). I am always using viper (and have contributed some small bits to it). From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 20 16:59:15 2011 Received: (at 9810) by debbugs.gnu.org; 20 Oct 2011 20:59:15 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGzhr-0006a0-Ja for submit@debbugs.gnu.org; Thu, 20 Oct 2011 16:59:15 -0400 Received: from mail-vw0-f44.google.com ([209.85.212.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGzhp-0006Zg-6N for 9810@debbugs.gnu.org; Thu, 20 Oct 2011 16:59:13 -0400 Received: by vws5 with SMTP id 5so2394645vws.3 for <9810@debbugs.gnu.org>; Thu, 20 Oct 2011 13:57:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=58iA73fko+glBvgcezyF77Rqd8i32TtGKwp5iaUJZog=; b=r0r6O07T5UCEDemyX9OYKaWaEm8Eshxqo1w+obJ4/INZ+TrXyeUN4/eLBkCR7CIlK6 DKiDuQJE7CMKTdlHfmnk3E5yQyfzQYpI5MByBk50cZ19JutZLT36HQjsDz9z/YykNnck GP4hWXnPe1aq8/WnhY1BkHtOJCgRq14NEtf+4= MIME-Version: 1.0 Received: by 10.52.74.69 with SMTP id r5mr2889617vdv.51.1319144277407; Thu, 20 Oct 2011 13:57:57 -0700 (PDT) Received: by 10.52.116.1 with HTTP; Thu, 20 Oct 2011 13:57:57 -0700 (PDT) In-Reply-To: References: Date: Thu, 20 Oct 2011 14:57:57 -0600 Message-ID: Subject: Re: bug#9810: cw in viper mode clobbers clipboard From: Bob Nnamtrop To: Stefan Monnier Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: 9810 Cc: Lennart Borgman , 9810@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.8 (---) On Thu, Oct 20, 2011 at 12:46 PM, Stefan Monnier wrote: >> Right after you type 'cw' nothing in the buffer is erased. The word is >> hi-lighted but that is it. So it should not change any selection at > > That's what is supposed to happen now that select-active-regions > defaults to t. Playing around a bit more exposes more inconsistencies: -using the viper command R (viper-overwrite) hi-lights to the end of the line in a similar way as cw does to the end of the word but the primary selection is not clobbered. This is inconsistent to the behavior of cw (although better). -pasting in the primary selection (using ) or the clipboard using C-y after the viper command R pastes the selection in front of the 'R selection' instead of replacing the first part of the 'R selection' (whereas the same action after cw replaces the first part of the 'cw selection'). Here the behavior of R is worse than cw. Bob From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 20 17:05:12 2011 Received: (at 9810) by debbugs.gnu.org; 20 Oct 2011 21:05:12 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGznc-0006iv-9x for submit@debbugs.gnu.org; Thu, 20 Oct 2011 17:05:12 -0400 Received: from mail-bw0-f44.google.com ([209.85.214.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGzna-0006ij-Gl for 9810@debbugs.gnu.org; Thu, 20 Oct 2011 17:05:11 -0400 Received: by bkas6 with SMTP id s6so3675490bka.3 for <9810@debbugs.gnu.org>; Thu, 20 Oct 2011 14:03:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=bYSVAsIkxMpPgqsgw5I7qn+n5X1TwYGHJLSFy2oTCes=; b=w3pSQ5XAPHGk1Q67Rw3QnKQyv6lSsiX07IyEL67jeGp3fTXU3lE474by5PqQJetPZe BCcdDm12HFSIdjTP2fW/bq6dVl+o9M9nv5jqldMr3EzbguMantZin6NN0nJIMSazABud +Acy5VGwOgWLMCEAH/rt/8a5t3/mwW55SHno8= Received: by 10.223.36.193 with SMTP id u1mr9476097fad.27.1319144634247; Thu, 20 Oct 2011 14:03:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.152.20.229 with HTTP; Thu, 20 Oct 2011 14:03:34 -0700 (PDT) In-Reply-To: References: From: Lennart Borgman Date: Thu, 20 Oct 2011 23:03:34 +0200 Message-ID: Subject: Re: bug#9810: cw in viper mode clobbers clipboard To: Bob Nnamtrop Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: 9810 Cc: Stefan Monnier , 9810@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) On Thu, Oct 20, 2011 at 22:57, Bob Nnamtrop wrote: > On Thu, Oct 20, 2011 at 12:46 PM, Stefan Monnier > wrote: >>> Right after you type 'cw' nothing in the buffer is erased. The word is >>> hi-lighted but that is it. So it should not change any selection at >> >> That's what is supposed to happen now that select-active-regions >> defaults to t. > > Playing around a bit more exposes more inconsistencies: > > -using the viper command R (viper-overwrite) hi-lights to the end of > the line in a similar way as cw does to the end of the word but the > primary selection is not clobbered. This is inconsistent to the > behavior of cw (although better). They actually work quite different. If you press ESC immediately after R then nothing is changed in the buffer. However if you press escape after cw then the word is still deleted. So with respect to clipboard handling I think both are consistent and ok. But maybe they do not behave the way vi does in this cases. (But that is a totally different matter than this bug report.) From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 20 17:32:22 2011 Received: (at 9810) by debbugs.gnu.org; 20 Oct 2011 21:32:22 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RH0Dt-0007Nz-TB for submit@debbugs.gnu.org; Thu, 20 Oct 2011 17:32:22 -0400 Received: from relais.videotron.ca ([24.201.245.36]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RH0Dr-0007Nr-Oj for 9810@debbugs.gnu.org; Thu, 20 Oct 2011 17:32:20 -0400 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from ceviche.home ([24.48.59.205]) by VL-VM-MR001.ip.videotron.ca (Oracle Communications Messaging Exchange Server 7u4-22.01 64bit (built Apr 21 2011)) with ESMTP id <0LTD00CHCVPZLKB0@VL-VM-MR001.ip.videotron.ca> for 9810@debbugs.gnu.org; Thu, 20 Oct 2011 17:30:00 -0400 (EDT) Received: by ceviche.home (Postfix, from userid 20848) id A430A660B6; Thu, 20 Oct 2011 17:31:07 -0400 (EDT) From: Stefan Monnier To: Bob Nnamtrop Subject: Re: bug#9810: cw in viper mode clobbers clipboard Message-id: References: Date: Thu, 20 Oct 2011 17:31:07 -0400 In-reply-to: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 9810 Cc: Lennart Borgman , 9810@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > I like the behavior of select-active-regions when it is set to t. [ FWIW, I don't. ;-) ] > However, I do not consider the selected word when one does 'cw' an > active region (in the usual emacs sense). I see. But technically, it is (i.e. that's how Viper implements it). > It is a vi construct independent of Emacs active regions and so it > need not honor the select-active-regions setting. Of course, Viper could be changed to use some other mechanism, but it is convenient to use the region for that. I'm not sure how/if we could let Viper tell Emacs to ignore select-active-regions for this case. > I am curious what other long-time viper mode users think about this > change in behavior (note that I no idea if any of the responders to > this bug report are viper users or not). I don't use Viper myself, so I'll let others handle this part. Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 20 18:13:36 2011 Received: (at 9810) by debbugs.gnu.org; 20 Oct 2011 22:13:37 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RH0ro-0008LD-Mp for submit@debbugs.gnu.org; Thu, 20 Oct 2011 18:13:36 -0400 Received: from mail-vw0-f44.google.com ([209.85.212.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RH0rm-0008Ky-8E for 9810@debbugs.gnu.org; Thu, 20 Oct 2011 18:13:35 -0400 Received: by vws5 with SMTP id 5so2442847vws.3 for <9810@debbugs.gnu.org>; Thu, 20 Oct 2011 15:12:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=3uVZQgaEnYI44I58UiMWJPVkkj35RWA4AUDByhE7YYU=; b=YIO91/E/445Kq4yFTL3ioN0NklqeVBHwRwJ3SXcNy2NxcGXqjj8J3C3+O1nKwwqHP1 Erax3vVNo861HWrNyp//RK40SAGXW455nmP2+MfiwNc8SDmOmdeF+aXfJCMHWSgh0uAX zTbzWhFGcIC28sWjDvVGoguGLfqyNp567SIRU= MIME-Version: 1.0 Received: by 10.52.34.83 with SMTP id x19mr12304009vdi.102.1319148738011; Thu, 20 Oct 2011 15:12:18 -0700 (PDT) Received: by 10.52.116.1 with HTTP; Thu, 20 Oct 2011 15:12:17 -0700 (PDT) In-Reply-To: References: Date: Thu, 20 Oct 2011 16:12:17 -0600 Message-ID: Subject: Re: bug#9810: cw in viper mode clobbers clipboard From: Bob Nnamtrop To: Stefan Monnier Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: 9810 Cc: Lennart Borgman , 9810@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.8 (---) On Thu, Oct 20, 2011 at 3:31 PM, Stefan Monnier wrote: >> I like the behavior of select-active-regions when it is set to t. > > [ FWIW, I don't. ;-) =A0] I figured I would set select-active-regions to nil since I never changed in in earlier versions, but there is an difference to the old behavior. In 23.3 (and before): -when one used the mouse to select a region the primary selection was set -when one set the mark and used movement commands to make an active region, the primary selection was not set In 24.0., if select-active-regions is t, both of these actions set the primary selection. But if select-active-regions is nil, neither of these actions set the primary selection. Do you know how I would get the behavior back what it was in 23.3? Thanks, Bob From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 20 18:39:45 2011 Received: (at 9810) by debbugs.gnu.org; 20 Oct 2011 22:39:45 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RH1H4-0000Xa-E7 for submit@debbugs.gnu.org; Thu, 20 Oct 2011 18:39:43 -0400 Received: from mail-vx0-f172.google.com ([209.85.220.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RH1H2-0000XN-49 for 9810@debbugs.gnu.org; Thu, 20 Oct 2011 18:39:40 -0400 Received: by vcbfo1 with SMTP id fo1so2917212vcb.3 for <9810@debbugs.gnu.org>; Thu, 20 Oct 2011 15:38:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=2svfka1/G2jJhoAKiZ0YLK3gltObs0E3P8yYNEiYle0=; b=oVOrenY+49j32Yhtx3YIgEijgxlEyN4UvxgrfwCr0pKhm+LyczJZS7fWJ7oAnj3omD 2+LFEAzM+nzKIQEvrrB4gImT/57X3JTPun14iJUFin0FZFoXP5xDolgKuwr0ax+HGA6C cUy0Kf9DD03rJ8Z70omza0GzINMzgfQHG+Rx4= MIME-Version: 1.0 Received: by 10.52.69.52 with SMTP id b20mr2345714vdu.85.1319150303763; Thu, 20 Oct 2011 15:38:23 -0700 (PDT) Received: by 10.52.116.1 with HTTP; Thu, 20 Oct 2011 15:38:23 -0700 (PDT) In-Reply-To: References: Date: Thu, 20 Oct 2011 16:38:23 -0600 Message-ID: Subject: Re: bug#9810: cw in viper mode clobbers clipboard From: Bob Nnamtrop To: Stefan Monnier Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: 9810 Cc: Lennart Borgman , 9810@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.8 (---) On Thu, Oct 20, 2011 at 4:12 PM, Bob Nnamtrop wrote= : > On Thu, Oct 20, 2011 at 3:31 PM, Stefan Monnier > wrote: >>> I like the behavior of select-active-regions when it is set to t. >> >> [ FWIW, I don't. ;-) =A0] > > I figured I would set select-active-regions to nil since I never > changed in in earlier versions, but there is an difference to the old > behavior. In 23.3 (and before): > > -when one used the mouse to select a region the primary selection was set > > -when one set the mark and used movement commands to make an active > region, the primary selection was not set > > In 24.0., if select-active-regions is t, both of these actions set the > primary selection. But if select-active-regions is nil, neither of > these actions set the primary selection. > > Do you know how I would get the behavior back what it was in 23.3? OK. I see now that setting select-active-regions to 'only' makes it work the way I'm used to, and 'cw' even works correctly. Thanks all, Bob From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 20 23:06:47 2011 Received: (at 9810) by debbugs.gnu.org; 21 Oct 2011 03:06:47 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RH5RW-0006YL-7s for submit@debbugs.gnu.org; Thu, 20 Oct 2011 23:06:46 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RH5RT-0006Y8-W2 for 9810@debbugs.gnu.org; Thu, 20 Oct 2011 23:06:44 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmcSALvgoE5MCqLO/2dsb2JhbABDqA4BgQyBBoFuAQEEAVYjBQsLNBIUGA0kiBO1WYgpBKEuhEU X-IronPort-AV: E=Sophos;i="4.69,383,1315195200"; d="scan'208";a="143419277" Received: from 76-10-162-206.dsl.teksavvy.com (HELO ceviche.home) ([76.10.162.206]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 20 Oct 2011 23:05:26 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 30216660B6; Thu, 20 Oct 2011 23:05:24 -0400 (EDT) From: Stefan Monnier To: Bob Nnamtrop Subject: Re: bug#9810: cw in viper mode clobbers clipboard Message-ID: References: Date: Thu, 20 Oct 2011 23:05:24 -0400 In-Reply-To: (Bob Nnamtrop's message of "Thu, 20 Oct 2011 16:12:17 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 9810 Cc: Lennart Borgman , 9810@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) > primary selection. But if select-active-regions is nil, neither of > these actions set the primary selection. I think you should report this via M-x report-emacs-bug. Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 20 23:08:04 2011 Received: (at 9810) by debbugs.gnu.org; 21 Oct 2011 03:08:04 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RH5Sj-0006aD-FU for submit@debbugs.gnu.org; Thu, 20 Oct 2011 23:08:03 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RH5Sh-0006Zt-Ac for 9810@debbugs.gnu.org; Thu, 20 Oct 2011 23:08:00 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmcSALvgoE5MCqLO/2dsb2JhbABDqA4BgQyBBoFuAQEEAVYjBQsLNBIUGA0kiBO1WYgpBKEuhEU X-IronPort-AV: E=Sophos;i="4.69,383,1315195200"; d="scan'208";a="143419609" Received: from 76-10-162-206.dsl.teksavvy.com (HELO ceviche.home) ([76.10.162.206]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 20 Oct 2011 23:06:42 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 0B6D6660B6; Thu, 20 Oct 2011 23:06:41 -0400 (EDT) From: Stefan Monnier To: Bob Nnamtrop Subject: Re: bug#9810: cw in viper mode clobbers clipboard Message-ID: References: Date: Thu, 20 Oct 2011 23:06:41 -0400 In-Reply-To: (Bob Nnamtrop's message of "Thu, 20 Oct 2011 16:38:23 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 9810 Cc: Lennart Borgman , 9810@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) > OK. I see now that setting select-active-regions to 'only' makes it > work the way I'm used to, and 'cw' even works correctly. Oh, yes, now I remember. So it's no bug, sorry for the previous email. Stefan From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 29 01:39:20 2011 Received: (at 9810) by debbugs.gnu.org; 29 Oct 2011 05:39:20 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RK1dX-0008Ce-KW for submit@debbugs.gnu.org; Sat, 29 Oct 2011 01:39:20 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RK1dV-0008CW-66 for 9810@debbugs.gnu.org; Sat, 29 Oct 2011 01:39:18 -0400 Received: from [155.69.18.173] (port=56652 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1RK1bZ-0003Ca-Pz; Sat, 29 Oct 2011 01:37:18 -0400 From: Chong Yidong To: Bob Nnamtrop Subject: Re: bug#9810: cw in viper mode clobbers clipboard References: Date: Sat, 29 Oct 2011 13:37:10 +0800 In-Reply-To: (Bob Nnamtrop's message of "Thu, 20 Oct 2011 14:28:14 -0600") Message-ID: <877h3ouznd.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: 9810 Cc: Stefan Monnier , 9810@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) Bob Nnamtrop writes: > I do not consider the selected word when one does 'cw' an active > region (in the usual emacs sense). It is a vi construct independent of > emacs active regions and so it need not honor the > select-active-regions setting. Could you test the following patch and see if it does what you expect? === modified file 'lisp/emulation/viper-cmd.el' *** lisp/emulation/viper-cmd.el 2011-07-09 19:32:42 +0000 --- lisp/emulation/viper-cmd.el 2011-10-29 05:36:10 +0000 *************** *** 1387,1393 **** (insert " ")(backward-char 1))) (if (= viper-com-point (point)) (viper-forward-char-carefully)) ! (set-mark viper-com-point) (if (eq m-com 'viper-next-line-at-bol) (viper-enlarge-region (mark t) (point))) (if (< (point) (mark t)) --- 1387,1393 ---- (insert " ")(backward-char 1))) (if (= viper-com-point (point)) (viper-forward-char-carefully)) ! (push-mark viper-com-point t) (if (eq m-com 'viper-next-line-at-bol) (viper-enlarge-region (mark t) (point))) (if (< (point) (mark t)) *************** *** 1396,1403 **** (viper-backward-char-carefully)) ; give back the newline (if (eq viper-intermediate-command 'viper-repeat) (viper-change-subr (mark t) (point)) ! (viper-change (mark t) (point)) ! )) ;; this is invoked by viper-substitute-line (defun viper-exec-Change (m-com com) --- 1396,1403 ---- (viper-backward-char-carefully)) ; give back the newline (if (eq viper-intermediate-command 'viper-repeat) (viper-change-subr (mark t) (point)) ! (viper-change (mark t) (point))) ! (viper-deactivate-mark)) ;; this is invoked by viper-substitute-line (defun viper-exec-Change (m-com com) From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 29 11:29:00 2011 Received: (at 9810) by debbugs.gnu.org; 29 Oct 2011 15:29:00 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RKAqC-0001mj-Ci for submit@debbugs.gnu.org; Sat, 29 Oct 2011 11:29:00 -0400 Received: from mail-vw0-f44.google.com ([209.85.212.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RKAqA-0001mb-7v for 9810@debbugs.gnu.org; Sat, 29 Oct 2011 11:28:58 -0400 Received: by vws5 with SMTP id 5so4034398vws.3 for <9810@debbugs.gnu.org>; Sat, 29 Oct 2011 08:26:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=4m98JicUyGydkSRBzmMZNj3D95WXpluiK1bEVrvvEHE=; b=NZKjN1B3KTdwW9iEmkkEu94uT6/mLTFV5zLDUIKoidf1lZw0fxrtCpIrCS2zQaTif1 7bYYnG1FSu/dX/NrBLN6MfCWPtaV+MRuQk9MzAtqZEGsqv2uTtnp2LIi0eMog6n0Xg5R 4lfoJnXV71HYgd9mduztc8LzqHnNekVIZT20k= MIME-Version: 1.0 Received: by 10.52.69.52 with SMTP id b20mr1820332vdu.85.1319902017318; Sat, 29 Oct 2011 08:26:57 -0700 (PDT) Received: by 10.52.116.1 with HTTP; Sat, 29 Oct 2011 08:26:57 -0700 (PDT) In-Reply-To: <877h3ouznd.fsf@gnu.org> References: <877h3ouznd.fsf@gnu.org> Date: Sat, 29 Oct 2011 09:26:57 -0600 Message-ID: Subject: Re: bug#9810: cw in viper mode clobbers clipboard From: Bob Nnamtrop To: Chong Yidong Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: 9810 Cc: Stefan Monnier , 9810@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.8 (---) On Fri, Oct 28, 2011 at 11:37 PM, Chong Yidong wrote: > Bob Nnamtrop writes: > >> I do not consider the selected word when one does 'cw' an active >> region (in the usual emacs sense). It is a vi construct independent of >> emacs active regions and so it need not honor the >> select-active-regions setting. > > Could you test the following patch and see if it does what you expect? > > =3D=3D=3D modified file 'lisp/emulation/viper-cmd.el' > *** lisp/emulation/viper-cmd.el 2011-07-09 19:32:42 +0000 > --- lisp/emulation/viper-cmd.el 2011-10-29 05:36:10 +0000 > *************** > *** 1387,1393 **** > =A0 =A0 =A0 =A0(insert " ")(backward-char 1))) > =A0 =A0(if (=3D viper-com-point (point)) > =A0 =A0 =A0 =A0(viper-forward-char-carefully)) > ! =A0 (set-mark viper-com-point) > =A0 =A0(if (eq m-com 'viper-next-line-at-bol) > =A0 =A0 =A0 =A0(viper-enlarge-region (mark t) (point))) > =A0 =A0(if (< (point) (mark t)) > --- 1387,1393 ---- > =A0 =A0 =A0 =A0(insert " ")(backward-char 1))) > =A0 =A0(if (=3D viper-com-point (point)) > =A0 =A0 =A0 =A0(viper-forward-char-carefully)) > ! =A0 (push-mark viper-com-point t) > =A0 =A0(if (eq m-com 'viper-next-line-at-bol) > =A0 =A0 =A0 =A0(viper-enlarge-region (mark t) (point))) > =A0 =A0(if (< (point) (mark t)) > *************** > *** 1396,1403 **** > =A0 =A0 =A0 =A0(viper-backward-char-carefully)) ; give back the newline > =A0 =A0(if (eq viper-intermediate-command 'viper-repeat) > =A0 =A0 =A0 =A0(viper-change-subr (mark t) (point)) > ! =A0 =A0 (viper-change (mark t) (point)) > ! =A0 =A0 )) > > =A0;; this is invoked by viper-substitute-line > =A0(defun viper-exec-Change (m-com com) > --- 1396,1403 ---- > =A0 =A0 =A0 =A0(viper-backward-char-carefully)) ; give back the newline > =A0 =A0(if (eq viper-intermediate-command 'viper-repeat) > =A0 =A0 =A0 =A0(viper-change-subr (mark t) (point)) > ! =A0 =A0 (viper-change (mark t) (point))) > ! =A0 (viper-deactivate-mark)) > > =A0;; this is invoked by viper-substitute-line > =A0(defun viper-exec-Change (m-com com) > > Yes, it makes cw work the way I expect even if select-active-regions is t. Thanks, Bob From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 29 23:41:36 2011 Received: (at 9810) by debbugs.gnu.org; 30 Oct 2011 03:41:36 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RKMHA-0003MW-A4 for submit@debbugs.gnu.org; Sat, 29 Oct 2011 23:41:36 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RKMH8-0003MP-D4 for 9810@debbugs.gnu.org; Sat, 29 Oct 2011 23:41:35 -0400 Received: from bb116-14-207-132.singnet.com.sg ([116.14.207.132]:36153 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1RKMF8-0002Ls-7E; Sat, 29 Oct 2011 23:39:30 -0400 From: Chong Yidong To: Bob Nnamtrop Subject: Re: bug#9810: cw in viper mode clobbers clipboard References: <877h3ouznd.fsf@gnu.org> Date: Sun, 30 Oct 2011 11:39:22 +0800 In-Reply-To: (Bob Nnamtrop's message of "Sat, 29 Oct 2011 09:26:57 -0600") Message-ID: <871utvxi51.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: 9810 Cc: Stefan Monnier , 9810@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) Bob Nnamtrop writes: > Yes, it makes cw work the way I expect even if select-active-regions > is t. Thanks. I've committed the patch. From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 29 23:41:51 2011 Received: (at control) by debbugs.gnu.org; 30 Oct 2011 03:41:51 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RKMHO-0003N0-Rn for submit@debbugs.gnu.org; Sat, 29 Oct 2011 23:41:51 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RKMHN-0003Mu-SO for control@debbugs.gnu.org; Sat, 29 Oct 2011 23:41:50 -0400 Received: from bb116-14-207-132.singnet.com.sg ([116.14.207.132]:36154 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1RKMFN-0002M7-QN for control@debbugs.gnu.org; Sat, 29 Oct 2011 23:39:46 -0400 From: Chong Yidong To: control@debbugs.gnu.org Subject: close 9810 Date: Sun, 30 Oct 2011 11:39:39 +0800 Message-ID: <87hb2ruozo.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) close 9810 thanks From unknown Sat Sep 13 02:39:43 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 27 Nov 2011 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator