emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: drymer <drymer@autistici.org>
To: emacs-orgmode@gnu.org
Subject: Re: Using org-entities to escape symbols
Date: Tue, 10 May 2016 21:24:21 +0000	[thread overview]
Message-ID: <449ae934-b1a1-4fc3-278e-e3ed4e2ad34c@autistici.org> (raw)
In-Reply-To: <CAFyQvY3OAr92ZG6=AQshBMr4QssCoyyEnLHsf5WWspAvYiKADA@mail.gmail.com>


[-- Attachment #1.1.1: Type: text/plain, Size: 1966 bytes --]

I'll try the other approach if we can't make this work, because I like
it more x)
I've evaluated all of it, even re-opened emacs.

Uh, in my description of that function it doesn't say the same, it's the
regular one. I've executed toggle-debug-on-error and re-evaluated and
nothing. It seems that is not being evaluated.

Kaushal Modi:
> 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).
> 

[-- Attachment #1.1.2: 0x5DDFDAAD.asc --]
[-- Type: application/pgp-keys, Size: 6235 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

  reply	other threads:[~2016-05-10 21:24 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
2016-05-10 21:24         ` drymer [this message]
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=449ae934-b1a1-4fc3-278e-e3ed4e2ad34c@autistici.org \
    --to=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).