From mboxrd@z Thu Jan 1 00:00:00 1970 From: omar.antolin@gmail.com (Omar =?utf-8?Q?Antol=C3=ADn?=) Subject: The syntax class of ", /, =, ~ Date: Thu, 26 Jul 2018 15:28:35 -0500 Message-ID: <86wothpwr0.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fimsM-0006kO-3J for emacs-orgmode@gnu.org; Thu, 26 Jul 2018 16:28:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fimsI-0003XD-US for emacs-orgmode@gnu.org; Thu, 26 Jul 2018 16:28:42 -0400 Received: from mail-qk0-x22e.google.com ([2607:f8b0:400d:c09::22e]:37228) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fimsI-0003Wk-PP for emacs-orgmode@gnu.org; Thu, 26 Jul 2018 16:28:38 -0400 Received: by mail-qk0-x22e.google.com with SMTP id t79-v6so1899440qke.4 for ; Thu, 26 Jul 2018 13:28:38 -0700 (PDT) Received: from im-112-01 ([132.248.64.81]) by smtp.gmail.com with ESMTPSA id o68-v6sm1107888qkf.9.2018.07.26.13.28.36 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Jul 2018 13:28:36 -0700 (PDT) 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: emacs-orgmode@gnu.org In a nutshell, I propose that ", /, = and ~ be assigned to the syntax class "paired delimiter", which is $. (This would allow electric-pair-mode to 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 = to be paired delimiters, but maybe I'm missing some subtlety. (I guess * is a paired delimter in a sense, too (because it is used for bold), but since it is used for headings it would probably be too confusing to modify its syntax class.) -- Omar