all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Narendra Joshi <narendraj9@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: vcursor.el: `vcursor-copy-word` and `vcursory-copy-line` not working as expected
Date: Wed, 24 Nov 2021 14:27:01 +0200	[thread overview]
Message-ID: <837dcxagdm.fsf@gnu.org> (raw)
In-Reply-To: <87y25emzyo.fsf@gmail.com> (message from Narendra Joshi on Tue, 23 Nov 2021 20:30:55 +0100)

> From: Narendra Joshi <narendraj9@gmail.com>
> Date: Tue, 23 Nov 2021 20:30:55 +0100
> 
> 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, but I think save-excursion should be deeper, immediately befor
we call goto-char.  It is not good practice to change buffers inside
save-excursion.



  reply	other threads:[~2021-11-24 12:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-23 19:30 vcursor.el: `vcursor-copy-word` and `vcursory-copy-line` not working as expected Narendra Joshi
2021-11-24 12:27 ` Eli Zaretskii [this message]
2021-11-24 20:41   ` Narendra Joshi
2021-11-24 16:58 ` Stefan Monnier
2021-11-24 20:07   ` Narendra Joshi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=837dcxagdm.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=narendraj9@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.