From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: The syntax class of ", /, =, ~ Date: Sun, 19 Aug 2018 10:33:59 +0200 Message-ID: <87k1omwya0.fsf@nicolasgoaziou.fr> References: <86wothpwr0.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51599) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1frJ9w-0005bJ-Uc for emacs-orgmode@gnu.org; Sun, 19 Aug 2018 04:34:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1frJ9t-00028u-SQ for emacs-orgmode@gnu.org; Sun, 19 Aug 2018 04:34:04 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:47655) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1frJ9t-00028k-NH for emacs-orgmode@gnu.org; Sun, 19 Aug 2018 04:34:01 -0400 In-Reply-To: <86wothpwr0.fsf@gmail.com> ("Omar =?utf-8?Q?Antol=C3=ADn=22's?= message of "Thu, 26 Jul 2018 15:28:35 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Omar =?utf-8?Q?Antol=C3=ADn?= Cc: emacs-orgmode@gnu.org Hello, omar.antolin@gmail.com (Omar Antol=C3=ADn) writes: > In a nutshell, I propose that ", /, =3D and ~ be assigned to the syntax c= lass "paired delimiter", which is $. (This would allow electric-pair-mode t= o work with them.) > > The definition of org-mode as a derived mode contains the following lines: > > (modify-syntax-entry ?@ "w") > (modify-syntax-entry ?\" "\"") > (modify-syntax-entry ?\\ "_") > (modify-syntax-entry ?~ "_") > > What is the rationale behind the choices for ~ and "? It feels to me > like both should be assigned class "paired delimiters" (i.e., class > $). I would also expect / and =3D to be paired delimiters, but maybe I'm > missing some subtlety. What about file:~/todo.org and \(a=3Db\)? I don't think we can assure ~, /, and =3D are always paired. Also, what is wrong with " belonging to string quote class? Regards, --=20 Nicolas Goaziou