aspiers / smooth-scrolling

Emacs smooth scrolling package
107 stars 14 forks source link

Error on Emacs 27.2, darwin #31

Open Pitometsu opened 3 years ago

Pitometsu commented 3 years ago
Debugger entered--Lisp error: (wrong-number-of-arguments #f(compiled-function (ad--addoit-function arg) #<bytecode 0x1feb36f4a995>) 1)
  ad-Advice-move-beginning-of-line(#f(compiled-function (&optional n) "Move point to beginning of current visual line.\nWith argument N not nil or 1, move forward N - 1 visual lines first.\nIf point reaches the beginning or end of buffer, it stops there.\n(But if the buffer doesn't end in a newline, it stops at the\nbeginning of the last visual line.)\nTo ignore intangibility, bind `inhibit-point-motion-hooks' to t." (interactive "^p") #<bytecode 0x41b8288b>))
  apply(ad-Advice-move-beginning-of-line #f(compiled-function (&optional n) "Move point to beginning of current visual line.\nWith argument N not nil or 1, move forward N - 1 visual lines first.\nIf point reaches the beginning or end of buffer, it stops there.\n(But if the buffer doesn't end in a newline, it stops at the\nbeginning of the last visual line.)\nTo ignore intangibility, bind `inhibit-point-motion-hooks' to t." (interactive "^p") #<bytecode 0x41b8288b>) nil)
  beginning-of-visual-line()
  smooth-scroll-line-beginning-position()
  smooth-scroll-lines-above-point()
  do-smooth-scroll()
  ad-Advice-next-line(#f(compiled-function (&optional arg try-vscroll) "Move cursor vertically down ARG lines.\nInteractively, vscroll tall lines if `auto-window-vscroll' is enabled.\nNon-interactively, use TRY-VSCROLL to control whether to vscroll tall\nlines: if either `auto-window-vscroll' or TRY-VSCROLL is nil, this\nfunction will not vscroll.\n\nARG defaults to 1.\n\nIf there is no character in the target line exactly under the current column,\nthe cursor is positioned after the character in that line that spans this\ncolumn, or at the end of the line if it is not long enough.\nIf there is no line in the buffer after this one, behavior depends on the\nvalue of `next-line-add-newlines'.  If non-nil, it inserts a newline character\nto create a line, and moves the cursor to that line.  Otherwise it moves the\ncursor to the end of the buffer.\n\nIf the variable `line-move-visual' is non-nil, this command moves\nby display lines.  Otherwise, it moves by buffer lines, without\ntaking variable-width characters or continued lines into account.\nSee \\[next-logical-line] for a command that always moves by buffer lines.\n\nThe command \\[set-goal-column] can be used to create\na semipermanent goal column for this command.\nThen instead of trying to move exactly vertically (or as close as possible),\nthis command moves to the specified goal column (or as close as possible).\nThe goal column is stored in the variable `goal-column', which is nil\nwhen there is no goal column.  Note that setting `goal-column'\noverrides `line-move-visual' and causes this command to move by buffer\nlines rather than by display lines." (interactive "^p\np") #<bytecode 0x419a1b9d>) 1 1)
  apply(ad-Advice-next-line #f(compiled-function (&optional arg try-vscroll) "Move cursor vertically down ARG lines.\nInteractively, vscroll tall lines if `auto-window-vscroll' is enabled.\nNon-interactively, use TRY-VSCROLL to control whether to vscroll tall\nlines: if either `auto-window-vscroll' or TRY-VSCROLL is nil, this\nfunction will not vscroll.\n\nARG defaults to 1.\n\nIf there is no character in the target line exactly under the current column,\nthe cursor is positioned after the character in that line that spans this\ncolumn, or at the end of the line if it is not long enough.\nIf there is no line in the buffer after this one, behavior depends on the\nvalue of `next-line-add-newlines'.  If non-nil, it inserts a newline character\nto create a line, and moves the cursor to that line.  Otherwise it moves the\ncursor to the end of the buffer.\n\nIf the variable `line-move-visual' is non-nil, this command moves\nby display lines.  Otherwise, it moves by buffer lines, without\ntaking variable-width characters or continued lines into account.\nSee \\[next-logical-line] for a command that always moves by buffer lines.\n\nThe command \\[set-goal-column] can be used to create\na semipermanent goal column for this command.\nThen instead of trying to move exactly vertically (or as close as possible),\nthis command moves to the specified goal column (or as close as possible).\nThe goal column is stored in the variable `goal-column', which is nil\nwhen there is no goal column.  Note that setting `goal-column'\noverrides `line-move-visual' and causes this command to move by buffer\nlines rather than by display lines." (interactive "^p\np") #<bytecode 0x419a1b9d>) (1 1))
  next-line(1 1)
  funcall-interactively(next-line 1 1)
  call-interactively(next-line nil nil)
  command-execute(next-line)
aspiers commented 6 months ago

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