Skip to content

Break with auto-indent-mode.el #30

@tobiasBora

Description

@tobiasBora

Hello,
I don't know why, but if I enable both the auto-indent-mode together with the smooth-scrolling-mode, any time I just try to mode my cursor I get an error with lot's of unreadible chars:

    apply: Wrong number of arguments: #[(ad--addoit-function arg) "Æ���ÇÈÆ\"����\0
��\0ÉÊ!��\0ÉË!��\0Æ��!�
�G\0	�G\0��Ì=�G\0Í �G\0ÎÏ !�ÇÈÆ\"�G\0ÐÆw�����\0����\0	��\0����>��\0���h\0ÑÒ!��\0Ó ��\0����\0Ô ��\0Ï �ÇÈÆ\"�ÐÆw�)�)�" [ad-return-value at-beginning auto-indent-home-is-beginning-of-indent-when-spaces-follow ad--addoit-function arg auto-indent-fix-org-move-beginning-of-line nil looking-back "^[ 	]*" looking-at ...] 4], 1

To get this issue I just need to enable both modes:

;; Auto-indent when pasting code
;; https://github.com/mattfidler/auto-indent-mode.el
(use-package auto-indent-mode
  :ensure t
  :config
  (auto-indent-global-mode))

;; Smooth scrolling package,
;; https://github.com/aspiers/smooth-scrolling
(use-package smooth-scrolling
  :ensure t
  :config
  (smooth-scrolling-mode 1))

Here is a full example init.el, you just need to save it in, say, /tmp/debugemacs/.emacs.d/init.el, and run:

env HOME=/tmp/debugemacs/ emacs

Then, just type "C-n" in any buffer, and observe the error.

I don't know in which package there is an issue, so I'll submit in both repos, here is the corresponding issue in the other repo https://github.com/mattfidler/auto-indent-mode.el/issues/66.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions