From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Insert character pairs Date: Thu, 29 Apr 2004 12:12:21 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <87brlb1840.fsf@mail.jurta.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1083234002 22806 80.91.224.253 (29 Apr 2004 10:20:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 29 Apr 2004 10:20:02 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Apr 29 12:19:51 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BJ8dx-0007qa-00 for ; Thu, 29 Apr 2004 12:19:49 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BJ8dx-0001tC-00 for ; Thu, 29 Apr 2004 12:19:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BJ8bx-00076R-Tt for emacs-devel@quimby.gnus.org; Thu, 29 Apr 2004 06:17:45 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BJ8bE-0006dj-3M for emacs-devel@gnu.org; Thu, 29 Apr 2004 06:17:00 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BJ8aZ-0006G9-4l for emacs-devel@gnu.org; Thu, 29 Apr 2004 06:16:50 -0400 Original-Received: from [195.135.220.2] (helo=Cantor.suse.de) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.30) id 1BJ8Zs-0005oD-93 for emacs-devel@gnu.org; Thu, 29 Apr 2004 06:15:36 -0400 Original-Received: from hermes.suse.de (Hermes.suse.de [195.135.221.8]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by Cantor.suse.de (Postfix) with ESMTP id 641134CA266; Thu, 29 Apr 2004 12:12:22 +0200 (CEST) Original-To: Juri Linkov X-Yow: It's 74 degrees, 12 minutes NORTH, and 41 degrees, 3 minutes EAST!! Soon, it will be TUESDAY!! In-Reply-To: <87brlb1840.fsf@mail.jurta.org> (Juri Linkov's message of "Thu, 29 Apr 2004 11:48:48 +0300") User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:22347 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22347 Juri Linkov writes: > (and parens-require-spaces > (not (bobp)) > - (memq (char-syntax (preceding-char)) '(?w ?_ ?\) )) > + (memq (char-syntax (preceding-char)) (list ?w ?_ close)) This won't work, the list contains syntax codes, not characters. > (and parens-require-spaces > (not (eobp)) > - (memq (char-syntax (following-char)) '(?w ?_ ?\( )) > - (insert " ")))) > + (memq (char-syntax (following-char)) (list ?w ?_ open)) > + (insert " "))))) Same here. Andreas. --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux AG, Maxfeldstra=DFe 5, 90409 N=FCrnberg, Germany Key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."