From ... From: Erik Naggum Subject: Re: Dangling Closing Parentheses vs. Stacked Closing Parentheses Date: 2000/03/28 Message-ID: <3163273489398038@naggum.no>#1/1 X-Deja-AN: 603656580 Content-Transfer-Encoding: 8bit References: <38DBE821.F64C2B22@genworks.com> <38DE1648.A4AFA073@iname.com> <8bneid$6s8$2@ssauraaa-i-1.production.compuserve.com> <38DF41EB.86BA71D7@pindar.com> <8bngh2$7gd$1@ssauraaa-i-1.production.compuserve.com> <38DF97D9.C9626DAB@earthlink.net> <87u2hsxoyf.fsf@orion.dent.isdn.cs.tu-berlin.de> mail-copies-to: never Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: newsmaster@eunet.no X-Trace: oslo-nntp.eunet.no 954291638 16798 195.0.192.66 (29 Mar 2000 01:00:38 GMT) Organization: Naggum Software; vox: +47 8800 8879; fax: +47 8800 8601; http://www.naggum.no User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.5 Mime-Version: 1.0 NNTP-Posting-Date: 29 Mar 2000 01:00:38 GMT Newsgroups: comp.lang.lisp * Charles Hixson | Lots of Irritating Single Parenthesis. I believe that there used to be a | dialect of Lisp where one could signal "close all parenthesis back to the | root" by using a ] character, but that seems to have disappeared. I | guess that it may have been a bit error prone. * Pierre R. Mai | It turned out that this functionality belongs in the editor, and not the | language. That's why ] will close all outstanding parentheses in many | Lisp modes. This way you get the benefits, without the trouble. ... for what it's worth, I have found it significantly easier to write code in Emacs with M-( and M-) rather than ( and ). I guess I picked up that habit when I wrote an SGML-mode that automatized the matching between start- and end-tags and inserted every character of the element name in _both_ the start- and the end-tag. I generalized this to let, e.g., M-* produce ** with the cursor between them, and applied it to "", `', {}, [], <>, «», ¡!, ¿?, and for that old Common Lisp reader, ||, as well as comments with #||#. in my view, it's a serious mistake to use paired delimiters of any kind in a language without _actively_ supporting their paired entry when writing. #:Erik