emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* make fails on current version
@ 2012-04-23 16:57 Richard Stanton
  2012-04-23 17:24 ` Bastien
  2012-04-23 17:28 ` make fails on current version Toby Cubitt
  0 siblings, 2 replies; 11+ messages in thread
From: Richard Stanton @ 2012-04-23 16:57 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

I just updated org-mode and typed "make". Two problems:

1) The doc file seems to have trouble:

org.texi:6703: Misplaced {.
org.texi:6703: Misplaced }.
makeinfo: Removing output file `org' due to errors; use --force to
preserve.


2) org-install.el doesn't get created.

From org-version.el, this is git version "release_7.8.09-375-gb7982a"
(org-version just returns N/A).

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

* Re: make fails on current version
  2012-04-23 16:57 make fails on current version Richard Stanton
@ 2012-04-23 17:24 ` Bastien
  2012-05-01 23:24   ` org + beamer: How to get @Š@ to create \alert? Richard Stanton
  2012-04-23 17:28 ` make fails on current version Toby Cubitt
  1 sibling, 1 reply; 11+ messages in thread
From: Bastien @ 2012-04-23 17:24 UTC (permalink / raw)
  To: Richard Stanton; +Cc: emacs-orgmode@gnu.org

Hi Richard,

Richard Stanton <stanton@haas.berkeley.edu> writes:

> I just updated org-mode and typed "make". Two problems:
>
> 1) The doc file seems to have trouble:
>
> org.texi:6703: Misplaced {.
> org.texi:6703: Misplaced }.
> makeinfo: Removing output file `org' due to errors; use --force to
> preserve.

Fixed, thanks.

> 2) org-install.el doesn't get created.

make autoloads

will create it.  

HTH,

-- 
 Bastien

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

* Re: make fails on current version
  2012-04-23 16:57 make fails on current version Richard Stanton
  2012-04-23 17:24 ` Bastien
@ 2012-04-23 17:28 ` Toby Cubitt
  1 sibling, 0 replies; 11+ messages in thread
From: Toby Cubitt @ 2012-04-23 17:28 UTC (permalink / raw)
  To: emacs-orgmode

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

On Mon, Apr 23, 2012 at 09:57:25AM -0700, Richard Stanton wrote:
> I just updated org-mode and typed "make". Two problems:
> 
> 1) The doc file seems to have trouble:
> 
> org.texi:6703: Misplaced {.
> org.texi:6703: Misplaced }.
> makeinfo: Removing output file `org' due to errors; use --force to
> preserve.

The problem's in the texinfo documentation for the new %<n> capture
template expandos...but please don't shoot me, it's not my fault! (I just
modified the change that Bastien had already committed to org.texi.)

From the texinfo documentation, it looks like literal "{" and "}" have to
be escaped with "@". Patch attached.


> 2) org-install.el doesn't get created.
> 
> From org-version.el, this is git version "release_7.8.09-375-gb7982a"
> (org-version just returns N/A).

No idea about this one.

Toby
-- 
Dr T. S. Cubitt
Mathematics and Quantum Information group
Department of Mathematics
Complutense University
Madrid, Spain

email: tsc25@cantab.net
web:   www.dr-qubit.org

