helm-moccur error in markdown file with outline-minor-mode enabled

Created on 24 Nov 2017  路  8Comments  路  Source: emacs-helm/helm

Expected behavior

When I use helm-moccur in a markdown-mode buffer with outline-minor-mode, work as one would expect.

Actual behavior (from emacs-helm.sh if possible, see note at the bottom)

As soon as I type a letter, I get an error. I couldn't figure out how to switch to the buffer that showed the error so the best I could do was take a screenshot:

error

It seems like helm-goto-char runs org-reveal if either it's an org buffer or if outline-minor-mode is running, but it seems like perhaps something down the line called by org-reveal expects an actual org buffer/environment.

Steps to reproduce (recipe)

Create a new buffer with markdown-mode + outline-minor-mode and run helm-moccur.

Backtraces if any (M-x toggle-debug-on-error)

error

Describe versions of Helm, Emacs, operating system, etc.

GNU Emacs 26.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.19) of 2017-08-25
helm-20171120.126
helm-core-20171103.2225
Linux 4.13.12-1-ARCH

Are you using emacs-helm.sh to reproduce this bug (yes/no):

no

All 8 comments

Jorge Israel Pe帽a notifications@github.com writes:

Expected behavior

When I use helm-moccur in a markdown-mode buffer with
outline-minor-mode, work as one would expect.

Actual behavior (from emacs-helm.sh if possible, see note at the
bottom)

As soon as I type a letter, I get an error. I couldn't figure out how
to switch to the buffer that showed the error so the best I could do
was take a screenshot:

I can't reproduce, helm-occur is working as expected in such buffer, any
more hints to reproduce ?

error

It seems like helm-goto-char runs org-reveal if either it's an org
buffer or if outline-minor-mode is running, but it seems like perhaps
something down the line called by org-reveal expects an actual org
buffer/environment.

This always worked with outline or org, I tried to reproduce with
emacs-25.3 and emacs-27.0.50, both are working fine, perhaps you are
using another version of org ?
If so I didn't try with such version.

--
Thierry

Sorry about that. It seems like it depends on the contents of the markdown buffer. I've managed to narrow it down to this:

# Pods

* Volumes: shared storage
* Networking: unique cluster of IP addresses
* Information about how to run each container, such as image version or ports to use

