From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Bookmarks in EWW Date: Sun, 19 Apr 2020 09:18:21 -0400 Message-ID: References: <878sjrfh2m.fsf@mbork.pl> <871rpipzwa.fsf@web.de> <87tv2d3zii.fsf@web.de> <87lfnn9b2o.fsf@web.de> <87r1xeeek1.fsf@web.de> <87k135ky5j.fsf@web.de> <875zdwqgxz.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="74889"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 19 15:19:02 2020 Return-path: Envelope-to: geh-help-gnu-emacs@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 1jQ9qg-000JO8-6v for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 19 Apr 2020 15:19:02 +0200 Original-Received: from localhost ([::1]:41762 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQ9qf-0000I1-A9 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 19 Apr 2020 09:19:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50990) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQ9q7-0000HS-El for help-gnu-emacs@gnu.org; Sun, 19 Apr 2020 09:18:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jQ9q6-0005zk-2y for help-gnu-emacs@gnu.org; Sun, 19 Apr 2020 09:18:26 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:6964) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jQ9q5-0005wJ-JU for help-gnu-emacs@gnu.org; Sun, 19 Apr 2020 09:18:25 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 5EA3110099B; Sun, 19 Apr 2020 09:18:24 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id B2AB810077D; Sun, 19 Apr 2020 09:18:22 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1587302302; bh=KmInFnQFUNKDwQ4i6ODOWDxrwgm+EBLSPFPPRa8YJZI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=heHWpN8QVDTHaMvQNiv6fNzkk0pPUUiLGQtkB7LA3kzPc+GYjI8XgRpZHByiaGX/r p44mgaGD286jsEKtXh/HhU3uvbMXnOKdoBNbefzVNJvTALk1BYa12yVCSosfpDkhql pMKFJ3j7kXGSB80ZU5v0ktLbW45A69FOE3YBPwSk0gwRNAWC1XpIYfo4W9CHTVpO7a C1g/kp04T2ikOEr6xUiJH4u+GN489+lnSz0SHdWSgyiJ4lVur3u/szOTAp7tZzA2RK yFpqxd99QYk0c8BGz3qGMjTOztbn3Vbek3FJ+R9Auirw9CaWxydUFg8ZDdnTZoc1kK vgAIPi2BbWmiw== Original-Received: from alfajor (unknown [104.247.241.114]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 46DB5120554; Sun, 19 Apr 2020 09:18:22 -0400 (EDT) In-Reply-To: <875zdwqgxz.fsf@web.de> (Michael Heerdegen's message of "Sun, 19 Apr 2020 05:42:48 +0200") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-detected-operating-system: by eggs.gnu.org: Linux 2.2.x-3.x [generic] X-Received-From: 132.204.25.50 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:122889 Archived-At: Michael Heerdegen [2020-04-19 05:42:48] wrote: > Stefan Monnier writes: > >> >> Nice try, but you won't get off the hook so easily: the byte-compiler >> >> is all written in Elisp. >> > Hmm, too bad. >> > Ok, we could ehm ... give `make-local-variable' a byte-hunk-handler that >> > calls `byte-compile--declare-var'. Does that make sense? >> >> Sounds credible, yes, > > But it seems that this byte-hunk-handler is ignored unless > `make-local-variable' is called at top-level. Is this expected? Oh, right `byte-hunk-handler` is to handle top-level uses only (e.g. top-level uses of `require` trigger loading the file at compilation time, whereas they don't when not at top-level). I think you want to use `(byte-defop-compiler-1 make-local-variable)` and then define `byte-compile-make-local-variable`. Stefan