[-- Attachment #2: 0001-Fixed-bug-in-texinfo-documentation.patch --]
[-- Type: text/x-patch, Size: 1044 bytes --]

From 9fd3ba1bdfbb3b608fcd86ded73f02c53d50e05d Mon Sep 17 00:00:00 2001
From: "Toby S. Cubitt" <tsc25@cantab.net>
Date: Mon, 23 Apr 2012 19:25:57 +0200
Subject: [PATCH] Fixed bug in texinfo documentation.

* doc/org.texi: Escape literal {}'s.
---
 doc/org.texi |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/doc/org.texi b/doc/org.texi
index bb98713..18dba90 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -6700,7 +6700,7 @@ dynamic insertion of content.  The templates are expanded in the order given her
             @r{You may specify a default value and a completion table with}
             @r{%^@{prompt|default|completion2|completion3...@}.}
             @r{The arrow keys access a prompt-specific history.}
-%<n>        @r{Insert the text entered at the nth %^{prompt}, where <n> is}
+%<n>        @r{Insert the text entered at the nth %^@{prompt@}, where <n> is}
             @r{a number, starting from 1.}
 %?          @r{After completing the template, position cursor here.}
 @end smallexample
-- 
1.7.8.5


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

* org + beamer: How to get @Š@ to create \alert?
  2012-04-23 17:24 ` Bastien
@ 2012-05-01 23:24   ` Richard Stanton
  2012-05-02  1:37     ` Nick Dokos
  0 siblings, 1 reply; 11+ messages in thread
From: Richard Stanton @ 2012-05-01 23:24 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

I've just started using orgmode to create Beamer presentations, and have a
question.

In the worg documentation
(http://orgmode.org/worg/org-tutorials/org-beamer/tutorial.html), it gives
an example of how enclosing text in "@" signs is supposed to result in
highlighted red text. When I try it, I get text surrounded by two "@"
signs...

Following suggestions from this list back in 2010, I tried customizing
org-export-latex-emphasis-alist to

Value: (("*" "\\textbf{%s}" nil)
 ("/" "\\emph{%s}" nil)
 ("_" "\\underline{%s}" nil)
 ("+" "\\st{%s}" nil)
 ("=" "\\protectedtexttt" t)
 ("~" "\\verb" t)
 ("@" "\\alert{%s}" nil))


but this doesn't seem to help either.

Can anyone tell me how to get this working?

Thanks.

By the way, org-version reports: Org-mode version 7.8.09
(release_7.8.09-481-g3c3402 @
/Applications/Emacs.app/Contents/Resources/site-lisp/org-mode/lisp/org-inst
all.el)

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

* Re: org + beamer: How to get @Š@ to create \alert?
  2012-05-01 23:24   ` org + beamer: How to get @Š@ to create \alert? Richard Stanton
@ 2012-05-02  1:37     ` Nick Dokos
  2012-05-02  9:39       ` Sebastien Vauban
  2012-05-02 11:39       ` Nicolas Goaziou
  0 siblings, 2 replies; 11+ messages in thread
From: Nick Dokos @ 2012-05-02  1:37 UTC (permalink / raw)
  To: Richard Stanton; +Cc: emacs-orgmode@gnu.org

Richard Stanton <stanton@haas.berkeley.edu> wrote:

> I've just started using orgmode to create Beamer presentations, and have a
> question.
> 
> In the worg documentation
> (http://orgmode.org/worg/org-tutorials/org-beamer/tutorial.html), it gives
> an example of how enclosing text in "@" signs is supposed to result in
> highlighted red text. When I try it, I get text surrounded by two "@"
> signs...
> 
> Following suggestions from this list back in 2010, I tried customizing
> org-export-latex-emphasis-alist to
> 
> Value: (("*" "\\textbf{%s}" nil)
>  ("/" "\\emph{%s}" nil)
>  ("_" "\\underline{%s}" nil)
>  ("+" "\\st{%s}" nil)
>  ("=" "\\protectedtexttt" t)
>  ("~" "\\verb" t)
>  ("@" "\\alert{%s}" nil))
> 
> 
> but this doesn't seem to help either.
> 
> Can anyone tell me how to get this working?
> 

You also need to customize org-emphasis-alist.

<soapbox>

Not sure whether this qualifies as a bug or not. It probably does but
even so, it's unlikely to be fixed and that's probably a *good* thing:
IMNSHO, these interfaces are about the clunkiest to be found in org: they
are very "heavy" for the result they produce.

I hope the new exporter will clean up this area, even at the price of
backward incompatibility (says he, knowing that any such will not affect
him :-])

</soapbox>

Donning my asbestos suit,
Nick

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

* Re: org + beamer: How to get @Š@ to create \alert?
  2012-05-02  1:37     ` Nick Dokos
@ 2012-05-02  9:39       ` Sebastien Vauban
  2012-05-02 14:03         ` Nick Dokos
  2012-05-02 11:39       ` Nicolas Goaziou
  1 sibling, 1 reply; 11+ messages in thread
From: Sebastien Vauban @ 2012-05-02  9:39 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hi Richard and Nick,

Nick Dokos wrote:
> Richard Stanton <stanton-K2lR+8htZd0b0cFwG/AQJIdd74u8MsAO@public.gmane.org> wrote:
>
>> I've just started using orgmode to create Beamer presentations, and have a
>> question.
>> 
>> In the worg documentation
>> (http://orgmode.org/worg/org-tutorials/org-beamer/tutorial.html), it gives
>> an example of how enclosing text in "@" signs is supposed to result in
>> highlighted red text. When I try it, I get text surrounded by two "@"
>> signs...
>> 
>> Following suggestions from this list back in 2010, I tried customizing
>> org-export-latex-emphasis-alist but this doesn't seem to help either.
>> 
>> Can anyone tell me how to get this working?
>
> You also need to customize org-emphasis-alist.

and this must be set *before loading Org*...

Full example:

#+begin_src emacs-lisp
      ;; face to be used by `font-lock' for highlighting in Org-mode Emacs
      ;; buffers, and tags to be used to convert emphasis fontifiers for HTML
      ;; export
      (setq org-emphasis-alist ;; remove the strike-through emphasis
            '(("*" bold "<b>" "</b>")
              ("/" italic "<i>" "</i>")
              ("_" underline "<span style=\"text-decoration:underline;\">" "</span>")
              ("=" org-code "<code>" "</code>" verbatim)
              ("~" org-verbatim "<code>" "</code>" verbatim)))

      (defface my/org-alert-face
        '((t (:weight bold :foreground "black" :foreground "#FF0000")))
        "Face used to display alert'ed items.")

      (add-to-list 'org-emphasis-alist
                   '("@" my/org-alert-face "<span class=\"alert\">" "</span>"))
#+end_src

Best regards,
  Seb

-- 
Sebastien Vauban

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

* Re: org + beamer: How to get @Š@ to create \alert?
  2012-05-02  1:37     ` Nick Dokos
  2012-05-02  9:39       ` Sebastien Vauban
@ 2012-05-02 11:39       ` Nicolas Goaziou
  2012-05-02 19:06         ` Sporadic problems pasting Richard Stanton
  1 sibling, 1 reply; 11+ messages in thread
From: Nicolas Goaziou @ 2012-05-02 11:39 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: Richard Stanton, emacs-orgmode@gnu.org

Hello,

Nick Dokos <nicholas.dokos@hp.com> writes:

> Richard Stanton <stanton@haas.berkeley.edu> wrote:
>
>> I've just started using orgmode to create Beamer presentations, and have a
>> question.
>> 
>> In the worg documentation
>> (http://orgmode.org/worg/org-tutorials/org-beamer/tutorial.html), it gives
>> an example of how enclosing text in "@" signs is supposed to result in
>> highlighted red text. When I try it, I get text surrounded by two "@"
>> signs...
>> 
>> Following suggestions from this list back in 2010, I tried customizing
>> org-export-latex-emphasis-alist to
>> 
>> Value: (("*" "\\textbf{%s}" nil)
>>  ("/" "\\emph{%s}" nil)
>>  ("_" "\\underline{%s}" nil)
>>  ("+" "\\st{%s}" nil)
>>  ("=" "\\protectedtexttt" t)
>>  ("~" "\\verb" t)
>>  ("@" "\\alert{%s}" nil))
>> 
>> 
>> but this doesn't seem to help either.
>> 
>> Can anyone tell me how to get this working?
>> 
>
> You also need to customize org-emphasis-alist.
>
> <soapbox>
>
> Not sure whether this qualifies as a bug or not. It probably does but
> even so, it's unlikely to be fixed and that's probably a *good* thing:
> IMNSHO, these interfaces are about the clunkiest to be found in org: they
> are very "heavy" for the result they produce.
>
> I hope the new exporter will clean up this area, even at the price of
> backward incompatibility (says he, knowing that any such will not affect
> him :-])

More or less. Markers are hard coded in the parser. For example, *text*
is parsed as (bold (... some properties...) "text") without looking at
`org-emphasis-alist'.

Then, it's up to each exporter to produce something meaningful with
`bold', `italic' `underline', `strike-through', `code' and `verbatim'
markup. For a beamer back-end (which is not written yet), I'd suggest to
treat `bold' as "\\alert{%s}", for example.

Unfortunately, the parser assumes `org-emph-re' is a defconst. I'd like
to remove dependency on that variable anyway, but it's difficult to
create a perfect test. For example, the following one is a bit naive:

#+begin_src emacs-lisp
(and (save-excursion
       (if (bolp) (looking-at "\\*\\w")
         (backward-char)
         (looking-at "\\W\\*\\w")))
     (save-excursion
       (re-search-forward "\\w\\*\\(\\W\\|$\\)" paragraph-limit t)))
#+end_src


Regards,

-- 
Nicolas Goaziou

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

* Re: org + beamer: How to get @Š@ to create \alert?
  2012-05-02  9:39       ` Sebastien Vauban
@ 2012-05-02 14:03         ` Nick Dokos
  0 siblings, 0 replies; 11+ messages in thread
From: Nick Dokos @ 2012-05-02 14:03 UTC (permalink / raw)
  To: Sebastien Vauban; +Cc: emacs-orgmode

Sebastien Vauban <wxhgmqzgwmuf@spammotel.com> wrote:

> Hi Richard and Nick,
> 
> Nick Dokos wrote:
> > Richard Stanton <stanton@haas.berkeley.edu> wrote:
> >
> >> I've just started using orgmode to create Beamer presentations, and have a
> >> question.
> >> 
> >> In the worg documentation
> >> (http://orgmode.org/worg/org-tutorials/org-beamer/tutorial.html), it gives
> >> an example of how enclosing text in "@" signs is supposed to result in
> >> highlighted red text. When I try it, I get text surrounded by two "@"
> >> signs...
> >> 
> >> Following suggestions from this list back in 2010, I tried customizing
> >> org-export-latex-emphasis-alist but this doesn't seem to help either.
> >> 
> >> Can anyone tell me how to get this working?
> >
> > You also need to customize org-emphasis-alist.
> 
> and this must be set *before loading Org*...
> 

I believe that the customize interface will actually reinitialize things
properly so you don't have to restart (I haven't really checked the
code, but that's how I tested it and it worked) - but if you set it
manually, then yes, you have to make sure that it is set beforehand, so
that org initialization will take care of calculating all the
dependencies.

Nick

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

* Sporadic problems pasting
  2012-05-02 11:39       ` Nicolas Goaziou
@ 2012-05-02 19:06         ` Richard Stanton
  2012-05-02 19:28           ` Emacs occasionally hangs using org-mode Richard Stanton
  2012-05-02 20:11           ` Sporadic problems pasting Bastien
  0 siblings, 2 replies; 11+ messages in thread
From: Richard Stanton @ 2012-05-02 19:06 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

I've been using org-mode (version 7.8.09, release_7.8.09-482-gf47915)
quite a lot over the last 24 hours to edit a file that will turn into a
Beamer presentation. During the course of this editing, I've encountered a
few problems. I'm not sure if these are org-mode or Emacs problems (I've
just updated to Emacs 24.0.96 under OS X), but the first is that on
several occasions, when cutting and pasting text in my org-mode buffer,
when I press C-y to paste (or yank), instead of doing what I ask, I get a
message in the minibuffer telling me something like

Quit: pasteboard doesn't contain valid data

At this point, I seem to be completely unable to retrieve the text I had
previously cut, which is somewhat inconvenient. To try and find out more,
I have debug-on-error set to t, but Emacs doesn't enter the debugger when
I press C-y; it just gives me that not very useful error message.

This doesn't happen anywhere close to 100% of the time, and I have no way
to recreate the problem systematically, but it happened probably 4 or 5
times during the last 24 hours.

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

* Emacs occasionally hangs using org-mode
  2012-05-02 19:06         ` Sporadic problems pasting Richard Stanton
@ 2012-05-02 19:28           ` Richard Stanton
  2012-05-02 20:11           ` Sporadic problems pasting Bastien
  1 sibling, 0 replies; 11+ messages in thread
From: Richard Stanton @ 2012-05-02 19:28 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

I've been using org-mode (version 7.8.09, release_7.8.09-482-gf47915)
quite a lot over the last 24 hours to edit a file that will turn into a
Beamer presentation. One problem I've encountered during this period is
that Emacs (24.0.96 under OS X Lion) has randomly hung multiple times.
Sometimes this occurs when I have just asked Emacs to process the org file
to a PDF file, but sometimes it occurs when I'm just typing. Sometimes the
hang involves Emacs literally disappearing, and sometimes I just get an
infinite rotating ball. There's nothing obviously predictable about when
this occurs, and it's happened maybe 10 times in the last 24 hours. Not a
fatal problem, and Emacs fires up quite quickly on my Mac, but annoying
nevertheless.


I suspect this may well be an Emacs problem rather than an org-mode
problem, and that I'm only seeing it as org related because that's what
I've been using for the last 24 hours, but either way I'd appreciate any
suggestions for how to track down more information to help solve this
problem.

By the way, I just tried going back to 24.0.95 and it hung too, so it's
not just this version of Emacs.

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

* Re: Sporadic problems pasting
  2012-05-02 19:06         ` Sporadic problems pasting Richard Stanton
  2012-05-02 19:28           ` Emacs occasionally hangs using org-mode Richard Stanton
@ 2012-05-02 20:11           ` Bastien
  1 sibling, 0 replies; 11+ messages in thread
From: Bastien @ 2012-05-02 20:11 UTC (permalink / raw)
  To: Richard Stanton; +Cc: emacs-orgmode@gnu.org

Hi Richard,

Richard Stanton <stanton@haas.berkeley.edu> writes:

> Quit: pasteboard doesn't contain valid data

Sounds familiar:

http://lists.gnu.org/archive/html/bug-gnu-emacs/2010-07/msg00592.html
http://lists.gnu.org/archive/html/bug-gnu-emacs/2010-07/msg00892.html

Maybe these threads need further digging.

HTH,

-- 
 Bastien

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

end of thread, other threads:[~2012-05-02 20:11 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-23 16:57 make fails on current version Richard Stanton
2012-04-23 17:24 ` Bastien
2012-05-01 23:24   ` org + beamer: How to get @Š@ to create \alert? Richard Stanton
2012-05-02  1:37     ` Nick Dokos
2012-05-02  9:39       ` Sebastien Vauban
2012-05-02 14:03         ` Nick Dokos
2012-05-02 11:39       ` Nicolas Goaziou
2012-05-02 19:06         ` Sporadic problems pasting Richard Stanton
2012-05-02 19:28           ` Emacs occasionally hangs using org-mode Richard Stanton
2012-05-02 20:11           ` Sporadic problems pasting Bastien
2012-04-23 17:28 ` make fails on current version Toby Cubitt

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