From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: Using org-entities to escape symbols Date: Tue, 10 May 2016 21:46:47 +0000 Message-ID: References: <3f18c497-dae3-1cf4-8c48-d7efab07a766@autistici.org> <449ae934-b1a1-4fc3-278e-e3ed4e2ad34c@autistici.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=001a113d35b031c5ff053283dd34 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0FUa-000583-Al for emacs-orgmode@gnu.org; Tue, 10 May 2016 17:47:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b0FUX-0008AF-Ja for emacs-orgmode@gnu.org; Tue, 10 May 2016 17:46:59 -0400 Received: from mail-oi0-x229.google.com ([2607:f8b0:4003:c06::229]:34067) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0FUX-0008A7-Ah for emacs-orgmode@gnu.org; Tue, 10 May 2016 17:46:57 -0400 Received: by mail-oi0-x229.google.com with SMTP id k142so38491874oib.1 for ; Tue, 10 May 2016 14:46:57 -0700 (PDT) In-Reply-To: <449ae934-b1a1-4fc3-278e-e3ed4e2ad34c@autistici.org> 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: drymer , emacs-orgmode@gnu.org --001a113d35b031c5ff053283dd34 Content-Type: multipart/alternative; boundary=001a113d35b031c5f8053283dd32 --001a113d35b031c5f8053283dd32 Content-Type: text/plain; charset=UTF-8 On Tue, May 10, 2016 at 5:25 PM drymer wrote: > 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. > That's very strange. One thing is good that now it makes sense why "C-u *" is inserting "****" in your emacs -Q session.. the advice isn't getting applied in the first place! Now it is difficult to tell why that advice isn't getting applied in the first place. I wonder if the code is actually getting evaluated when you think that it is getting evaluated. Can you describe the steps you take to evaluate that code? Here's one more try: 1. Download the attached modi-org-entity.el file 2. Run emacs -Q -l /PATH/TO/modi-org-entity.el --eval "(org-mode)" & 3. C-u * should then work as expected. Make sure to replace "/PATH/TO/" above with the actual path where you downloaded modi-org-entity.el. -- -- Kaushal Modi --001a113d35b031c5f8053283dd32 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Tue, May 10= , 2016 at 5:25 PM drymer <drymer= @autistici.org> wrote:
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.

That's very strange. One thing is good that now it makes sense = why "C-u *" is inserting "****" in your emacs -Q sessio= n.. the advice isn't getting applied in the first place!

=
Now it is difficult to tell why that advice isn't getting ap= plied in the first place. I wonder if the code is actually getting evaluate= d when you think that it is getting evaluated. Can you describe the steps y= ou take to evaluate that code?

Here's one more= try:

1. Download the attached modi-org-entity.el = file=C2=A0
2. Run emacs -Q -l /PATH/TO/modi-org-entity.el --eval = "(org-mode)" &=C2=A0
3. C-u * should then work as e= xpected.

Make sure to replace "/PATH/TO/"= ; above with the actual path where you downloaded modi-org-entity.el.
=
--

--
Kaushal Modi

