From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: org-cycle broken when cursor is at ellipses Date: Mon, 27 Oct 2008 09:47:31 +0100 Message-ID: <8DEE8DD7-68CD-446A-96C5-1760A0686CFE@uva.nl> References: <967CE7ED-05E9-4031-9F3B-CFB826511554@alexanderonline.org> <87ljwfbdga.fsf@kassiopeya.MSHEIMNETZ> <752DA813-1B66-4FD1-B28E-3C23176BA13D@alexanderonline.org> <87r6679t1t.fsf@kassiopeya.MSHEIMNETZ> <4A07BAD9-7045-4A42-BEAE-CD67DD491E61@alexanderonline.org> <81B9C939-99A0-4F6F-9F40-E782F263BFE0@alexanderonline.org> Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: multipart/mixed; boundary="===============1628035047==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KuNlW-0005tF-Nd for emacs-orgmode@gnu.org; Mon, 27 Oct 2008 04:47:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KuNlP-0005sU-E5 for emacs-orgmode@gnu.org; Mon, 27 Oct 2008 04:47:58 -0400 Received: from [199.232.76.173] (port=44002 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KuNlP-0005sR-AO for emacs-orgmode@gnu.org; Mon, 27 Oct 2008 04:47:51 -0400 Received: from ug-out-1314.google.com ([66.249.92.170]:43425) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KuNlJ-0002Ik-9o for emacs-orgmode@gnu.org; Mon, 27 Oct 2008 04:47:51 -0400 Received: by ug-out-1314.google.com with SMTP id 36so202583uga.17 for ; Mon, 27 Oct 2008 01:47:34 -0700 (PDT) In-Reply-To: <81B9C939-99A0-4F6F-9F40-E782F263BFE0@alexanderonline.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Ben Alexander Cc: emacs-orgmode Org-Mode --===============1628035047== Content-Type: multipart/alternative; boundary=Apple-Mail-1--170567794 --Apple-Mail-1--170567794 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Hi Ben this is what I do not like about AquaEmacs, that it installs all kinds of defaults which you might not want. You can turn off saveplace with (setq-default save-place nil) You might still have to remove places.el. Or you can make sure that the cursor always starts out at the beginning of a visible line with (add-hook 'org-mode-hook (lambda () (let (org-special-ctrl-a/e) (org-beginning-of-line)))) Then saveplace will get its will by moving the cursor to the recent location, but the cursor would be moved to the beginning of a visible line near that location. Or you can make sure that the point visited by saveplace will be visible, with (eval-after-load "saveplace" '(defadvice save-place-find-file-hook (after org-make-visible activate) "Make the position visible." (org-bookmark-jump-unhide))) I am actually putting this last piece of code into org.el. HTH - Carsten On Oct 26, 2008, at 8:49 PM, Ben Alexander wrote: > So about this bug... > > I think I've figured out why I get this so often. I use Aquamacs on > MacOS X, and it seems to store (in ~/Library/Preferences/Aquamacs > Emacs/places.el) a list of files and values for point. > > Something about the timing of this means that point is left > somewhere in the body (or maybe subheading?) of a headline, even > though org-mode presents the file in 'Overview'. Since the point is > in an unexpected location, even though the cursor looks fine, (org- > cycle) doesn't work as it looks like it should. > > I think I'd like to turn off the 'places.el' thing. > > And I reiterate: this is really a tiny issue. Just hitting C-a > fixes the state of point. > > On 2008-Oct-24, at 19:44, Avdi Grimm wrote: > >> On Fri, Oct 24, 2008 at 2:33 PM, Ben Alexander > > wrote: >>> Ok, here's your chance. This is something that has bothered me >>> for quite >>> some time, but I've never been able to reliably reproduce the >>> problem. And >>> it's such a small issue. >> >> Thanks! I'll try to take a look tonight > ... > > -Ben > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode --Apple-Mail-1--170567794 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Ben

this = is what I do not like about AquaEmacs, that it installs all kinds of = defaults which you might not want.

You can turn = off saveplace with

(setq-default save-place = nil)

You might still have to remove = places.el.



Or you = can make sure that the cursor always starts out at the beginning of a = visible line with

(add-hook = 'org-mode-hook
   (lambda () (let = (org-special-ctrl-a/e) = (org-beginning-of-line))))

Then saveplace will = get its will by moving the cursor to the recent location, but the cursor = would be moved to the beginning of a visible line near that = location.



Or you = can make sure that the point visited by saveplace will be visible, = with

(eval-after-load = "saveplace"
  '(defadvice save-place-find-file-hook = (after org-make-visible activate)
     "Make = the position visible."
     = (org-bookmark-jump-unhide)))

I am actually = putting this last piece of code into = org.el.

HTH

- = Carsten


On Oct 26, 2008, at 8:49 = PM, Ben Alexander wrote:

So = about this bug...

I think I've figured out why I get this so = often.  I use Aquamacs on MacOS X, and it seems to store (in = ~/Library/Preferences/Aquamacs Emacs/places.el) a list of files and = values for point.

Something about the timing of this means that = point is left somewhere in the body (or maybe subheading?) of a = headline, even though org-mode presents the file in 'Overview'. =  Since the point is in an unexpected location, even though the = cursor looks fine, (org-cycle) doesn't work as it looks like it = should.

I think I'd like to turn off the 'places.el' = thing.

And I reiterate: this is really a tiny issue.  Just = hitting C-a fixes the state of point.

On 2008-Oct-24, at 19:44, = Avdi Grimm wrote:

On Fri, Oct 24, 2008 = at 2:33 PM, Ben Alexander <bva@alexanderonline.org> = wrote:
Ok, here's your chance.  This is something that has = bothered me for quite
some time, but I've never been = able to reliably reproduce the problem. =  And
it's such a small = issue.

Thanks! =  I'll try to take a look = tonight
...

-Ben

___________________________= ____________________
Emacs-orgmode mailing list
Remember: use = `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://= lists.gnu.org/mailman/listinfo/emacs-orgmode
<= br>
= --Apple-Mail-1--170567794-- --===============1628035047== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1628035047==--