From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: Show presence of zero width spaces using overlay Date: Sat, 19 Sep 2015 09:46:20 -0400 Message-ID: References: <87twqrtou5.fsf@nicolasgoaziou.fr> <87io772n8w.fsf@ericabrahamsen.net> <87wpvmzxea.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b3a95e890c6dd052019df73 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36399) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZdIT8-0005r2-E2 for emacs-orgmode@gnu.org; Sat, 19 Sep 2015 09:46:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZdIT7-0007pb-8T for emacs-orgmode@gnu.org; Sat, 19 Sep 2015 09:46:22 -0400 Received: from mail-ob0-x22a.google.com ([2607:f8b0:4003:c01::22a]:36690) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZdIT7-0007pS-2P for emacs-orgmode@gnu.org; Sat, 19 Sep 2015 09:46:21 -0400 Received: by obbmp4 with SMTP id mp4so21428923obb.3 for ; Sat, 19 Sep 2015 06:46:20 -0700 (PDT) In-Reply-To: <87wpvmzxea.fsf@ericabrahamsen.net> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Abrahamsen Cc: emacs-org list --047d7b3a95e890c6dd052019df73 Content-Type: text/plain; charset=UTF-8 That's correct. That code might be an overkill for people who never needed org entities. I thought that I have never used `C-u` before plain single characters, so why not make use of that in org mode. With that code in place, inserting an org entity is now C-u away :) If I happen to need org entities for nonascii chars, I can associate them to plain letters like `a`, `b`, `c`... in org-entities-user. For example, `C-u c` can be used to enter copyright symbol org entity. I haven't yet used `sgml-name-char`, thanks for the tip. -- Kaushal Modi On Sep 19, 2015 3:26 AM, "Eric Abrahamsen" wrote: > Kaushal Modi writes: > > > I got really interested in org-entities (to deal with the case I > > mentioned in the first email in this thread like \ast{}shrug\ast{}) > > and came up with this: > > [...] > > > Question to the list is: Does this advise mask any useful > > functionality of org-self-insert-command? > > This is very cool, in principle! My first reaction would be: people will > probably just want a single command that inserts an entity, either by > name or by the character itself. Tapping into basic keystrokes like this > is very clever, but people only like clever when it's clever exactly the > way they want it, and the more clever a thing is the more opinions > diverge, if that makes sense. Why not just do something like, for > example, `sgml-name-char'? > > > --047d7b3a95e890c6dd052019df73 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

That's correct. That code might be an overkill for peopl= e who never needed org entities.

I thought that I have never used `C-u` before plain single c= haracters, so why not make use of that in org mode. With that code in place= , inserting an org entity is now C-u away :)

If I happen to need org entities for nonascii chars, I can a= ssociate them to plain letters like `a`, `b`, `c`... in org-entities-user. = For example, `C-u c` can be used to enter copyright symbol org entity.

I haven't yet used `sgml-name-char`, thanks for the tip.=

--
Kaushal Modi

On Sep 19, 2015 3:26 AM, "Eric Abrahamsen&q= uot; <eric@ericabrahamsen.net= > wrote:
Kaus= hal Modi <kaushal.modi@gmail.c= om> writes:

> I got really interested in org-entities (to deal with the case I
> mentioned in the first email in this thread like \ast{}shrug\ast{}) > and came up with this:

[...]

> Question to the list is: Does this advise mask any useful
> functionality of org-self-insert-command?

This is very cool, in principle! My first reaction would be: people will probably just want a single command that inserts an entity, either by
name or by the character itself. Tapping into basic keystrokes like this is very clever, but people only like clever when it's clever exactly th= e
way they want it, and the more clever a thing is the more opinions
diverge, if that makes sense. Why not just do something like, for
example, `sgml-name-char'?


--047d7b3a95e890c6dd052019df73--