From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#3824: This problem persists Date: Mon, 14 Sep 2020 16:23:17 +0200 Message-ID: <87lfhc8mju.fsf@gnus.org> References: <20090711163545.1FF939828B@pluto.mumble.net> <11168152.67691397576392365.JavaMail.root@zimbra> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5197"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 3824@debbugs.gnu.org, "J. Ian Johnson" To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 14 16:45:11 2020 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 1kHpjC-0001Dl-81 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 14 Sep 2020 16:45:10 +0200 Original-Received: from localhost ([::1]:59350 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kHpjA-0008Ss-3F for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 14 Sep 2020 10:45:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52198) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHpOk-0000WY-VG for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2020 10:24:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44138) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kHpOk-0001Yn-Jq for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2020 10:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kHpOk-0007WZ-FO for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2020 10:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 Sep 2020 14:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 3824 X-GNU-PR-Package: emacs Original-Received: via spool by 3824-submit@debbugs.gnu.org id=B3824.160009341728890 (code B ref 3824); Mon, 14 Sep 2020 14:24:02 +0000 Original-Received: (at 3824) by debbugs.gnu.org; 14 Sep 2020 14:23:37 +0000 Original-Received: from localhost ([127.0.0.1]:55684 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kHpOL-0007Vs-3z for submit@debbugs.gnu.org; Mon, 14 Sep 2020 10:23:37 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:59818) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kHpOJ-0007Vf-86 for 3824@debbugs.gnu.org; Mon, 14 Sep 2020 10:23:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=GOonELIzXIyfSW1RPr4Qv/+hRe9nO+ZlAKyUuOkEFYo=; b=IgLJYrzD5mVmh3aw/jUGOEB9Mk 8HkVo2QsN7+OcP0noRRXyPS68DfrRc/XH8k05WPwgvMXPXoY5h7Y4X3KEPPOG4brB6/CVnB8LK6nj cdGfe3wrg7Bqn+M/IjkWHn5m86X0AjuWzARxYCY+cZcG6wWIl15f6UJdfaI47Hi4pN0o=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kHpO3-0002To-Fw; Mon, 14 Sep 2020 16:23:27 +0200 X-Now-Playing: LCD Soundsystem's _Freak Out Starry Eyes_: "Freak Out Starry Eyes" In-Reply-To: (Stefan Monnier's message of "Tue, 15 Apr 2014 16:56:40 -0400") 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:188054 Archived-At: Stefan Monnier writes: >> I use #; comments extensively in my Racket code, and have been bitten >> by emacs's weird handling of it. Taylor pointed me to this bug to >> follow up. > > Does the patch below fix it for you? Two patches were proposed in this bug report, and this patch (looking quite similar) was applied a month later. commit 0a5cfeeecb9e1038f9df3b34b61b797e56213a7b Author: Stefan Monnier AuthorDate: Tue May 20 16:12:30 2014 -0400 * lisp/progmodes/scheme.el (scheme-mode-syntax-table): Remove hack for #; comments. (scheme-syntax-propertize, scheme-syntax-propertize-sexp-comment): New functions. (scheme-mode-variables): Set syntax-propertize-function instead of font-lock-syntactic-face-function. (scheme-font-lock-syntactic-face-function): Delete. However, the original test case still fails: > Consider the following line of Scheme code: > > (foo bar #;(baz (quux #;() zot) mumble) frotz) > > If the point is at the beginning, hitting C-M-f causes Emacs to barf > on imbalanced parentheses. (Or perhaps it fails again?) At least, in Emacs 28, putting that into /tmp/foo.sch and hitting `C-M-f' gives me an error. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no