From unknown Sat Jun 21 12:23:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8843: 23.3; Scheme-mode: Faulty syntax highlighting Resent-From: Simen =?UTF-8?Q?Heggest=C3=B8yl?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Jun 2011 13:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8843 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 8843@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.130788695316872 (code B ref -1); Sun, 12 Jun 2011 13:56:02 +0000 Received: (at submit) by debbugs.gnu.org; 12 Jun 2011 13:55:53 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QVl8p-0004O3-6m for submit@debbugs.gnu.org; Sun, 12 Jun 2011 09:55:53 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QVjXL-0002AI-Gm for submit@debbugs.gnu.org; Sun, 12 Jun 2011 08:13:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QVjXF-0006Cp-4R for submit@debbugs.gnu.org; Sun, 12 Jun 2011 08:12:58 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:43986) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVjXE-0006Cl-Sm for submit@debbugs.gnu.org; Sun, 12 Jun 2011 08:12:56 -0400 Received: from eggs.gnu.org ([140.186.70.92]:40769) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVjXD-0004P8-3L for bug-gnu-emacs@gnu.org; Sun, 12 Jun 2011 08:12:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QVjXB-0006CW-Js for bug-gnu-emacs@gnu.org; Sun, 12 Jun 2011 08:12:54 -0400 Received: from mail-out1.uio.no ([129.240.10.57]:36884) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVjXB-0006C0-0m for bug-gnu-emacs@gnu.org; Sun, 12 Jun 2011 08:12:53 -0400 Received: from mail-mx1.uio.no ([129.240.10.29]) by mail-out1.uio.no with esmtp (Exim 4.75) (envelope-from ) id 1QVjX8-0003s3-Hb for bug-gnu-emacs@gnu.org; Sun, 12 Jun 2011 14:12:50 +0200 Received: from tul-1x-dhcp123.studby.uio.no ([193.157.253.127] helo=archtop) by mail-mx1.uio.no with esmtp (Exim 4.76) (envelope-from ) id 1QVjX8-0005Z9-3A for bug-gnu-emacs@gnu.org; Sun, 12 Jun 2011 14:12:50 +0200 From: Simen =?UTF-8?Q?Heggest=C3=B8yl?= Date: Sun, 12 Jun 2011 14:16:34 +0200 Message-ID: <87aadn5jod.fsf@ifi.uio.no> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-UiO-Ratelimit-Test: rcpts/h 1 msgs/h 1 sum rcpts/h 2 sum msgs/h 2 total rcpts 717 max rcpts/h 255 ratelimit 0 X-UiO-Spam-info: not spam, SpamAssassin (score=-0.0, required=5.0, autolearn=disabled, FSL_HELO_NON_FQDN_1=0.001, HELO_NO_DOMAIN=0.001, T_RP_MATCHES_RCVD=-0.01, uiobl=NO, uiouri=NO) X-UiO-Scanned: AD297BEAFB1A4FFBD35C02F45DE2A666EA353092 X-UiO-SPAM-Test: remote_host: 193.157.253.127 spam_score: 0 maxlevel 80 minaction 2 bait 0 mail/h: 1 total 33 max/h 2 blacklist 0 greylist 0 ratelimit 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -6.6 (------) X-Mailman-Approved-At: Sun, 12 Jun 2011 09:55:50 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) How to trig the bug, starting from emacs -Q: 1. Type: M-x scheme-mode RET 2. Type: (define abc=C3=A6=C3=B8=C3=A5) The string is highlighted until the "=C3=A6=C3=B8=C3=A5"-part. =C3=86, =C3= =B8 and =C3=A5 are common letters in some Nordic alphabets. Also, the word movement commands (forward-word etc.) doesn't seem to treat =C3=A6, =C3=B8 and =C3=A5 as part= of the word. I think this is faulty, as =C3=A6/=C3=86, =C3=B8/=C3=98 and =C3=A5/= =C3=85 are all legit Scheme-symbols. Lisp-mode and emacs-lisp-mode seem to handle these characters as expected. This may be a problem for other foreign characters too, I don't know. Output from the 'locale' program: LANG=3Den_US.UTF-8 LC_CTYPE=3D"en_US.UTF-8" LC_NUMERIC=3D"en_US.UTF-8" LC_TIME=3D"en_US.UTF-8" LC_COLLATE=3D"en_US.UTF-8" LC_MONETARY=3D"en_US.UTF-8" LC_MESSAGES=3D"en_US.UTF-8" LC_PAPER=3D"en_US.UTF-8" LC_NAME=3D"en_US.UTF-8" LC_ADDRESS=3D"en_US.UTF-8" LC_TELEPHONE=3D"en_US.UTF-8" LC_MEASUREMENT=3D"en_US.UTF-8" LC_IDENTIFICATION=3D"en_US.UTF-8" LC_ALL=3D In GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.4) of 2011-06-12 on archtop Windowing system distributor `The X.Org Foundation', version 11.0.11002000 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Scheme Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x s c h e m e - m o d e ( d e f i n e SPC=20 a b c =C3=A6 =C3=B8 =C3=A5 ) M-x r e p o r t - Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util time-date mail-extr message sendmail regexp-opt format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader emacsbug scheme tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) From unknown Sat Jun 21 12:23:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8843: 23.3; Scheme-mode: Faulty syntax highlighting Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Aug 2011 03:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8843 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Simen =?UTF-8?Q?Heggest=C3=B8yl?= Cc: 8843@debbugs.gnu.org Received: via spool by 8843-submit@debbugs.gnu.org id=B8843.131398452212702 (code B ref 8843); Mon, 22 Aug 2011 03:43:01 +0000 Received: (at 8843) by debbugs.gnu.org; 22 Aug 2011 03:42:02 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QvLOi-0003Ii-Ql for submit@debbugs.gnu.org; Sun, 21 Aug 2011 23:42:01 -0400 Received: from vm-emlprdomr-05.its.yale.edu ([130.132.50.146]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QvLOh-0003Ib-Az for 8843@debbugs.gnu.org; Sun, 21 Aug 2011 23:42:00 -0400 Received: from furball (dhcp-128-36-14-148.central.yale.edu [128.36.14.148]) (authenticated bits=0) by vm-emlprdomr-05.its.yale.edu (8.14.4/8.14.4) with ESMTP id p7M3dcVL028324 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Sun, 21 Aug 2011 23:39:39 -0400 From: Chong Yidong References: <87aadn5jod.fsf@ifi.uio.no> Date: Sun, 21 Aug 2011 23:39:37 -0400 In-Reply-To: <87aadn5jod.fsf@ifi.uio.no> ("Simen \=\?utf-8\?Q\?Heggest\=C3\=B8yl\?\= \=\?utf-8\?Q\?\=22's\?\= message of "Sun, 12 Jun 2011 14:16:34 +0200") Message-ID: <877h66w1vq.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 2.71 on 130.132.50.146 X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) Simen Heggest=C3=B8yl writes: > How to trig the bug, starting from emacs -Q: > 1. Type: M-x scheme-mode RET > 2. Type: (define abc=C3=A6=C3=B8=C3=A5) > > The string is highlighted until the "=C3=A6=C3=B8=C3=A5"-part. =C3=86, = =C3=B8 and =C3=A5 are common > letters in some Nordic alphabets. Also, the word movement commands > (forward-word etc.) doesn't seem to treat =C3=A6, =C3=B8 and =C3=A5 as pa= rt of the > word. I think this is faulty, as =C3=A6/=C3=86, =C3=B8/=C3=98 and =C3=A5/= =C3=85 are all legit > Scheme-symbols. Lisp-mode and emacs-lisp-mode seem to handle these > characters as expected. This may be a problem for other foreign > characters too, I don't know. I've committed a fix to the trunk (for Emacs 24.1). Thanks for the bug report. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 21 23:42:12 2011 Received: (at control) by debbugs.gnu.org; 22 Aug 2011 03:42:12 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QvLOt-0003JK-LR for submit@debbugs.gnu.org; Sun, 21 Aug 2011 23:42:12 -0400 Received: from vm-emlprdomr-04.its.yale.edu ([130.132.50.145]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QvLOs-0003JE-M9 for control@debbugs.gnu.org; Sun, 21 Aug 2011 23:42:11 -0400 Received: from furball (dhcp-128-36-14-148.central.yale.edu [128.36.14.148]) (authenticated bits=0) by vm-emlprdomr-04.its.yale.edu (8.14.4/8.14.4) with ESMTP id p7M3dofl017416 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Sun, 21 Aug 2011 23:39:50 -0400 From: Chong Yidong To: control@debbugs.gnu.org Subject: close 8843 Date: Sun, 21 Aug 2011 23:39:49 -0400 Message-ID: <87ei0enmgq.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.71 on 130.132.50.145 X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) close 8843 thanks