Skip to content

Fix warning "Helm source <file>: after-init-hook Should be defined as a symbol #2549

@darim1

Description

@darim1

What happened?

I observe warnings, when trying to search my org files with helm-org-rifle:

Warning (emacs): Helm source ‘file1.org’: after-init-hook Should be defined as a symbol Disable showing Disable logging
Warning (emacs): Helm source ‘file2.org’: after-init-hook Should be defined as a symbol Disable showing Disable logging
...

The only after-init hook I employ is a key binding:

(add-hook 'helm-after-initialize-hook
          (lambda()
            (define-key helm-buffer-map (kbd "ESC") 'helm-keyboard-quit)
            (define-key helm-M-x-map (kbd "ESC") 'helm-keyboard-quit)
            (define-key helm-map (kbd "ESC") 'helm-keyboard-quit)))

I've already disabled it, with no luck.

How to reproduce?

  1. Install helm-org-rifle
  2. define some agenda files
  3. run helm-org-rifle
  4. Observe the warnings, before the pattern can be entered

Helm Version

Melpa or NonGnuElpa

Emacs Version

Emacs-28/29

OS

Windows

Relevant backtrace (if possible)

No response

Minimal configuration

  • I agree using a minimal configuration

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions