From: Konstantin Kharlamov <Hi-Angel@yandex.ru>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: [nongnu] elpa/scala-mode c2a4f58643 1/2: Revert "scala-mode-indent.el: remove unused arg from `goto-block-anchor`"
Date: Thu, 02 Jan 2025 21:11:11 +0300 [thread overview]
Message-ID: <0dfd124008c28c6eddcefdce110cf940f977ad9c.camel@yandex.ru> (raw)
In-Reply-To: <jwvh66kn2bv.fsf-monnier+emacs@gnu.org>
On Mon, 2024-12-30 at 19:08 -0500, Stefan Monnier wrote:
> > 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.
Oh, thank you! The reason I didn't do this is because when I tried
prefixing an optional param with underscore in some other instance, I
was getting parsing error. However, I can't reproduce it anymore, and
now that I'm trying to, I suspect it wasn't because of the underscore,
but rather because the make file in scala-mode sometimes prints `End of
file during parsing`, which I attributed to Emacs byte-compiler. The
Makefile is very poorly written (it also lacks some `.el` files and it
has broken rebuilds because it saves `.latest-build` file for some
reason and disregards the el vs elc files timestamps), so… yeah, I just
got confused.
next prev parent reply other threads:[~2025-01-02 18:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <173560347147.2633946.7946382225330277437@vcs3.savannah.gnu.org>
[not found] ` <20241231000431.DB05AE2FE49@vcs3.savannah.gnu.org>
2024-12-31 0:08 ` [nongnu] elpa/scala-mode c2a4f58643 1/2: Revert "scala-mode-indent.el: remove unused arg from `goto-block-anchor`" Stefan Monnier
2025-01-02 18:11 ` Konstantin Kharlamov [this message]
2025-01-02 19:12 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0dfd124008c28c6eddcefdce110cf940f977ad9c.camel@yandex.ru \
--to=hi-angel@yandex.ru \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).