From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Narendra Joshi Newsgroups: gmane.emacs.devel Subject: Re: vcursor.el: `vcursor-copy-word` and `vcursory-copy-line` not working as expected Date: Wed, 24 Nov 2021 21:07:23 +0100 Message-ID: References: <87y25emzyo.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000000fdf4505d18e698f" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21525"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs Devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 24 22:26:04 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mpzmG-0005QF-Gq for ged-emacs-devel@m.gmane-mx.org; Wed, 24 Nov 2021 22:26:04 +0100 Original-Received: from localhost ([::1]:45606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mpzmE-0006N2-Ke for ged-emacs-devel@m.gmane-mx.org; Wed, 24 Nov 2021 16:26:02 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47640) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mpyYa-0005ZB-8v for emacs-devel@gnu.org; Wed, 24 Nov 2021 15:07:52 -0500 Original-Received: from [2607:f8b0:4864:20::833] (port=34632 helo=mail-qt1-x833.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mpyYR-0002os-5A for emacs-devel@gnu.org; Wed, 24 Nov 2021 15:07:51 -0500 Original-Received: by mail-qt1-x833.google.com with SMTP id o17so3937951qtk.1 for ; Wed, 24 Nov 2021 12:07:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wJX2pcnWGNHm2AkyOKP/4I4dvU9kHgIBP8eXYiC3u/0=; b=GcxRJUW/xRBpqXx5DYb5TJ9soqxSFBeCyRhgTVhwQJLuc1V+nnJ2FMxK/b1eFhqsss SP6ma/Rxj1TWlX4hWzK1T119LLjIUlOJRr4FSECELXOaK0fSUYSVr/ZoSNR+FyptgwaR OdZkRikA3hUwdVdYs9SnuJEmfeMpN7e3/Z+vlMAZ0l0h8f+sw8hG5SyEEpwKf9goA9GV aFdvzXSvGx01/ex5XYf6ggCSP/NZvJIdUzv8qLhQQ/Kg5Ve9GyqqdD6HEX04Fh6CyJGl ncEHOqDUgQB0EeM2hS5Sxalb2eU7Zf7TaBHHbwzsFl9sOIeGv6NKvAM1tMiVLSmfjBzF 8ZPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wJX2pcnWGNHm2AkyOKP/4I4dvU9kHgIBP8eXYiC3u/0=; b=If29mY80827V4ipPX4qxMgDzz/9GR67saHV9MC/x44QsliIfuTjZhTsAEliF13N8N2 jgFCQQxM5s9kXkIiXmrJW0Ksgkp2GP8tGLI8MhUAggz4xlKubg8GYacbB/IeGbImYuS/ h7P2kfBcOhJFLRBW9JbziWYOgkXkxjMkg6hfKExN6f8Czd1IpQoU003jezrZ53MwlHAb RJ/7LVPOYv5ONBYKjNmkUPWx0f2p0y8lojHyGxzdGK0njmQQEbUmRa9EoMI3mDqOb01o A/F0Iq4z9QjpqCbDnAnEkBzEMe7rGgYpFxD9oT+ftVXOacP9ztzdjLCRow6eD4ArSQYD /Tvg== X-Gm-Message-State: AOAM530mV3aooqGooxyujNB0fnGt4Dj8tEqU24u/AvBxt3rgV1Rr8nB7 RaEokWUYSp1Z7dPMNgJ6ZzsQFcU265005M78WGTO4POktQ== X-Google-Smtp-Source: ABdhPJweMxJ29daVcfC5RLcNeoCjbVyd53Omosgz9gP1SU8hHzy0iwm1sKopnePR9xKUgFGgty4jvQRSJYpKOcr4+X4= X-Received: by 2002:ac8:5dc9:: with SMTP id e9mr10602466qtx.12.1637784461761; Wed, 24 Nov 2021 12:07:41 -0800 (PST) In-Reply-To: X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::833 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::833; envelope-from=narendraj9@gmail.com; helo=mail-qt1-x833.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 24 Nov 2021 16:25:07 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:280054 Archived-At: --0000000000000fdf4505d18e698f Content-Type: text/plain; charset="UTF-8" Great, thanks :) On Wed, 24 Nov 2021, 17:58 Stefan Monnier, wrote: > > I think `vcursor.el` has a bug that causes `point` (the real cursor) to > > move to where the virtual cursor is whenever `vcursor-copy-{word,line}` > > are used. > > > > We need to wrap the `goto-char` call below in something like > > `save-excursion`: > > > Thanks, pushed to `master`. > > > Stefan > > --0000000000000fdf4505d18e698f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Great, thanks :)

On Wed, 24 Nov 2021, 17:58 Stefan Monnier= , <monnier@iro.umontreal.ca<= /a>> wrote:
> I think `vcurso= r.el` has a bug that causes `point` (the real cursor) to
> move to where the virtual cursor is whenever `vcursor-copy-{word,line}= `
> are used.
>
> We need to wrap the `goto-char` call below in something like
> `save-excursion`:


Thanks, pushed to `master`.


=C2=A0 =C2=A0 =C2=A0 =C2=A0 Stefan

--0000000000000fdf4505d18e698f--