emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: Eric Abrahamsen <eric@ericabrahamsen.net>
Cc: emacs-org list <emacs-orgmode@gnu.org>
Subject: Re: Show presence of zero width spaces using overlay
Date: Sat, 19 Sep 2015 09:46:20 -0400	[thread overview]
Message-ID: <CAFyQvY0X4=nvrZ5_q48=b_x1AS1e1frevhWp84eF-hD7dHzg5Q@mail.gmail.com> (raw)
In-Reply-To: <87wpvmzxea.fsf@ericabrahamsen.net>

[-- Attachment #1: Type: text/plain, Size: 1438 bytes --]

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" <eric@ericabrahamsen.net> wrote:

> Kaushal Modi <kaushal.modi@gmail.com> 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'?
>
>
>

[-- Attachment #2: Type: text/html, Size: 1907 bytes --]

  reply	other threads:[~2015-09-19 13:46 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-18 18:44 Show presence of zero width spaces using overlay Kaushal Modi
2015-09-18 21:11 ` Nicolas Goaziou
2015-09-18 22:39   ` Kaushal Modi
2015-09-19  1:47     ` Eric Abrahamsen
2015-09-19  4:07       ` Kaushal Modi
2015-09-19  4:11         ` Kaushal Modi
2015-09-19  6:15           ` Kaushal Modi
2015-09-19  7:22             ` Eric Abrahamsen
2015-09-19 13:46               ` Kaushal Modi [this message]
2015-09-19 11:37     ` Nicolas Goaziou
  -- strict thread matches above, loose matches on Subject: below --
2015-09-22 15:13 timor
2015-09-27  9:41 ` Nicolas Goaziou
2016-04-19  9:23   ` timor
2016-04-19 10:16     ` Nicolas Goaziou
2016-04-19 11:38 timor
2016-04-19 19:21 ` Nicolas Goaziou
2016-04-19 23:20   ` timor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFyQvY0X4=nvrZ5_q48=b_x1AS1e1frevhWp84eF-hD7dHzg5Q@mail.gmail.com' \
    --to=kaushal.modi@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=eric@ericabrahamsen.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).