-
-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Helm mark functions do not move the cursor at the right column #1770
Comments
* helm-ring.el (helm-mark-ring-get-candidates): Real is now a marker. (helm-mark-ring-default-action): New. (helm-source-mark-ring): Use it. (helm-source-global-mark-ring): Use it. (helm-global-mark-ring-get-candidates): Real is now a marker.
Pierre Neidhardt <[email protected]> writes:
This forces me to use two bindings (the original
exchange-point-and-mark and helm-mark-or-exchange-rect for the general
case) instead of one.
Should work now how you are expecting.
I don't know what is helm-mark-or-exchange-rect though.
Thanks.
…--
Thierry
Gpg Key fingerprint = 6CEC 7081 AB33 E251 4AB8 5FC2 28D1 7F53 59F2 9997
|
Thanks! Sorry for the confusion with
Let's forget that and use In terms of column position, it seems to work. With
With
The functions don't serve the same purpose, but I'm wondering if there is a way to supersede exchange-point-and-mark elegantly. |
I found a solution that seems to work pretty well:
The workflow is as follows:
Compared to Emacs original behaviour, it is only one more key press. |
Pierre Neidhardt <[email protected]> writes:
In terms of usability, it is still not quite superseding exchange-point-and-mark.
The purpose of helm-mark-ring is to store visited positions to retrieve
them quickly, I still don't understand what you want to do with
`exchange-point-and-mark`.
With exchange-point-and-mark:
* Mark
* Move the cursor to the desired position.
* exchange-point-and-mark to fix the initial mark.
If you want to save the new position why don't you hit C-space twice ?
Note that all the helm search functions are saving position to mark-ring
when leaving this position, before this recent change helm-mark-ring was
doing this too we have to restore this, perhaps it is this that is
missing for you ?
…--
Thierry
Gpg Key fingerprint = 6CEC 7081 AB33 E251 4AB8 5FC2 28D1 7F53 59F2 9997
|
* helm-ring.el (helm-mark-ring-default-action): Do it, save helm-yank-point as well and maybe cleanup overlays.
I pushed a change that save current position to mark-ring before jumping
to a mark with helm-mark-ring, have a try.
PS: Ensure you use the default value of `helm-goto-line-before-hook`.
…--
Thierry
Gpg Key fingerprint = 6CEC 7081 AB33 E251 4AB8 5FC2 28D1 7F53 59F2 9997
|
Just that: using helm-mark-ring's functions to store
Because as I detailed above, before commit b518c23 it was 1 more mark + 1 more selection in the helm buffer. Not convenient.
Which recent change? Anyways, this is exactly what was missing for me, it works well. Consider it solved! |
Great, closing now. Thanks. |
This is basically #709 which I believe was closed a bit early.
@thierryvolpiatto You said it is a detail, but there is a use case where the current behaviour is inconvenient.
Using standard Emacs, I can set a mark then move the cursor to create a selection. If only then I realize that the first mark is not at the right spot, I can rectify that with
C-x C-x
(exchange-point-and-mark
).Helm mark functions (e.g.
helm-mark-or-exchange-rect
) almost allows to do that, but the point is moved to the beginning of the column when exchanging point and mark.This forces me to use two bindings (the original
exchange-point-and-mark
andhelm-mark-or-exchange-rect
for the general case) instead of one.helm: 20170419.2242
OS: Arch Linux
Emacs: 25.2
The text was updated successfully, but these errors were encountered: