From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: Byte-compilation warning in eldoc.el Date: Fri, 10 Jul 2020 08:20:37 +0100 Message-ID: <874kqfg7ju.fsf@gmail.com> References: <83k0zbq2sd.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3258"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jul 10 09:21:20 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jtnLS-0000hu-Ml for ged-emacs-devel@m.gmane-mx.org; Fri, 10 Jul 2020 09:21:18 +0200 Original-Received: from localhost ([::1]:58948 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jtnLR-00077J-Op for ged-emacs-devel@m.gmane-mx.org; Fri, 10 Jul 2020 03:21:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45016) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jtnKu-0006YS-Uf for emacs-devel@gnu.org; Fri, 10 Jul 2020 03:20:44 -0400 Original-Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:33661) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jtnKt-00052u-Ak; Fri, 10 Jul 2020 03:20:44 -0400 Original-Received: by mail-wm1-x334.google.com with SMTP id a6so7838361wmm.0; Fri, 10 Jul 2020 00:20:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=BbaywAs28nrQF4QUoQqHe2qYc0sLki0VIa1g1EpVjeY=; b=uEz9j9cyR3vREJnGPmuGoHKL/8K1fhq0XsR6dPEHZDi0XSXaT+0Wv/ub0/tAHkYkLD QqJ7GJjNUTVA9w2TcW9W5vV+/dl2xD3Jz56pSnvuiLEeDNPLEiz3A3TXUK3UU7rkc2PB ndOFO8Uhx4cVau209hGllD0uDULmgzn96N+YF8F5RcHGAUy31TZ3VE22X03tDYbjl+tS woiOkW7StwMupVjHGm6nvQdzSPmvuCrcX4/fXFx/OaRpTUojWEZ2H++SgtrjEOa95T9f 5IUsiJaq5cn5TyVnM3lOttzsTqNQLhAgic/H6ZEYrkJXXYkYyJ6G4yfvA1rBTBsSZJq6 DUzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=BbaywAs28nrQF4QUoQqHe2qYc0sLki0VIa1g1EpVjeY=; b=AA13/tU6CpnhmLbn8Vkrmz2HkGaIF5QR2IVRHJo7awyzEupHeCT22tTl1vKjGNVDwg VhjNnvqfHIya1x+L6fD+0q4tq+VVndfuXBwXAkJH0Z6Sr/x9H8Ff2IbKv+CVRmU/UBIb LmSnUzPdzcpgN4yhrNYMLrkvW1bZP8CTXm2ZWKVwohI7atn2rxrJIXFuV4m0OMw7NGVG c8bMZ4n736/tbSxh0O7hYANaMWwnnE285tKioSzBlJOujgnakY4gB0TJKtlcO2VPydU5 tZSvF5KDQpctaDKx72KEE2xxP6rjElCDdDECGN0DI/yk5cbXYL76Y/JroFywNTEbtlwL n0Lw== X-Gm-Message-State: AOAM533/VDcjM3JF69BQj5bwu21wEZkeYWrZ01/91LbLc0wmclmNMOmK GeR1HBuXk07h7tLjrP/cu2eFaGjL X-Google-Smtp-Source: ABdhPJydLt9+lsjZkWPIk3LRWHcBzC/L77q3s4CVzCeMYySOWSwB3/qUozJnfg+vhSS0NeoRXmrmWw== X-Received: by 2002:a1c:e0c4:: with SMTP id x187mr3602453wmg.153.1594365640088; Fri, 10 Jul 2020 00:20:40 -0700 (PDT) Original-Received: from krug ([2001:818:d820:9500:824a:171:15a:2213]) by smtp.gmail.com with ESMTPSA id c20sm11064900wrb.65.2020.07.10.00.20.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jul 2020 00:20:39 -0700 (PDT) In-Reply-To: <83k0zbq2sd.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 10 Jul 2020 09:53:22 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=joaotavora@gmail.com; helo=mail-wm1-x334.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:252812 Archived-At: Eli Zaretskii writes: > In toplevel form: > emacs-lisp/eldoc.el:540:2: Warning: unintern called with 1 argument, but > requires 2 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. By the way, the only reason I had to do this (I rarely use this outside interactive contexts) is to make eldoc.el work in Emacs 26.3. I explain this in the commit message, but I'm still uncertain of the cause of the problem: Author: Jo=C3=A3o T=C3=A1vora Date: Fri Jul 10 01:47:10 2020 +0100 Fix Eldoc problem when loading on Emacs 26.3 =20=20=20=20 When defining the obsolete variable alias for old eldoc-documentation-function (which now points to the newer eldoc-documentation-strategy), one gets the error "don't know how to make a localized vareiable an alias". I'm not sure, but I suspect this is because Eldoc is preloaded in Emacs 26.3 and the eldoc-documentation-function variable is already set locally by some Elisp buffer. =20=20=20=20 Uninterning the symbol shortly before defining the alias seems to fix it. Separately, I also noticed that calling `package-install` for Eldoc in Emacs 26.3, will _not_ load eldoc, and neither will `require`. One has to `load` it specifically, even after calling `package-initialize`. Jo=C3=A3o