emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: drymer <drymer@autistici.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Using org-entities to escape symbols
Date: Tue, 10 May 2016 20:33:36 +0000	[thread overview]
Message-ID: <CAFyQvY3OAr92ZG6=AQshBMr4QssCoyyEnLHsf5WWspAvYiKADA@mail.gmail.com> (raw)
In-Reply-To: <3f18c497-dae3-1cf4-8c48-d7efab07a766@autistici.org>

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

On Tue, May 10, 2016 at 4:25 PM drymer <drymer@autistici.org> wrote:

> Hi
> I didn't explain myself. It inserts four *, as it didn't find the
> entity. I'm using emacs 24.5.3 and org-mode 8.34, which is the maint
> branch. I've also tried with plain emacs without configuration.
>

Those emacs and org versions are fine.

It could be one of two things:
1. You forgot to evaluate

    (advice-add 'org-self-insert-command :around
#'modi/org-insert-org-entity-maybe)

    What do you see when you do C-h f org-self-insert-command after
evaluating that whole code block?

I see

org-self-insert-command is an interactive compiled Lisp function in
`org.el'.

(org-self-insert-command N)

For more information check the manuals.

:before-until advice: ‘modi/org-insert-org-entity-maybe’

Like ‘self-insert-command’, use overwrite-mode for whitespace in tables.
If the cursor is in a table looking at whitespace, the whitespace is
overwritten, and the table is not marked as requiring realignment.

The ":before-until advice: ‘modi/org-insert-org-entity-maybe’" part in
there is important. Do you see the same?

2. If from above you see org-self-insert-command being advised correctly,
then can you let me know what you get when you do

M-: (modi/org-entity-get-name "*")

You should get "ast" in return when you evaluate that.

Also I am confused why you cannot recreate what I see in emacs -Q. Are you
explicitly using "emacs -Q"? Note that that Q is capital (not emacs -q).
-- 

-- 
Kaushal Modi

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

  parent reply	other threads:[~2016-05-10 20:33 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-10 19:26 Using org-entities to escape symbols drymer
2016-05-10 19:38 ` Kaushal Modi
2016-05-10 19:53   ` Kaushal Modi
2016-05-10 20:25     ` drymer
2016-05-10 20:31       ` John Kitchin
2016-05-10 21:02         ` Thomas S. Dye
2016-05-10 20:33       ` Kaushal Modi [this message]
2016-05-10 21:24         ` drymer
2016-05-10 21:46           ` Kaushal Modi
2016-05-10 22:16             ` drymer
2016-05-10 22:51               ` Kaushal Modi
2016-05-10 23:00                 ` Kaushal Modi
2016-05-10 23:22                   ` Kaushal Modi
2016-05-11  5:14                   ` drymer

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='CAFyQvY3OAr92ZG6=AQshBMr4QssCoyyEnLHsf5WWspAvYiKADA@mail.gmail.com' \
    --to=kaushal.modi@gmail.com \
    --cc=drymer@autistici.org \
    --cc=emacs-orgmode@gnu.org \
    /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).