emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* BUG: org-emphasize (C-c C-x C-f) returns with error
@ 2008-10-28 16:21 Vladi Solutka
  2008-10-28 19:30 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Vladi Solutka @ 2008-10-28 16:21 UTC (permalink / raw)
  To: emacs-orgmode

Hi!

I just noticed that org-emphasize (when called via C-c C-x C-f)
returns an error. In org.el:3501 there seems to be a problem when
'org-emphasis-alist' contains empty strings for html tags; I in fact
made the error go away by adding html tags for the org-verbatim entry
of this list (org.el:2255):

(defcustom org-emphasis-alist
  `(("*" bold "<b>" "</b>")
    ("/" italic "<i>" "</i>")
    ("_" underline "<u>" "</u>")
    ("=" org-code "<code>" "</code>" verbatim)
-    ("~" org-verbatim "" "" verbatim)
+    ("~" org-verbatim "<pre>" "</pre>" verbatim)
    ("+" ,(if (featurep 'xemacs) 'org-table '(:strike-through t))
     "<del>" "</del>")
    )


But I guess this is the wrong place to fix it ... :-|

--- \\/ladi

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

* Re: BUG: org-emphasize (C-c C-x C-f) returns with error
  2008-10-28 16:21 BUG: org-emphasize (C-c C-x C-f) returns with error Vladi Solutka
@ 2008-10-28 19:30 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2008-10-28 19:30 UTC (permalink / raw)
  To: Vladi Solutka; +Cc: emacs-orgmode

Hi Vladi,

this is a good fix, but I am turning on <code> tags for this one as  
well, because the <pre> tag in Org does produce a new paragraph-like  
box.

- Carsten

On Oct 28, 2008, at 5:21 PM, Vladi Solutka wrote:

> Hi!
>
> I just noticed that org-emphasize (when called via C-c C-x C-f)
> returns an error. In org.el:3501 there seems to be a problem when
> 'org-emphasis-alist' contains empty strings for html tags; I in fact
> made the error go away by adding html tags for the org-verbatim entry
> of this list (org.el:2255):
>
> (defcustom org-emphasis-alist
>  `(("*" bold "<b>" "</b>")
>    ("/" italic "<i>" "</i>")
>    ("_" underline "<u>" "</u>")
>    ("=" org-code "<code>" "</code>" verbatim)
> -    ("~" org-verbatim "" "" verbatim)
> +    ("~" org-verbatim "<pre>" "</pre>" verbatim)
>    ("+" ,(if (featurep 'xemacs) 'org-table '(:strike-through t))
>     "<del>" "</del>")
>    )
>
>
> But I guess this is the wrong place to fix it ... :-|
>
> --- \\/ladi
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

end of thread, other threads:[~2008-10-28 19:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-28 16:21 BUG: org-emphasize (C-c C-x C-f) returns with error Vladi Solutka
2008-10-28 19:30 ` Carsten Dominik

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