--001a113d35b031c5f8053283dd32-- --001a113d35b031c5ff053283dd34 Content-Type: application/octet-stream; name="modi-org-entity.el" Content-Disposition: attachment; filename="modi-org-entity.el" Content-Transfer-Encoding: base64 Content-ID: <1549ca0b286dc6da5431> X-Attachment-Id: 1549ca0b286dc6da5431 OzsgRGlzcGxheSAiXGFzdHt9IiBhcyAiKiIsIGFuZCBzbyBvbiAuLgooc2V0cSBvcmctcHJldHR5 LWVudGl0aWVzIHQpCgooZGVmdW4gbW9kaS9vcmctZW50aXR5LWdldC1uYW1lIChjaGFyKQogICJS ZXR1cm4gdGhlIGVudGl0eSBuYW1lIGZvciBDSEFSLiBGb3IgZXhhbXBsZSwgcmV0dXJuIFwiYXN0 XCIgZm9yICouIgogIChsZXQgKChsbCAoYXBwZW5kIG9yZy1lbnRpdGllcy11c2VyCiAgICAgICAg ICAgICAgICAgICAgb3JnLWVudGl0aWVzKSkKICAgICAgICBlIG5hbWUgdXRmOCkKICAgIChjYXRj aCAnYnJlYWsKICAgICAgKHdoaWxlIGxsCiAgICAgICAgKHNldHEgZSAocG9wIGxsKSkKICAgICAg ICAod2hlbiAobm90IChzdHJpbmdwIGUpKQogICAgICAgICAgKHNldHEgdXRmOCAobnRoIDYgZSkp CiAgICAgICAgICAod2hlbiAoc3RyaW5nPSBjaGFyIHV0ZjgpCiAgICAgICAgICAgIChzZXRxIG5h bWUgKGNhciBlKSkKICAgICAgICAgICAgKHRocm93ICdicmVhayBuYW1lKSkpKSkpKQoKKGRlZnVu IG1vZGkvb3JnLWluc2VydC1vcmctZW50aXR5LW1heWJlIChvcmlnLWZ1biAmcmVzdCBhcmdzKQog ICJXaGVuIHRoZSB1bml2ZXJzYWwgcHJlZml4IEMtdSBpcyB1c2VkIGJlZm9yZSBlbnRlcmluZyBh bnkgY2hhcmFjdGVyLAppbnNlcnQgdGhlIGNoYXJhY3RlcidzIGBvcmctZW50aXR5JyBuYW1lIGlm IGF2YWlsYWJsZS4iCiAgKGxldCAoKHByZXNzZWQta2V5ICh0aGlzLWNvbW1hbmQta2V5cykpCiAg ICAgICAgZW50aXR5LW5hbWUpCiAgICAod2hlbiAoYW5kIChsaXN0cCBhcmdzKSAoZXEgNCAoY2Fy IGFyZ3MpKSkKICAgICAgKHNldHEgZW50aXR5LW5hbWUgKG1vZGkvb3JnLWVudGl0eS1nZXQtbmFt ZSBwcmVzc2VkLWtleSkpCiAgICAgICh3aGVuIGVudGl0eS1uYW1lCiAgICAgICAgKHNldHEgZW50 aXR5LW5hbWUgKGNvbmNhdCAiXFwiIGVudGl0eS1uYW1lICJ7fSIpKQogICAgICAgIChpbnNlcnQg ZW50aXR5LW5hbWUpCiAgICAgICAgKG1lc3NhZ2UgKGNvbmNhdCAiSW5zZXJ0ZWQgYG9yZy1lbnRp dHknICIKICAgICAgICAgICAgICAgICAgICAgICAgIChwcm9wZXJ0aXplIGVudGl0eS1uYW1lCiAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAnZmFjZSAnZm9udC1sb2NrLWZ1bmN0 aW9uLW5hbWUtZmFjZSkKICAgICAgICAgICAgICAgICAgICAgICAgICIgZm9yIHRoZSBzeW1ib2wg IgogICAgICAgICAgICAgICAgICAgICAgICAgKHByb3BlcnRpemUgcHJlc3NlZC1rZXkKICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICdmYWNlICdmb250LWxvY2stZnVuY3Rpb24t bmFtZS1mYWNlKQogICAgICAgICAgICAgICAgICAgICAgICAgIi4iKSkpKQogICAgKHdoZW4gKG51 bGwgZW50aXR5LW5hbWUpCiAgICAgIChhcHBseSBvcmlnLWZ1biBhcmdzKSkpKQoKKGFkdmljZS1h ZGQgJ29yZy1zZWxmLWluc2VydC1jb21tYW5kIDphcm91bmQgIydtb2RpL29yZy1pbnNlcnQtb3Jn LWVudGl0eS1tYXliZSkK --001a113d35b031c5ff053283dd34--