From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: andrea Newsgroups: gmane.emacs.help Subject: Spaces please! Date: Tue, 01 Dec 2009 17:19:30 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1259684707 19250 80.91.229.12 (1 Dec 2009 16:25:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Dec 2009 16:25:07 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 01 17:24:56 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NFVWe-00030M-UQ for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Dec 2009 17:24:29 +0100 Original-Received: from localhost ([127.0.0.1]:52649 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFVWe-0008Ox-Ei for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Dec 2009 11:24:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NFVWH-0008OW-Mh for help-gnu-emacs@gnu.org; Tue, 01 Dec 2009 11:24:05 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NFVWD-0008NX-R0 for help-gnu-emacs@gnu.org; Tue, 01 Dec 2009 11:24:05 -0500 Original-Received: from [199.232.76.173] (port=59476 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFVWD-0008NO-KC for help-gnu-emacs@gnu.org; Tue, 01 Dec 2009 11:24:01 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:52029) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NFVWC-0002zo-Sx for help-gnu-emacs@gnu.org; Tue, 01 Dec 2009 11:24:01 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1NFVV1-0001YD-M7 for help-gnu-emacs@gnu.org; Tue, 01 Dec 2009 17:22:47 +0100 Original-Received: from 47-118.eduroam.rwth-aachen.de ([134.61.47.118]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 01 Dec 2009 17:22:47 +0100 Original-Received: from andrea.crotti.0 by 47-118.eduroam.rwth-aachen.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 01 Dec 2009 17:22:47 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 18 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 47-118.eduroam.rwth-aachen.de User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (darwin) Cancel-Lock: sha1:sHfOVky970TclEJ59oOdKj3mkbA= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:70282 Archived-At: I get sick sometimes to read something like x=y+1*(2-3*a^2) but I get even more sick to add spaces manually every time. I ask help to you elisp gurus, should I use a regexp or a macro-like function (go-here, do-this)? I think I should define some rules like: - which operators want spaces (and if before or after) - what is the arity of them One problem for example could arise from things like (-2)^10 but we could have some operators that could be binary or unary and check that somehow. Someone has done it already maybe?