emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [nongnu] elpa/scala-mode c2a4f58643 1/2: Revert "scala-mode-indent.e


From: Stefan Monnier
Subject: Re: [nongnu] elpa/scala-mode c2a4f58643 1/2: Revert "scala-mode-indent.el: remove unused arg from `goto-block-anchor`"
Date: Mon, 30 Dec 2024 19:08:05 -0500
User-agent: Gnus/5.13 (Gnus v5.13)

> branch: elpa/scala-mode
> commit c2a4f58643eb505f38c8e341a29400e79f47f442
> Author: Konstantin Kharlamov <Hi-Angel@yandex.ru>
> Commit: Konstantin Kharlamov <Hi-Angel@yandex.ru>
>
>     Revert "scala-mode-indent.el: remove unused arg from `goto-block-anchor`"
[...]
> @@ -583,7 +583,7 @@ keyword, or nil if not."
>  ;;; Block
>  ;;;
>  
> -(defun scala-indent:goto-block-anchor ()
> +(defun scala-indent:goto-block-anchor (&optional point)
>    "Moves back to the point whose column will be used as the
>  anchor for calculating block indent for current point (or point
>  `point'). Returns point or (point-min) if not inside a block."

If the argument is unused, then you should rename it to `_point` which
(by convention) says explicitly that this arg is not used.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]