Skip to content

outline-up-heading not working with evil jumplist #8566

@mortang2410

Description

@mortang2410

I confirm that...

  • I searched the issue tracker and found no similar issues.

  • I searched the documentation, FAQ, discussion board, and Google for solutions to my issue.

  • I read the debugging guide and researched the issue to the best of my ability.

  • My issue can be observed on the latest available commit of Doom.

  • My issue can be observed on a stable release of Emacs (i.e. doesn't end in .50, .60, or .90.99)

Describe your issue

Issue: the interactive command outline-up-heading from Outline mode does not properly work with evil's jump list (so Ctrl+O will not return to previous position).

Other navigation commands in Emacs that move significant distances typically call push-mark with the proper integration, or packages like Evil add advice to capture these jumps.

My current solution, where I am using Doom Emacs :

;; Fix outline-up-heading to save jump points for C-o/C-i
(defadvice! my/outline-up-heading-save-jump (orig-fn &rest args)
  :around #'outline-up-heading
  (better-jumper-set-jump)
  (apply orig-fn args))

Steps to reproduce

  1. Open doom config file (emacs lisp mode).
  2. Create a headings line for outline-minor-mode, such as
    ;;; example heading
  3. Use M-x outline-up-heading to jump to that heading
  4. evil mode jumplist (C-o / C-i) does not remember previous position before jumping

System information

https://pastebin.com/DEPF8wCC

Metadata

Metadata

Assignees

No one assigned

    Labels

    is:bugSomething isn't working as intendedneeds-triageIssue hasn't been assessed yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions