[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: outline-mark-subtree does not activate mark
From: |
Juri Linkov |
Subject: |
Re: outline-mark-subtree does not activate mark |
Date: |
Mon, 29 Aug 2005 23:55:47 +0300 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
>> With Transient Mark mode enabled I expected a section like
>>
>> --8<---------------cut here---------------start------------->8---
>> \section{foo}
>>
>> Some text.
>> --8<---------------cut here---------------end--------------->8---
>>
>> in a LaTeX buffer to be highlighted after typing `M-x
>> outline-mark-subtree RET'. Unfortunately this does not happen because
>> the `push-mark' call in `outline-mark-subtree' does not request for
>> the mark to be activated. Shouldn't it do this?
>
> As a user of Transient Mark mode, I second this.
Any objections to this patch?
Index: lisp/outline.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/outline.el,v
retrieving revision 1.15
diff -c -r1.15 outline.el
*** lisp/outline.el 26 Aug 2005 15:31:59 -0000 1.15
--- lisp/outline.el 29 Aug 2005 20:38:59 -0000
***************
*** 682,688 ****
(outline-previous-visible-heading 1))
(setq beg (point))
(outline-end-of-subtree)
! (push-mark (point))
(goto-char beg)))
--- 682,688 ----
(outline-previous-visible-heading 1))
(setq beg (point))
(outline-end-of-subtree)
! (push-mark (point) nil t)
(goto-char beg)))
--
Juri Linkov
http://www.jurta.org/emacs/