From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Fabrice Popineau Newsgroups: gmane.emacs.devel Subject: Re: Lisp mode syntax table Date: Mon, 17 Feb 2014 23:10:04 +0100 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1132f7f81bfc1404f2a16c59 X-Trace: ger.gmane.org 1392675031 7996 80.91.229.3 (17 Feb 2014 22:10:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Feb 2014 22:10:31 +0000 (UTC) Cc: Emacs developers To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 17 23:10:39 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WFWOX-0001X9-RA for ged-emacs-devel@m.gmane.org; Mon, 17 Feb 2014 23:10:34 +0100 Original-Received: from localhost ([::1]:44361 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFWOW-0006XU-Pt for ged-emacs-devel@m.gmane.org; Mon, 17 Feb 2014 17:10:32 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49473) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFWOR-0006Wd-9Y for emacs-devel@gnu.org; Mon, 17 Feb 2014 17:10:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WFWOP-0001RA-Vn for emacs-devel@gnu.org; Mon, 17 Feb 2014 17:10:27 -0500 Original-Received: from mail-ee0-x233.google.com ([2a00:1450:4013:c00::233]:38570) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFWOP-0001Qv-Hn for emacs-devel@gnu.org; Mon, 17 Feb 2014 17:10:25 -0500 Original-Received: by mail-ee0-f51.google.com with SMTP id b57so7344110eek.24 for ; Mon, 17 Feb 2014 14:10:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=KQ8y7tJJRFTiadC4eaPXIpdnq11LvZ5gGAXx5WTJ0TI=; b=OgjTOPjCGlT68gRuzDh74i7sw+MxWpgPPi6mMQnTuy+oZ9fJZ8G88OucFNeRQcNCYk APW/OYxjtW21uphwbfB5A90rKQnhCMCBDq/CXT23vzVaNpjUEQgB2gTxva0EMp+dCTeF SkrocZt1iXQWEwZnieRd1kfTapY+53h9LwOjzXq+0pILLwiPGE9SOCwRLeemH5Een+ow K2VTeet3eQwxIxxvnwYS7iTi8/M2QfAF8ZB2x2LF8+d5w5e1VdxIkKMQy2lk9/co11d8 9Gx9kowo884uAgrZPk+SrvskafS1XKgyQq/Dq2+qJYMa9VAac12J9+35/Gj10aFyq4r+ UDqA== X-Received: by 10.14.119.197 with SMTP id n45mr77943eeh.93.1392675024270; Mon, 17 Feb 2014 14:10:24 -0800 (PST) Original-Received: by 10.14.8.196 with HTTP; Mon, 17 Feb 2014 14:10:04 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c00::233 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:169719 Archived-At: --001a1132f7f81bfc1404f2a16c59 Content-Type: text/plain; charset=ISO-8859-1 2014-02-17 21:19 GMT+01:00 Stefan Monnier : > > Is there a good reason why: > > (with-syntax-table lisp-mode-syntax-table > > (string (char-syntax ?\|))) > > "\"" > > IIRC some Lisps use that for symbols. > > > |rdf|:|someClass| and smartparen can't behave well in this case, > > If it hurts don't do that. Really, it seems like a particularly bad idea. > > Usually, I try not to hurt myself too much but you know what it is... Care to explain why it is such a bad idea? Sometimes you need case-sensitive symbols in Lisp, and semantic web (RDF, OWL and so on) is one. > > Would that switch imply any drawbacks I can't think of? > > I'm not sure what lisp-mode-syntax-table should use, but so far > emacs-lisp-mode-syntax-table should use "_" for the syntax of ?| > > And this is what I advocated for. > OTOH, someone might want to make |...| into a new syntax for symbols, in > which case your |rdf|:|someClass| might break in the future. > > Sure but the same guy could also redefine ( and ) in the reader ... Fabrice --001a1132f7f81bfc1404f2a16c59 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable



2014-02-17 21:19 GMT+01:00 Stefan Monnier <monnier@iro.umon= treal.ca>:
> Is there a good reason why:
> (with-syntax-table lisp-mode-syntax-table
> =A0 (string (char-syntax ?\|)))
> "\""

IIRC some Lisps use that for symbols.

> |rdf|:|someClass| and smartparen can't behave well in this case,
If it hurts don't do that. =A0Really, it seems like a particularly bad = idea.


Usually, I try not to hurt myself too = much but you know what it is...
Care to explain =A0why it is such= a bad idea?=A0
Sometimes you need case-sensitive symbols
in Lisp, and semantic web (RDF, OWL and so on) is one.
=A0
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex"> > Would that switch imply any drawbacks I can't think of?

I'm not sure what lisp-mode-syntax-table should use, but so far
emacs-lisp-mode-syntax-table should use "_" for the syntax of ?|<= br>

And this is what I advocated for.
=A0
OTOH, someone might want to make |...| into a new syntax for symbols, in which case your |rdf|:|someClass| might break in the future.

Sure but the same guy could also redefine ( and ) in the reader ...=

Fabrice


--001a1132f7f81bfc1404f2a16c59--