[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [RFC] Could we get rid of Org specific "mark ring"
From: |
Nicolas Goaziou |
Subject: |
Re: [O] [RFC] Could we get rid of Org specific "mark ring" |
Date: |
Tue, 30 Jan 2018 22:29:09 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
Hello,
Samuel Wales <address@hidden> writes:
> On 1/29/18, Nicolas Goaziou <address@hidden> wrote:
>> So, could we simply remove this part of Org and use Emacs facilities,
>> with their standard bindings (C-u C-<SPC> and C-x C-<SPC>) and behaviour
>> instead?
>
> org would have to push to both local and global it seems.
`push-mark' would take care of this. So Org wouldn't need to.
> also this from se could be modified to work for global mark ring --
> every ring in emacs should have both next and prev. i never
> understood the point of rings in emacs except to save memory.
>
> (defun se-unpop-to-mark-command ()
> "Unpop off mark ring. Does nothing if mark ring is empty."
> (interactive)
> (when mark-ring
> (setq mark-ring (cons (copy-marker (mark-marker)) mark-ring))
> (set-marker (mark-marker) (car (last mark-ring)) (current-buffer))
> (when (null (mark t)) (ding))
> (setq mark-ring (nbutlast mark-ring))
> (goto-char (marker-position (car (last mark-ring))))))
You could suggest it to Emacs developers (i.e., file a bug report.)
Regards,
--
Nicolas Goaziou
- [O] [RFC] Could we get rid of Org specific "mark ring", Nicolas Goaziou, 2018/01/29
- Re: [O] [RFC] Could we get rid of Org specific "mark ring", Allen Li, 2018/01/30
- Re: [O] [RFC] Could we get rid of Org specific "mark ring", Samuel Wales, 2018/01/30
- Re: [O] [RFC] Could we get rid of Org specific "mark ring",
Nicolas Goaziou <=
- Re: [O] [RFC] Could we get rid of Org specific "mark ring", Samuel Wales, 2018/01/30
- Re: [O] [RFC] Could we get rid of Org specific "mark ring", Samuel Wales, 2018/01/30
- Re: [O] [RFC] Could we get rid of Org specific "mark ring", Nicolas Goaziou, 2018/01/30
- Re: [O] [RFC] Could we get rid of Org specific "mark ring", Samuel Wales, 2018/01/30
- Re: [O] [RFC] Could we get rid of Org specific "mark ring", Nicolas Goaziou, 2018/01/30
- Re: [O] [RFC] Could we get rid of Org specific "mark ring", Samuel Wales, 2018/01/30
- Re: [O] [RFC] Could we get rid of Org specific "mark ring", Allen Li, 2018/01/30
- Re: [O] [RFC] Could we get rid of Org specific "mark ring", Samuel Wales, 2018/01/30
- Re: [O] [RFC] Could we get rid of Org specific "mark ring", Nicolas Goaziou, 2018/01/31
- Re: [O] [RFC] Could we get rid of Org specific "mark ring", Samuel Wales, 2018/01/31