From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#50946: Emacs-28: Inadequate coding in hack-elisp-shorthands Date: Sat, 02 Oct 2021 12:13:14 +0100 Message-ID: <87r1d33cj9.fsf@gmail.com> References: <831r54einq.fsf@gnu.org> <871r54xnds.fsf@gmail.com> 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="10817"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) Cc: 50946-done@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 02 13:14:20 2021 Return-path: Envelope-to: geb-bug-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 1mWcyC-0002bH-22 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 02 Oct 2021 13:14:20 +0200 Original-Received: from localhost ([::1]:34524 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWcyA-000064-4r for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 02 Oct 2021 07:14:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47198) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWcxv-0008VR-9d for bug-gnu-emacs@gnu.org; Sat, 02 Oct 2021 07:14:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46507) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mWcxu-0005iG-E6 for bug-gnu-emacs@gnu.org; Sat, 02 Oct 2021 07:14:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mWcxu-00050n-9j for bug-gnu-emacs@gnu.org; Sat, 02 Oct 2021 07:14:02 -0400 Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Oct 2021 11:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 50946 X-GNU-PR-Package: emacs Mail-Followup-To: 50946@debbugs.gnu.org, joaotavora@gmail.com, acm@muc.de Original-Received: via spool by 50946-done@debbugs.gnu.org id=D50946.163317320719200 (code D ref 50946); Sat, 02 Oct 2021 11:14:02 +0000 Original-Received: (at 50946-done) by debbugs.gnu.org; 2 Oct 2021 11:13:27 +0000 Original-Received: from localhost ([127.0.0.1]:58051 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWcxL-0004zc-7R for submit@debbugs.gnu.org; Sat, 02 Oct 2021 07:13:27 -0400 Original-Received: from mail-wr1-f45.google.com ([209.85.221.45]:36564) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWcxI-0004zO-ON for 50946-done@debbugs.gnu.org; Sat, 02 Oct 2021 07:13:25 -0400 Original-Received: by mail-wr1-f45.google.com with SMTP id o20so1703397wro.3 for <50946-done@debbugs.gnu.org>; Sat, 02 Oct 2021 04:13:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=XzNJ6HPcD8wuf9f/y5DewbcfSxV/ceaKoTVc5gEiTpo=; b=mkFvAPYHttSbTriO0lIIwpslqyKuijqCsR9n16bBBPR94+dyQvCldPflaRXjLNFw6U +9dIAwFCIS+UaMUjQGa2Z21jG7JMzMTP+GjV1BaJmI/E8BUFmpTf9dGCGTNReaoJnVQB dQc/2bnraTxZTqX0x2KjEWsCDdupXAEbqfWQ3yoHb2/exWj1Dsiibzh0B7FBUGol4St8 i9l2lt+VAM0+WR91cQnlPc3zjF62cIisVJt+5xcjVkAD6PX/kwfIAOmsxNWkKPCzUkxf Gj2iNtIppC9aAXv4Ka0N38ns3N74EguLlpopfF+kXvf06jGa1CyK6fsay+Hd3hkBntLD ju2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=XzNJ6HPcD8wuf9f/y5DewbcfSxV/ceaKoTVc5gEiTpo=; b=wVwAXzvIwKOy2jmhk7M46Xq5jcZDTf+3S3keKWFOC4Ls29NDN/ImqFKMtkLc38hRm2 2wMaSU73RpHrz42OV7OHfeucHWrjx+Mz1avAFGgxNQ4JzAgD+ZLJLP5R4MnOU53FaemS 1m21rXYidrG8Kb6LDEVbo1HbLTo8Zzg5xjvip3gY3R44SUJU58ho22qkZHXd37DCB5Rz 8/bfXbZ+s7c6EMESArJmNGMljfxXeuekEwKKqILvnG3XL1AF9HS3bVCTzIEbTM58oFk6 VCmv93qCh9/pRoB1NG8RMny5bMPMJBSuq91QebiSSTlRkT24l37GHUqMzqfIeAASp3oq Hi6g== X-Gm-Message-State: AOAM532LyK/v6qEtTexRclZbDfvTLJ9BdAzka+grxITkHX3Uii5HR6j4 i8Gr6DzO2+Aj8AFhmZtzU1GIwSrn0D8= X-Google-Smtp-Source: ABdhPJwA6zOd9JhP7pHeK4Riy1QybrmeDKdE08LLMHVgBwYbjCqAxWwEb15jW5O3+bSjiBYLwsi2+Q== X-Received: by 2002:a05:6000:154b:: with SMTP id 11mr2842188wry.161.1633173198607; Sat, 02 Oct 2021 04:13:18 -0700 (PDT) Original-Received: from krug (87-196-156-235.net.novis.pt. [87.196.156.235]) by smtp.gmail.com with ESMTPSA id l21sm10320599wme.39.2021.10.02.04.13.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Oct 2021 04:13:17 -0700 (PDT) In-Reply-To: (Alan Mackenzie's message of "Sat, 2 Oct 2021 10:50:29 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:216125 Archived-At: Alan Mackenzie writes: > Why aren't you just using that function on the buffer anyway, instead of = all this > clumsy messing around with temporary buffers, file-attributes, and > successive 100 bytes, and so on? I used it to quickly and efficiently discover the value of elisp-shorthands as soon as possible, before the 'read' takes place in load-code-with-conversion. Doing other wise is possible but it is an intrusive change into the longstanding load-with-code-conversion, which I avoided during the early days of this feature. If you can do it and it doens't break anything, go ahead. Stefan is investigating this as well. > ... even if this scenario is highly unusual. You think? Jo=C3=A3o