emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] adjacent italic and underline don't render correctly [9.5.1 (9.5.1-g36086a @ /Users/rob/.emacs.d/elpa/org-9.5.1/)]
@ 2021-12-21 20:16 Robert Nikander
  2021-12-22 14:32 ` Ihor Radchenko
  0 siblings, 1 reply; 4+ messages in thread
From: Robert Nikander @ 2021-12-21 20:16 UTC (permalink / raw)
  To: emacs-orgmode

I have:

(setq org-hide-emphasis-markers t)

…and the following does not render right. In the first line I see the ‘_’ characters around “underline”, and it doesn’t underline the text.
In the second line, it works correctly. Apparently it needs some intervening text (“foo” in this case). 

The first line should work, no?

— begin example org file —
* Test
Mix /italic/ _underline_.
Mix /italic/ foo _underline_.
— end example org file ---

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [BUG] adjacent italic and underline don't render correctly [9.5.1 (9.5.1-g36086a @ /Users/rob/.emacs.d/elpa/org-9.5.1/)]
  2021-12-21 20:16 [BUG] adjacent italic and underline don't render correctly [9.5.1 (9.5.1-g36086a @ /Users/rob/.emacs.d/elpa/org-9.5.1/)] Robert Nikander
@ 2021-12-22 14:32 ` Ihor Radchenko
  2021-12-22 15:38   ` Robert Nikander
  0 siblings, 1 reply; 4+ messages in thread
From: Ihor Radchenko @ 2021-12-22 14:32 UTC (permalink / raw)
  To: Robert Nikander; +Cc: emacs-orgmode

Robert Nikander <robert.nikander@icloud.com> writes:

> (setq org-hide-emphasis-markers t)
>
> …and the following does not render right. In the first line I see the ‘_’ characters around “underline”, and it doesn’t underline the text.
> In the second line, it works correctly. Apparently it needs some intervening text (“foo” in this case). 
>
> The first line should work, no?
>
> — begin example org file —
> * Test
> Mix /italic/ _underline_.
> Mix /italic/ foo _underline_.
> — end example org file ---

I am unable to reproduce it on latest main.

Note that I remember this error and I believe that fixed it by reverting
the problematic commit. However, it was before 36086a. I suspect that
you have a mixed installation of Org. Try to remove and re-install Org.

Best,
Ihor


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [BUG] adjacent italic and underline don't render correctly [9.5.1 (9.5.1-g36086a @ /Users/rob/.emacs.d/elpa/org-9.5.1/)]
  2021-12-22 14:32 ` Ihor Radchenko
@ 2021-12-22 15:38   ` Robert Nikander
  2021-12-22 16:03     ` Ihor Radchenko
  0 siblings, 1 reply; 4+ messages in thread
From: Robert Nikander @ 2021-12-22 15:38 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: emacs-orgmode

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

Thank you for checking. I tried to reinstall the package, but it did not help, and it caused another problem where I could not quit emacs.

Details… I ran M-x list-packages, found and deleted my org package, quit emacs. Restarted emacs and I saw I had the builtin org (lower version: 9.4.4) and the bug I reported is gone. I tried reinstalling the 9.5.1 org package (after restarting emacs), and it installed, and then I couldn’t quit emacs without killing it. If I ran my usual quit command (save-buffers-kill-terminal) or tried to quit from the macOS menu, I got this message:

org-clock-kill-emacs-query: Symbol’s function definition is void: org-clocking-buffer

Also the bug I reported is back. 

Maybe I’ll just stick with the builtin org package 9.4.4.  

Am I supposed to somehow delete the builtin one when I install 9.5.1? Here is what the buffer looks like when I hit enter on the installed 9.5.1 package:

