origami.el icon indicating copy to clipboard operation
origami.el copied to clipboard

Using dabbrev-expand in fold jumps forward

Open Loosefish opened this issue 8 years ago • 3 comments

When using dabbrev-expand inside a fold, the word is expanded and the cursor jumps forward to what looks like the end of the node.

Example with origami-fold-style set to triple braces (| marks the cursor position):

;;; {{{
(defun foo ()
  (con|
  (concat "foo" "bar"))
;;; }}}

Pressing M-/ produces:

;;; {{{
(defun foo ()
  (concat
  (concat "foo" "bar"))
;;; }}|}

It works fine outside the fold.

It also happens with other folding-styles, but it's trickier to reproduce. I tested this with a minimal .emacs and a fresh install from melpa.

Any ideas what's happening there? Thanks!

Loosefish avatar Jul 19 '16 11:07 Loosefish

Which version of emacs are you running? This is odd but I have been able to repro.

gregsexton avatar Jul 23 '16 09:07 gregsexton

I'm on 24.5.1 running on linux.

Loosefish avatar Jul 23 '16 09:07 Loosefish

Thanks. When I try and debug this it hangs up Emacs, which is fun! Not sure yet what's going on. Thanks for pointing out the problem though.

gregsexton avatar Jul 23 '16 09:07 gregsexton