I was able to copy the backtrace now:

Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
  org-goto-sibling()
  org-show-siblings()
  org-show-set-visibility(lineage)
  org-reveal()
  helm-goto-char(9)
  helm-goto-line(3)
  helm-moccur-action(#("testing.md:3:* Volumes: shared storage" 13 14 (face markdown-list-face fontified t buffer-name "testing.md") 14 38 (fontified t buffer-name "testing.md")) buffer)
  helm-moccur-goto-line(#("testing.md:3:* Volumes: shared storage" 13 14 (face markdown-list-face fontified t buffer-name "testing.md") 14 38 (fontified t buffer-name "testing.md")))
  helm-moccur-persistent-action(#("testing.md:3:* Volumes: shared storage" 13 14 (face markdown-list-face fontified t buffer-name "testing.md") 14 38 (fontified t buffer-name "testing.md")))
  helm-execute-selection-action-1(#("testing.md:3:* Volumes: shared storage" 13 14 (face markdown-list-face fontified t buffer-name "testing.md") 14 38 (fontified t buffer-name "testing.md")) helm-moccur-persistent-action t)
  helm-execute-persistent-action()
  #f(compiled-function () #<bytecode>)()
  apply(#f(compiled-function () #<bytecode>) nil)
  timer-event-handler([t 0 0 10000 nil #f(compiled-function () #<bytecode>) nil idle 0])
  read-from-minibuffer("pattern: " nil (keymap (67108903 . ace-jump-helm-line) (tab . helm-execute-persistent-action) (f13 lambda nil (interactive) (helm-select-nth-action 12)) (f12 lambda nil (interactive) (helm-select-nth-action 11)) (f11 lambda nil (interactive) (helm-select-nth-action 10)) (f10 lambda nil (interactive) (helm-select-nth-action 9)) (f9 . my--helm-toggle-scroll-bar) (f8 lambda nil (interactive) (helm-select-nth-action 7)) (f7 lambda nil (interactive) (helm-select-nth-action 6)) (f6 lambda nil (interactive) (helm-select-nth-action 5)) (f5 lambda nil (interactive) (helm-select-nth-action 4)) (f4 lambda nil (interactive) (helm-select-nth-action 3)) (f3 lambda nil (interactive) (helm-select-nth-action 2)) (f2 lambda nil (interactive) (helm-select-nth-action 1)) (emacs-state keymap (27 keymap (32 keymap (101 keymap (104 keymap (109 . helm-help))))) (3 keymap (101 keymap (104 keymap (109 . helm-help))))) (normal-state keymap (32 keymap (101 keymap (104 keymap (109 . helm-help)))) (3 keymap (101 keymap (104 keymap (109 . helm-help))))) (visual-state keymap (32 keymap (101 keymap (104 keymap (109 . helm-help)))) (3 keymap (101 keymap (104 keymap (109 . helm-help))))) (motion-state keymap (32 keymap (101 keymap (104 keymap (109 . helm-help)))) (3 keymap (101 keymap (104 keymap (109 . helm-help))))) (insert-state keymap (27 keymap (32 keymap (101 keymap (104 keymap (109 . helm-help))))) (3 keymap (101 keymap (104 keymap (109 . helm-help))))) (menu-bar keymap (help-menu keymap (describe keymap (describe-mode . helm-help)))) (help keymap (109 . helm-help)) (23 . my-backward-delete-word) (f1 lambda nil (interactive) (helm-select-nth-action 0)) (8 keymap (109 . helm-help) (104 . undefined) (8 . undefined) (99 . helm-customize-group) (4 . helm-enable-or-switch-to-debug)) (20 . helm-toggle-resplit-and-swap-windows) (C-tab . undefined) (67108897 . helm-toggle-suspend-update) (3 keymap (57 . helm-execute-selection-action-at-nth-+9) (56 . helm-execute-selection-action-at-nth-+8) (55 . helm-execute-selection-action-at-nth-+7) (54 . helm-execute-selection-action-at-nth-+6) (53 . helm-execute-selection-action-at-nth-+5) (52 . helm-execute-selection-action-at-nth-+4) (51 . helm-execute-selection-action-at-nth-+3) (50 . helm-execute-selection-action-at-nth-+2) (49 . helm-execute-selection-action-at-nth-+1) (63 . helm-help) (110 . #f(compiled-function () (interactive nil) #<bytecode>)) (62 . helm-toggle-truncate-line) (21 . helm-refresh) (6 . helm-follow-mode) (9 . helm-copy-to-buffer) (11 . helm-kill-selection-and-quit) (25 . helm-yank-selection) (45 . helm-swap-windows)) (67108987 . helm-enlarge-window) (67108989 . helm-narrow-window) (19 . undefined) (24 keymap (57 . helm-execute-selection-action-at-nth-+9) (56 . helm-execute-selection-action-at-nth-+8) (55 . helm-execute-selection-action-at-nth-+7) (54 . helm-execute-selection-action-at-nth-+6) (53 . helm-execute-selection-action-at-nth-+5) (52 . helm-execute-selection-action-at-nth-+4) (51 . helm-execute-selection-action-at-nth-+3) (50 . helm-execute-selection-action-at-nth-+2) (49 . helm-execute-selection-action-at-nth-+1) (2 . helm-resume-list-buffers-after-quit) (98 . helm-resume-previous-session-after-quit) (6 . helm-quit-and-find-file)) (11 . helm-delete-minibuffer-contents) (67108896 . helm-toggle-visible-mark) (0 . helm-toggle-visible-mark) (C-M-up . helm-scroll-other-window-down) (C-M-down . helm-scroll-other-window) (M-prior . helm-scroll-other-window-down) (M-next . helm-scroll-other-window) (12 . helm-recenter-top-bottom-other-window) (15 . helm-next-source) (10 . helm-execute-persistent-action) (26 . helm-select-action) (9 . helm-execute-persistent-action) (13 . helm-maybe-exit-minibuffer) (left . helm-previous-source) (right . helm-next-source) (7 . helm-keyboard-quit) (22 . helm-next-page) (27 keymap (110 . next-history-element) (112 . previous-history-element) (115 . undefined) (5 . helm-display-all-sources) (1 . helm-show-all-in-this-source-only) (85 . helm-unmark-all) (97 . helm-mark-all) (109 . helm-toggle-all-marks) (41 . helm-next-visible-mark) (40 . helm-prev-visible-mark) (91) (32 . helm-toggle-visible-mark) (33554454 . helm-scroll-other-window-down) (25 . helm-scroll-other-window-down) (22 . helm-scroll-other-window) (12 . helm-reposition-window-other-window) (111 . helm-previous-source) (62 . helm-end-of-buffer) (60 . helm-beginning-of-buffer) (118 . helm-previous-page)) (next . helm-next-page) (prior . helm-previous-page) (C-up . helm-follow-action-backward) (C-down . helm-follow-action-forward) (16 . helm-previous-line) (14 . helm-next-line) (up . helm-previous-line) (down . helm-next-line) keymap (18 . helm-minibuffer-history) (23 . my-backward-delete-word) (21 . my-backward-kill-line) (menu-bar keymap (minibuf "Minibuf" keymap (previous menu-item "Previous History Item" previous-history-element :help "Put previous minibuffer history element in the minibuffer") (next menu-item "Next History Item" next-history-element :help "Put next minibuffer history element in the minibuffer") (isearch-backward menu-item "Isearch History Backward" isearch-backward :help "Incrementally search minibuffer history backward") (isearch-forward menu-item "Isearch History Forward" isearch-forward :help "Incrementally search minibuffer history forward") (return menu-item "Enter" exit-minibuffer :key-sequence "\015" :help "Terminate input and exit minibuffer") (quit menu-item "Quit" abort-recursive-edit :help "Abort input and exit minibuffer") "Minibuf")) (10 . exit-minibuffer) (13 . exit-minibuffer) (7 . minibuffer-keyboard-quit) (C-tab . file-cache-minibuffer-complete) (9 . self-insert-command) (XF86Back . previous-history-element) (up . previous-line-or-history-element) (prior . previous-history-element) (XF86Forward . next-history-element) (down . next-line-or-history-element) (next . next-history-element) (27 keymap (114 . previous-matching-history-element) (115 . next-matching-history-element) (112 . previous-history-element) (110 . next-history-element))) nil helm-occur-history nil t)
  helm-read-pattern-maybe(nil nil "testing\\.md:1:" nil nil nil helm-occur-history)
  helm-internal(helm-source-occur nil nil nil "testing\\.md:1:" "*helm occur*" nil nil helm-occur-history)
  apply(helm-internal (helm-source-occur nil nil nil "testing\\.md:1:" "*helm occur*" nil nil helm-occur-history))
  helm(helm-source-occur nil nil nil "testing\\.md:1:" "*helm occur*" nil nil helm-occur-history)
  apply(helm (helm-source-occur nil nil nil "testing\\.md:1:" "*helm occur*" nil nil helm-occur-history))
  helm(:sources helm-source-occur :buffer "*helm occur*" :default nil :history helm-occur-history :preselect "testing\\.md:1:" :truncate-lines t)
  helm-occur()
  funcall-interactively(helm-occur)
  call-interactively(helm-occur nil nil)
  command-execute(helm-occur)

In the process of narrowing it down, I noticed that if the first two lines are removed, leaving just the list, a different error comes up:

* Volumes: shared storage
* Networking: unique cluster of IP addresses
* Information about how to run each container, such as image version or ports to use
Debugger entered--Lisp error: (error "Before first headline at position 157 in buffer testing.md")
  signal(error ("Before first headline at position 157 in buffer testing.md"))
  error("Before first headline at position %d in buffer %s" 157 #<buffer testing.md>)
  org-back-to-heading(t)
  org-flag-heading(nil)
  org-show-set-visibility(lineage)
  org-reveal()
  helm-goto-char(1)
  helm-goto-line(1)
  helm-moccur-action(#("testing.md:1: * Volumes: shared storage" 13 14 (buffer-name "testing.md") 14 15 (face markdown-list-face fontified t buffer-name "testing.md") 15 39 (fontified t buffer-name "testing.md")) buffer)
  helm-moccur-goto-line(#("testing.md:1: * Volumes: shared storage" 13 14 (buffer-name "testing.md") 14 15 (face markdown-list-face fontified t buffer-name "testing.md") 15 39 (fontified t buffer-name "testing.md")))
  helm-moccur-persistent-action(#("testing.md:1: * Volumes: shared storage" 13 14 (buffer-name "testing.md") 14 15 (face markdown-list-face fontified t buffer-name "testing.md") 15 39 (fontified t buffer-name "testing.md")))
  helm-execute-selection-action-1(#("testing.md:1: * Volumes: shared storage" 13 14 (buffer-name "testing.md") 14 15 (face markdown-list-face fontified t buffer-name "testing.md") 15 39 (fontified t buffer-name "testing.md")) helm-moccur-persistent-action t)
  helm-execute-persistent-action()
  #f(compiled-function () #<bytecode>)()
  apply(#f(compiled-function () #<bytecode>) nil)
  timer-event-handler([t 0 0 10000 nil #f(compiled-function () #<bytecode>) nil idle 0])
  read-from-minibuffer("pattern: " nil (keymap (67108903 . ace-jump-helm-line) (tab . helm-execute-persistent-action) (f13 lambda nil (interactive) (helm-select-nth-action 12)) (f12 lambda nil (interactive) (helm-select-nth-action 11)) (f11 lambda nil (interactive) (helm-select-nth-action 10)) (f10 lambda nil (interactive) (helm-select-nth-action 9)) (f9 . my--helm-toggle-scroll-bar) (f8 lambda nil (interactive) (helm-select-nth-action 7)) (f7 lambda nil (interactive) (helm-select-nth-action 6)) (f6 lambda nil (interactive) (helm-select-nth-action 5)) (f5 lambda nil (interactive) (helm-select-nth-action 4)) (f4 lambda nil (interactive) (helm-select-nth-action 3)) (f3 lambda nil (interactive) (helm-select-nth-action 2)) (f2 lambda nil (interactive) (helm-select-nth-action 1)) (emacs-state keymap (27 keymap (32 keymap (101 keymap (104 keymap (109 . helm-help))))) (3 keymap (101 keymap (104 keymap (109 . helm-help))))) (normal-state keymap (32 keymap (101 keymap (104 keymap (109 . helm-help)))) (3 keymap (101 keymap (104 keymap (109 . helm-help))))) (visual-state keymap (32 keymap (101 keymap (104 keymap (109 . helm-help)))) (3 keymap (101 keymap (104 keymap (109 . helm-help))))) (motion-state keymap (32 keymap (101 keymap (104 keymap (109 . helm-help)))) (3 keymap (101 keymap (104 keymap (109 . helm-help))))) (insert-state keymap (27 keymap (32 keymap (101 keymap (104 keymap (109 . helm-help))))) (3 keymap (101 keymap (104 keymap (109 . helm-help))))) (menu-bar keymap (help-menu keymap (describe keymap (describe-mode . helm-help)))) (help keymap (109 . helm-help)) (23 . my-backward-delete-word) (f1 lambda nil (interactive) (helm-select-nth-action 0)) (8 keymap (109 . helm-help) (104 . undefined) (8 . undefined) (99 . helm-customize-group) (4 . helm-enable-or-switch-to-debug)) (20 . helm-toggle-resplit-and-swap-windows) (C-tab . undefined) (67108897 . helm-toggle-suspend-update) (3 keymap (57 . helm-execute-selection-action-at-nth-+9) (56 . helm-execute-selection-action-at-nth-+8) (55 . helm-execute-selection-action-at-nth-+7) (54 . helm-execute-selection-action-at-nth-+6) (53 . helm-execute-selection-action-at-nth-+5) (52 . helm-execute-selection-action-at-nth-+4) (51 . helm-execute-selection-action-at-nth-+3) (50 . helm-execute-selection-action-at-nth-+2) (49 . helm-execute-selection-action-at-nth-+1) (63 . helm-help) (110 . #f(compiled-function () (interactive nil) #<bytecode>)) (62 . helm-toggle-truncate-line) (21 . helm-refresh) (6 . helm-follow-mode) (9 . helm-copy-to-buffer) (11 . helm-kill-selection-and-quit) (25 . helm-yank-selection) (45 . helm-swap-windows)) (67108987 . helm-enlarge-window) (67108989 . helm-narrow-window) (19 . undefined) (24 keymap (57 . helm-execute-selection-action-at-nth-+9) (56 . helm-execute-selection-action-at-nth-+8) (55 . helm-execute-selection-action-at-nth-+7) (54 . helm-execute-selection-action-at-nth-+6) (53 . helm-execute-selection-action-at-nth-+5) (52 . helm-execute-selection-action-at-nth-+4) (51 . helm-execute-selection-action-at-nth-+3) (50 . helm-execute-selection-action-at-nth-+2) (49 . helm-execute-selection-action-at-nth-+1) (2 . helm-resume-list-buffers-after-quit) (98 . helm-resume-previous-session-after-quit) (6 . helm-quit-and-find-file)) (11 . helm-delete-minibuffer-contents) (67108896 . helm-toggle-visible-mark) (0 . helm-toggle-visible-mark) (C-M-up . helm-scroll-other-window-down) (C-M-down . helm-scroll-other-window) (M-prior . helm-scroll-other-window-down) (M-next . helm-scroll-other-window) (12 . helm-recenter-top-bottom-other-window) (15 . helm-next-source) (10 . helm-execute-persistent-action) (26 . helm-select-action) (9 . helm-execute-persistent-action) (13 . helm-maybe-exit-minibuffer) (left . helm-previous-source) (right . helm-next-source) (7 . helm-keyboard-quit) (22 . helm-next-page) (27 keymap (110 . next-history-element) (112 . previous-history-element) (115 . undefined) (5 . helm-display-all-sources) (1 . helm-show-all-in-this-source-only) (85 . helm-unmark-all) (97 . helm-mark-all) (109 . helm-toggle-all-marks) (41 . helm-next-visible-mark) (40 . helm-prev-visible-mark) (91) (32 . helm-toggle-visible-mark) (33554454 . helm-scroll-other-window-down) (25 . helm-scroll-other-window-down) (22 . helm-scroll-other-window) (12 . helm-reposition-window-other-window) (111 . helm-previous-source) (62 . helm-end-of-buffer) (60 . helm-beginning-of-buffer) (118 . helm-previous-page)) (next . helm-next-page) (prior . helm-previous-page) (C-up . helm-follow-action-backward) (C-down . helm-follow-action-forward) (16 . helm-previous-line) (14 . helm-next-line) (up . helm-previous-line) (down . helm-next-line) keymap (18 . helm-minibuffer-history) (23 . my-backward-delete-word) (21 . my-backward-kill-line) (menu-bar keymap (minibuf "Minibuf" keymap (previous menu-item "Previous History Item" previous-history-element :help "Put previous minibuffer history element in the minibuffer") (next menu-item "Next History Item" next-history-element :help "Put next minibuffer history element in the minibuffer") (isearch-backward menu-item "Isearch History Backward" isearch-backward :help "Incrementally search minibuffer history backward") (isearch-forward menu-item "Isearch History Forward" isearch-forward :help "Incrementally search minibuffer history forward") (return menu-item "Enter" exit-minibuffer :key-sequence "\015" :help "Terminate input and exit minibuffer") (quit menu-item "Quit" abort-recursive-edit :help "Abort input and exit minibuffer") "Minibuf")) (10 . exit-minibuffer) (13 . exit-minibuffer) (7 . minibuffer-keyboard-quit) (C-tab . file-cache-minibuffer-complete) (9 . self-insert-command) (XF86Back . previous-history-element) (up . previous-line-or-history-element) (prior . previous-history-element) (XF86Forward . next-history-element) (down . next-line-or-history-element) (next . next-history-element) (27 keymap (114 . previous-matching-history-element) (115 . next-matching-history-element) (112 . previous-history-element) (110 . next-history-element))) nil helm-occur-history "\\*" t)
  helm-read-pattern-maybe(nil nil "testing\\.md:1:" nil nil "\\*" helm-occur-history)
  helm-internal(helm-source-occur nil nil nil "testing\\.md:1:" "*helm occur*" nil "\\*" helm-occur-history)
  apply(helm-internal (helm-source-occur nil nil nil "testing\\.md:1:" "*helm occur*" nil "\\*" helm-occur-history))
  helm(helm-source-occur nil nil nil "testing\\.md:1:" "*helm occur*" nil "\\*" helm-occur-history)
  apply(helm (helm-source-occur nil nil nil "testing\\.md:1:" "*helm occur*" nil "\\*" helm-occur-history))
  helm(:sources helm-source-occur :buffer "*helm occur*" :default "\\*" :history helm-occur-history :preselect "testing\\.md:1:" :truncate-lines t)
  helm-occur()
  funcall-interactively(helm-occur)
  call-interactively(helm-occur nil nil)
  command-execute(helm-occur)

Oh and I'm using the org that comes with the emacs installation. I didn't install it separately since I don't use org myself.

Jorge Israel Pe帽a notifications@github.com writes:

Oh and I'm using the org that comes with the emacs installation. I
didn't install it separately since I don't use org myself.

Ok, I could reproduce with emacs-27.0.50, no need to call helm to
reproduce the bug, a simple call to M-x org-reveal trigger it with same
error as you have.
It seems org-reveal is no more supported in outline buffers (It is
working in emacs-25.3).

--
Thierry

Should be fixed now.

Thanks.

--
Thierry

Thanks, the first buffer I posted is confirmed fixed, but the second one I posted gives an error. This isn't a contrived example, just a reduction. This happens in a real-world buffer.

It seems like it's an error with outline-minor-mode. Perhaps helm-moccur can be made to gracefully ignore the outline functions if they error out.

* Volumes: shared storage
* Networking: unique cluster of IP addresses
* Information about how to run each container, such as image version or ports to use

Running helm-moccur immediately errors out:

Debugger entered--Lisp error: (error "Before first heading")
  signal(error ("Before first heading"))
  error("Before first heading")
  outline-back-to-heading()
  outline-flag-subtree(nil)
  outline-show-subtree()
  helm-goto-char(72)
  helm-goto-line(3)
  helm-moccur-action(#("test.markdown:3:* Information about how to run each container, such as image version or ports to use" 16 17 (face markdown-list-face fontified t markdown-list-item ((72 156 0 2 "* " nil)) buffer-name "test.markdown") 17 100 (fontified t markdown-list-item ((72 156 0 2 "* " nil)) buffer-name "test.markdown")) buffer)
  helm-moccur-goto-line(#("test.markdown:3:* Information about how to run each container, such as image version or ports to use" 16 17 (face markdown-list-face fontified t markdown-list-item ((72 156 0 2 "* " nil)) buffer-name "test.markdown") 17 100 (fontified t markdown-list-item ((72 156 0 2 "* " nil)) buffer-name "test.markdown")))
  helm-moccur-persistent-action(#("test.markdown:3:* Information about how to run each container, such as image version or ports to use" 16 17 (face markdown-list-face fontified t markdown-list-item ((72 156 0 2 "* " nil)) buffer-name "test.markdown") 17 100 (fontified t markdown-list-item ((72 156 0 2 "* " nil)) buffer-name "test.markdown")))
  helm-execute-selection-action-1(#("test.markdown:3:* Information about how to run each container, such as image version or ports to use" 16 17 (face markdown-list-face fontified t markdown-list-item ((72 156 0 2 "* " nil)) buffer-name "test.markdown") 17 100 (fontified t markdown-list-item ((72 156 0 2 "* " nil)) buffer-name "test.markdown")) helm-moccur-persistent-action t)
  helm-execute-persistent-action()
  #f(compiled-function () #<bytecode 0x166e571>)()
  apply(#f(compiled-function () #<bytecode 0x166e571>) nil)
  timer-event-handler([t 0 0 10000 nil #f(compiled-function () #<bytecode 0x166e571>) nil idle 0])
  read-from-minibuffer("pattern: " nil (keymap (67108903 . ace-jump-helm-line) (tab . helm-execute-persistent-action) (f13 lambda nil (interactive) (helm-select-nth-action 12)) (f12 lambda nil (interactive) (helm-select-nth-action 11)) (f11 lambda nil (interactive) (helm-select-nth-action 10)) (f10 lambda nil (interactive) (helm-select-nth-action 9)) (f9 . my--helm-toggle-scroll-bar) (f8 lambda nil (interactive) (helm-select-nth-action 7)) (f7 lambda nil (interactive) (helm-select-nth-action 6)) (f6 lambda nil (interactive) (helm-select-nth-action 5)) (f5 lambda nil (interactive) (helm-select-nth-action 4)) (f4 lambda nil (interactive) (helm-select-nth-action 3)) (f3 lambda nil (interactive) (helm-select-nth-action 2)) (f2 lambda nil (interactive) (helm-select-nth-action 1)) (emacs-state keymap (27 keymap (32 keymap (101 keymap (104 keymap (109 . helm-help))))) (3 keymap (101 keymap (104 keymap (109 . helm-help))))) (normal-state keymap (32 keymap (101 keymap (104 keymap (109 . helm-help)))) (3 keymap (101 keymap (104 keymap (109 . helm-help))))) (visual-state keymap (32 keymap (101 keymap (104 keymap (109 . helm-help)))) (3 keymap (101 keymap (104 keymap (109 . helm-help))))) (motion-state keymap (32 keymap (101 keymap (104 keymap (109 . helm-help)))) (3 keymap (101 keymap (104 keymap (109 . helm-help))))) (insert-state keymap (27 keymap (32 keymap (101 keymap (104 keymap (109 . helm-help))))) (3 keymap (101 keymap (104 keymap (109 . helm-help))))) (menu-bar keymap (help-menu keymap (describe keymap (describe-mode . helm-help)))) (help keymap (109 . helm-help)) (23 . my-backward-delete-word) (f1 lambda nil (interactive) (helm-select-nth-action 0)) (8 keymap (109 . helm-help) (104 . undefined) (8 . undefined) (99 . helm-customize-group) (4 . helm-enable-or-switch-to-debug)) (20 . helm-toggle-resplit-and-swap-windows) (C-tab . undefined) (67108897 . helm-toggle-suspend-update) (3 keymap (57 . helm-execute-selection-action-at-nth-+9) (56 . helm-execute-selection-action-at-nth-+8) (55 . helm-execute-selection-action-at-nth-+7) (54 . helm-execute-selection-action-at-nth-+6) (53 . helm-execute-selection-action-at-nth-+5) (52 . helm-execute-selection-action-at-nth-+4) (51 . helm-execute-selection-action-at-nth-+3) (50 . helm-execute-selection-action-at-nth-+2) (49 . helm-execute-selection-action-at-nth-+1) (63 . helm-help) (110 . #f(compiled-function () (interactive nil) #<bytecode 0x17e9559>)) (62 . helm-toggle-truncate-line) (21 . helm-refresh) (6 . helm-follow-mode) (9 . helm-copy-to-buffer) (11 . helm-kill-selection-and-quit) (25 . helm-yank-selection) (45 . helm-swap-windows)) (67108987 . helm-enlarge-window) (67108989 . helm-narrow-window) (19 . undefined) (24 keymap (57 . helm-execute-selection-action-at-nth-+9) (56 . helm-execute-selection-action-at-nth-+8) (55 . helm-execute-selection-action-at-nth-+7) (54 . helm-execute-selection-action-at-nth-+6) (53 . helm-execute-selection-action-at-nth-+5) (52 . helm-execute-selection-action-at-nth-+4) (51 . helm-execute-selection-action-at-nth-+3) (50 . helm-execute-selection-action-at-nth-+2) (49 . helm-execute-selection-action-at-nth-+1) (2 . helm-resume-list-buffers-after-quit) (98 . helm-resume-previous-session-after-quit) (6 . helm-quit-and-find-file)) (11 . helm-delete-minibuffer-contents) (67108896 . helm-toggle-visible-mark) (0 . helm-toggle-visible-mark) (C-M-up . helm-scroll-other-window-down) (C-M-down . helm-scroll-other-window) (M-prior . helm-scroll-other-window-down) (M-next . helm-scroll-other-window) (12 . helm-recenter-top-bottom-other-window) (15 . helm-next-source) (10 . helm-execute-persistent-action) (26 . helm-select-action) (9 . helm-execute-persistent-action) (13 . helm-maybe-exit-minibuffer) (left . helm-previous-source) (right . helm-next-source) (7 . helm-keyboard-quit) (22 . helm-next-page) (27 keymap (110 . next-history-element) (112 . previous-history-element) (115 . undefined) (5 . helm-display-all-sources) (1 . helm-show-all-in-this-source-only) (85 . helm-unmark-all) (97 . helm-mark-all) (109 . helm-toggle-all-marks) (41 . helm-next-visible-mark) (40 . helm-prev-visible-mark) (91) (32 . helm-toggle-visible-mark) (33554454 . helm-scroll-other-window-down) (25 . helm-scroll-other-window-down) (22 . helm-scroll-other-window) (12 . helm-reposition-window-other-window) (111 . helm-previous-source) (62 . helm-end-of-buffer) (60 . helm-beginning-of-buffer) (118 . helm-previous-page)) (next . helm-next-page) (prior . helm-previous-page) (C-up . helm-follow-action-backward) (C-down . helm-follow-action-forward) (16 . helm-previous-line) (14 . helm-next-line) (up . helm-previous-line) (down . helm-next-line) keymap (18 . helm-minibuffer-history) (23 . my-backward-delete-word) (21 . my-backward-kill-line) (menu-bar keymap (minibuf "Minibuf" keymap (previous menu-item "Previous History Item" previous-history-element :help "Put previous minibuffer history element in the minibuffer") (next menu-item "Next History Item" next-history-element :help "Put next minibuffer history element in the minibuffer") (isearch-backward menu-item "Isearch History Backward" isearch-backward :help "Incrementally search minibuffer history backward") (isearch-forward menu-item "Isearch History Forward" isearch-forward :help "Incrementally search minibuffer history forward") (return menu-item "Enter" exit-minibuffer :key-sequence "\015" :help "Terminate input and exit minibuffer") (quit menu-item "Quit" abort-recursive-edit :help "Abort input and exit minibuffer") "Minibuf")) (10 . exit-minibuffer) (13 . exit-minibuffer) (7 . minibuffer-keyboard-quit) (C-tab . file-cache-minibuffer-complete) (9 . self-insert-command) (XF86Back . previous-history-element) (up . previous-line-or-history-element) (prior . previous-history-element) (XF86Forward . next-history-element) (down . next-line-or-history-element) (next . next-history-element) (27 keymap (114 . previous-matching-history-element) (115 . next-matching-history-element) (112 . previous-history-element) (110 . next-history-element))) nil helm-occur-history "use" t)
  helm-read-pattern-maybe(nil nil "test\\.markdown:3:" nil nil "use" helm-occur-history)
  helm-internal(helm-source-occur nil nil nil "test\\.markdown:3:" "*helm occur*" nil "use" helm-occur-history)
  apply(helm-internal (helm-source-occur nil nil nil "test\\.markdown:3:" "*helm occur*" nil "use" helm-occur-history))
  helm(helm-source-occur nil nil nil "test\\.markdown:3:" "*helm occur*" nil "use" helm-occur-history)
  apply(helm (helm-source-occur nil nil nil "test\\.markdown:3:" "*helm occur*" nil "use" helm-occur-history))
  helm(:sources helm-source-occur :buffer "*helm occur*" :default "use" :history helm-occur-history :preselect "test\\.markdown:3:" :truncate-lines t)
  helm-occur()
  funcall-interactively(helm-occur)
  call-interactively(helm-occur nil nil)
  command-execute(helm-occur)

Jorge Israel Pe帽a notifications@github.com writes:

Thanks, the first buffer I posted is confirmed fixed, but the second one I posted gives an error. This isn't a contrived example, just a reduction. This happens in a
real-world buffer.

It seems like it's an error with outline-minor-mode.

Looks like a bug with outline not supporting markdown.

Perhaps helm-moccur can be made to gracefully ignore the outline
functions if they error out.

Done.

Thanks.

--
Thierry

Confirmed working. Thanks.

Was this page helpful?
0 / 5 - 0 ratings