[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX] TeX Fold on Emacs 24: temporary unfolding doesn't work

From: Ivan Andrus
Subject: Re: [AUCTeX] TeX Fold on Emacs 24: temporary unfolding doesn't work
Date: Wed, 21 Mar 2012 17:53:46 +0100

On Mar 20, 2012, at 2:02 PM, Joost Kremers wrote:

> Hi all,
> I've just upgraded from the latest stable release (Emacs 23.something) to
> the latest Emacs 24 pretest ( and reinstalled AUCTeX (11.86).
> Now I suddenly find that "walking into" a folded segment to temporarily
> unfold it doesn't work anymore with C-f and C-b. It does still work with
> the cursor keys, though.
> A quick C-h c shows that the cursor keys are bound to <left-char> and
> <right-char>, whereas C-f and C-b are bound to <forward-char> and
> <backward-char>, respectively. Is this the cause of the problem (or
> feature, if it is intentional)? Is there an easy fix? I hardly ever use the
> cursor keys...

I can confirm this.  The offending code is at tex-fold.el around line 885.

;; See preview.el on how to make this configurable.
(memq this-command (list (key-binding [left])
                                                 (key-binding [right])

In preview.el there is a custom variable that should probably also be
updated.  At least it can changed though.

I don't know what you consider an "easy fix", but you can change that
code to (something like)

(memq this-command (list (key-binding [left])
                                        (key-binding [right])
                                        (key-binding [(control f)]) 
                                        (key-binding [(control b)]) 

or copy the definition of function to your .emacs and change it there.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]