aspiers / smooth-scrolling

Emacs smooth scrolling package
107 stars 14 forks source link

Break with auto-indent-mode.el #30

Open tobiasBora opened 4 years ago

tobiasBora commented 4 years ago

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.

aspiers commented 4 months ago

Thanks for the report and sorry for the very slow response. Please see #34 - would love to get your feedback!