unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "João Távora" <joaotavora@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
Subject: Re: Byte-compilation warning in eldoc.el
Date: Fri, 10 Jul 2020 16:31:18 +0100	[thread overview]
Message-ID: <87v9ive69l.fsf@gmail.com> (raw)
In-Reply-To: <jwv4kqfbfo6.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Fri, 10 Jul 2020 10:41:47 -0400")

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> Thanks, fixed.  But curiously it doesn't.  You can call it (and I always
>> do call it) with one argument, as one does in CL.
>
> Technically, you can call it with one argument.
> But in 99% of the cases it's a really bad idea.

What's the difference to `intern'? or `intern-soft'?

>> By the way, the only reason I had to do this (I rarely use this outside
>> interactive contexts)
>
> Exactly: it might make sense occasionally while debugging, but is
> usually an error in code.

Not arguing but, like Drew, I wonder why.  FWIW in Common Lisp, intern,
unintern, find-symbol, etc all assume the "current package" as the thing
to operate on.

>> Separately, I also noticed that calling `package-install` for Eldoc in
>> Emacs 26.3, will _not_ load eldoc, and neither will `require`.
>
> Not sure what you mean with the "_not_ load" part, but as for `require`,
> it's normal because it's preloaded.

Sorry, it means two different things:

1. when you `package-install` the new eldoc 1.2.0 package in Emacs 26.3
   for the first time, it just compiles it, it doesn't load it.  We had
   witnessed this with Flymake too, remember?

2. When you shut down that Emacs session, start it again, run
   package-initialize, you _still_ don't have the new eldoc.el file
   (1.2.0) loaded.  This is only for eldoc.el, flymake.el works
   correctly in this use case.

João



  parent reply	other threads:[~2020-07-10 15:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-10  6:53 Byte-compilation warning in eldoc.el Eli Zaretskii
2020-07-10  7:20 ` João Távora
2020-07-10  7:43   ` Eli Zaretskii
2020-07-10  9:36   ` Noam Postavsky
2020-07-10 14:41   ` Stefan Monnier
2020-07-10 15:05     ` Drew Adams
2020-07-10 15:31     ` João Távora [this message]
2020-07-10 21:29       ` Stefan Monnier
2020-07-10 21:48         ` João Távora
2020-07-10 22:08           ` 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=87v9ive69l.fsf@gmail.com \
    --to=joaotavora@gmail.com \
    --cc=eliz@gnu.org \
    --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).