— begin paste —
Package org is installed.

     Status: Installed in ‘org-9.5.1/’,
             shadowing a built-in package (unsigned). Delete
    Version: 9.5.1
    Summary: Outline-based notes management and organizer
   Requires: emacs-25.1
   Homepage: https://orgmode.org
   Keywords: outlines hypermedia calendar wp 
 Maintainer: Bastien Guerry <bzg@gnu.org>
     Author: Carsten Dominik <carsten.dominik@gmail.com>
Other versions: 9.5.1 (gnu), 9.4.4 (builtin).
— end paste ---

Rob



> On Dec 22, 2021, at 9:32 AM, Ihor Radchenko <yantar92@gmail.com> wrote:
> 
> Robert Nikander <robert.nikander@icloud.com <mailto:robert.nikander@icloud.com>> writes:
> 
>> (setq org-hide-emphasis-markers t)
>> 
>> …and the following does not render right. In the first line I see the ‘_’ characters around “underline”, and it doesn’t underline the text.
>> In the second line, it works correctly. Apparently it needs some intervening text (“foo” in this case). 
>> 
>> The first line should work, no?
>> 
>> — begin example org file —
>> * Test
>> Mix /italic/ _underline_.
>> Mix /italic/ foo _underline_.
>> — end example org file ---
> 
> I am unable to reproduce it on latest main.
> 
> Note that I remember this error and I believe that fixed it by reverting
> the problematic commit. However, it was before 36086a. I suspect that
> you have a mixed installation of Org. Try to remove and re-install Org.
> 
> Best,
> Ihor


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [BUG] adjacent italic and underline don't render correctly [9.5.1 (9.5.1-g36086a @ /Users/rob/.emacs.d/elpa/org-9.5.1/)]
  2021-12-22 15:38   ` Robert Nikander
@ 2021-12-22 16:03     ` Ihor Radchenko
  0 siblings, 0 replies; 4+ messages in thread
From: Ihor Radchenko @ 2021-12-22 16:03 UTC (permalink / raw)
  To: Robert Nikander; +Cc: emacs-orgmode

Robert Nikander <robert.nikander@icloud.com> writes:

> Also the bug I reported is back. 
>
> Maybe I’ll just stick with the builtin org package 9.4.4.  

Actually, I missed that you are on ELPA version. Apparently I forgot to
fix the problem on stable Org version (which is what you get from ELPA).

I pushed the fix now. It should be uploaded to ELPA in a few hours.

> Thank you for checking. I tried to reinstall the package, but it did not help, and it caused another problem where I could not quit emacs.
>
> Details… I ran M-x list-packages, found and deleted my org package, quit emacs. Restarted emacs and I saw I had the builtin org (lower version: 9.4.4) and the bug I reported is gone. I tried reinstalling the 9.5.1 org package (after restarting emacs), and it installed, and then I couldn’t quit emacs without killing it. If I ran my usual quit command (save-buffers-kill-terminal) or tried to quit from the macOS menu, I got this message:
>
> org-clock-kill-emacs-query: Symbol’s function definition is void: org-clocking-buffer

This is annoying. We have seen this kind of issue for users using
non-standard package managers, but I do not recall such problems with
ELPA.

I afraid that the problem is partially on Emacs side. We may want to
discuss this with Emacs devs as well, not just within Org mailing list.

> Am I supposed to somehow delete the builtin one when I install 9.5.1? Here is what the buffer looks like when I hit enter on the installed 9.5.1 package:

AFAIU, things went wrong because you had built-in Org loaded while
installing newer Org. (note that there is nothing wrong on your side,
just some internal Emacs workings we need to resolve or work around)

Best,
Ihor



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-12-22 16:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-21 20:16 [BUG] adjacent italic and underline don't render correctly [9.5.1 (9.5.1-g36086a @ /Users/rob/.emacs.d/elpa/org-9.5.1/)] Robert Nikander
2021-12-22 14:32 ` Ihor Radchenko
2021-12-22 15:38   ` Robert Nikander
2021-12-22 16:03     ` Ihor Radchenko

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).