Alex Ott | 1 Aug 2008 09:47
Picon
Gravatar

some problem with publishing of source code in muse

Hello all

After some of updates from repository (i haven't tracked which one), I
start to have some problems with publishing emacs-lisp code in muse. 

The error is occur inside htmlize.el, and trace is looks like this one (but
i hadn't update htmlize.el for a long time).

  internal-get-lisp-face-attribute(nil :height nil)
  face-attribute(nil :height)
  htmlize-face-size(default)
  htmlize-face-to-fstruct(default)
  htmlize-make-face-map((default font-lock-constant-face font-lock-keyword-face font-lock-string-face))
  htmlize-buffer-1()
  htmlize-region(1 178)
  htmlize-region-for-paste(1 178)
  muse-html-src-tag(743 #<marker at 743 in  *muse-temp*<10>> (("lang" . "emacs-lisp")))
  apply(muse-html-src-tag (743 #<marker at 743 in  *muse-temp*<10>> (("lang" . "emacs-lisp"))))
  muse-publish-markup-tag()
  muse-publish-markup("EmacsErlang" ((1000 "\\(\\`\n+\\|\n+\\'\\)" 0 "") (1100 "[[:blank:]]+$" 0 "")
(1200 "\\`#\\([a-zA-Z-]+\\)\\s-+\\(.+\\)\n+" 0 directive) (1250
"^;\\(?:[[:blank:]]+\\(.+\\)\\|$\\|'\\)" 0 comment) (1300 muse-tag-regexp 0 tag) (1400
muse-explicit-link-regexp 0 muse-publish-mark-link) (1600
"\\(^\\|[-[[:blank:]<('`\"\n]\\)\\(=[^=[:blank:]\n]\\|_[^_[:blank:]\n]\\|\\*+[^*[:blank:]\n]\\)"
2 word) (1700 "^\\(\\*+\\)\\s-+" 0 heading) (1800 "\\.\\.\\.\\." 0 enddots) (1850 "\\.\\.\\." 0 dots)
(1900 "^----+" 0 rule) (1950 "~~" 0 no-break-space) (2000 "^Footnotes:?\\s-*" 0 fn-sep) (2100
"\\[\\([1-9][0-9]*\\)\\]" 0 footnote) (2200
"^[[:blank:]]*\\(\\([^\n[:blank:]].*?\\)?::\\(?:[[:blank:]]+\\|$\\)\\|[[:blank:]]-[[:blank:]]*\\|[[:blank:]][0-9]+\\.[[:blank:]]*\\)"
0 list) (2300 "^[[:

(Continue reading)

Brent Goodrick | 1 Aug 2008 17:02
Picon
Gravatar

Re: some problem with publishing of source code in muse

Hi Alex,

I publish to HTML all the time from Muse files (specifically from Planner pages), but I don't even have htmlize loaded.  I don't even think I have that Emacs package in my load-path either as apropos says nothing about 'htmlize'. 

muse-version returns 3.12 for me. What does it return for you?

Brent

On Fri, Aug 1, 2008 at 12:47 AM, Alex Ott <alexott <at> gmail.com> wrote:
Hello all

After some of updates from repository (i haven't tracked which one), I
start to have some problems with publishing emacs-lisp code in muse.

The error is occur inside htmlize.el, and trace is looks like this one (but
i hadn't update htmlize.el for a long time).

 internal-get-lisp-face-attribute(nil :height nil)
 face-attribute(nil :height)
 htmlize-face-size(default)
 htmlize-face-to-fstruct(default)
 htmlize-make-face-map((default font-lock-constant-face font-lock-keyword-face font-lock-string-face))
 htmlize-buffer-1()
 htmlize-region(1 178)
 htmlize-region-for-paste(1 178)
 muse-html-src-tag(743 #<marker at 743 in  *muse-temp*<10>> (("lang" . "emacs-lisp")))
 apply(muse-html-src-tag (743 #<marker at 743 in  *muse-temp*<10>> (("lang" . "emacs-lisp"))))
 muse-publish-markup-tag()
 muse-publish-markup("EmacsErlang" ((1000 "\\(\\`\n+\\|\n+\\'\\)" 0 "") (1100 "[[:blank:]]+$" 0 "") (1200 "\\`#\\([a-zA-Z-]+\\)\\s-+\\(.+\\)\n+" 0 directive) (1250 "^;\\(?:[[:blank:]]+\\(.+\\)\\|$\\|'\\)" 0 comment) (1300 muse-tag-regexp 0 tag) (1400 muse-explicit-link-regexp 0 muse-publish-mark-link) (1600 "\\(^\\|[-[[:blank:]<('`\"\n]\\)\\(=[^=[:blank:]\n]\\|_[^_[:blank:]\n]\\|\\*+[^*[:blank:]\n]\\)" 2 word) (1700 "^\\(\\*+\\)\\s-+" 0 heading) (1800 "\\.\\.\\.\\." 0 enddots) (1850 "\\.\\.\\." 0 dots) (1900 "^----+" 0 rule) (1950 "~~" 0 no-break-space) (2000 "^Footnotes:?\\s-*" 0 fn-sep) (2100 "\\[\\([1-9][0-9]*\\)\\]" 0 footnote) (2200 "^[[:blank:]]*\\(\\([^\n[:blank:]].*?\\)?::\\(?:[[:blank:]]+\\|$\\)\\|[[:blank:]]-[[:blank:]]*\\|[[:blank:]][0-9]+\\.[[:blank:]]*\\)" 0 list) (2300 "^[[:blank:]]*\\+\\(-*\\+\\)+[[:blank:]]*\n\\(\\(.*[[:blank:]]+\\(|+\\)\\(?:[[:blank:]]\\|$\\).*\n\\)+\\([[:blank:]]*\\+\\(-*\\+\\)+[[:blank:]]*\\)\\(\n\\|\\'\\)\\)+" 0 table-el) (2350 "\\(\\([[:blank:]]*\n\\)?\\(\\(?:.*[[:blank:]]+\\(|+\\)\\(?:[[:blank:]]\\|$\\).*\\|[[:blank:]]*|[-+]+|[[:blank:]]*\\)\\(?:\n\\|\\'\\)\\)\\)+" 0 table) (2400 "^\\([[:blank:]]+\\).+" 0 quote) (2500 "\\(^\\|[[:blank:]]*\\)---?\\($\\|[[:blank:]]*\\)" 0 emdash) (2600 "^[[:blank:]]*> " 0 verse) (2700 "^\\(\\W*\\)#\\(\\S-+\\)\\s-*" 0 anchor) (2900 muse-explicit-link-regexp 0 link) (3000 muse-url-regexp 0 url) (3100 muse-wiki-interwiki-regexp 0 link) (3200 muse-wiki-wikiword-regexp 0 link) (3250 muse-wiki-project-file-regexp 0 link) (3300 "''''" 0 "") (3500 "\\([^[]\\)[-a-zA-Z0-9._]+ <at> \\([-a-zA-z0-9_]+\\.\\)+[a-zA-Z0-9]+" 0 email) (10000 "\\(\\(\n\\(?:[[:blank:]]*\n\\)*\\([[:blank:]]*\n\\)\\)\\|\\`\\s-*\\|\\s-*\\'\\)" 3 muse-html-markup-paragraph)))
 muse-publish-markup-region(1 8053 "EmacsErlang" (:base "html" :path "/home/ott/public_html/muse/personal/emacs-devenv" :include "/emacs-devenv/[^/]+$"))
 muse-publish-markup-buffer("EmacsErlang" (:base "html" :path "/home/ott/public_html/muse/personal/emacs-devenv" :include "/emacs-devenv/[^/]+$"))
 muse-publish-file("/home/ott/projects/Muse/emacs-devenv/EmacsErlang.muse" (:base "html" :path "/home/ott/public_html/muse/personal/emacs-devenv" :include "/emacs-devenv/[^/]+$") "/home/ott/public_html/muse/personal/emacs-devenv" nil)

How can i keep *muse-temp*<N> buffers to look to them?

--
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/           http://xtalk.msk.su/~ott/
http://alexott-ru.blogspot.com/

_______________________________________________
Muse-el-discuss mailing list
Muse-el-discuss <at> gna.org
https://mail.gna.org/listinfo/muse-el-discuss

<div><div dir="ltr">Hi Alex,<br><br>I publish to HTML all the time from Muse files (specifically from Planner pages), but I don't even have htmlize loaded.&nbsp; I don't even think I have that Emacs package in my load-path either as apropos says nothing about 'htmlize'.&nbsp; <br><br>muse-version returns 3.12 for me. What does it return for you?<br><br>Brent<br><br><div class="gmail_quote">On Fri, Aug 1, 2008 at 12:47 AM, Alex Ott <span dir="ltr">&lt;<a href="mailto:alexott <at> gmail.com">alexott <at> gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">Hello all<br><br>
After some of updates from repository (i haven't tracked which one), I<br>
start to have some problems with publishing emacs-lisp code in muse.<br><br>
The error is occur inside htmlize.el, and trace is looks like this one (but<br>
i hadn't update htmlize.el for a long time).<br><br>
 &nbsp;internal-get-lisp-face-attribute(nil :height nil)<br>
 &nbsp;face-attribute(nil :height)<br>
 &nbsp;htmlize-face-size(default)<br>
 &nbsp;htmlize-face-to-fstruct(default)<br>
 &nbsp;htmlize-make-face-map((default font-lock-constant-face font-lock-keyword-face font-lock-string-face))<br>
 &nbsp;htmlize-buffer-1()<br>
 &nbsp;htmlize-region(1 178)<br>
 &nbsp;htmlize-region-for-paste(1 178)<br>
 &nbsp;muse-html-src-tag(743 #&lt;marker at 743 in &nbsp;*muse-temp*&lt;10&gt;&gt; (("lang" . "emacs-lisp")))<br>
 &nbsp;apply(muse-html-src-tag (743 #&lt;marker at 743 in &nbsp;*muse-temp*&lt;10&gt;&gt; (("lang" . "emacs-lisp"))))<br>
 &nbsp;muse-publish-markup-tag()<br>
 &nbsp;muse-publish-markup("EmacsErlang" ((1000 "\\(\\`\n+\\|\n+\\'\\)" 0 "") (1100 "[[:blank:]]+$" 0 "") (1200 "\\`#\\([a-zA-Z-]+\\)\\s-+\\(.+\\)\n+" 0 directive) (1250 "^;\\(?:[[:blank:]]+\\(.+\\)\\|$\\|'\\)" 0 comment) (1300 muse-tag-regexp 0 tag) (1400 muse-explicit-link-regexp 0 muse-publish-mark-link) (1600 "\\(^\\|[-[[:blank:]&lt;('`\"\n]\\)\\(=[^=[:blank:]\n]\\|_[^_[:blank:]\n]\\|\\*+[^*[:blank:]\n]\\)" 2 word) (1700 "^\\(\\*+\\)\\s-+" 0 heading) (1800 "\\.\\.\\.\\." 0 enddots) (1850 "\\.\\.\\." 0 dots) (1900 "^----+" 0 rule) (1950 "~~" 0 no-break-space) (2000 "^Footnotes:?\\s-*" 0 fn-sep) (2100 "\\[\\([1-9][0-9]*\\)\\]" 0 footnote) (2200 "^[[:blank:]]*\\(\\([^\n[:blank:]].*?\\)?::\\(?:[[:blank:]]+\\|$\\)\\|[[:blank:]]-[[:blank:]]*\\|[[:blank:]][0-9]+\\.[[:blank:]]*\\)" 0 list) (2300 "^[[:blank:]]*\\+\\(-*\\+\\)+[[:blank:]]*\n\\(\\(.*[[:blank:]]+\\(|+\\)\\(?:[[:blank:]]\\|$\\).*\n\\)+\\([[:blank:]]*\\+\\(-*\\+\\)+[[:blank:]]*\\)\\(\n\\|\\'\\)\\)+" 0 table-el) (2350 "\\(\\([[:blank:]]*\n\\)?\\(\\(?:.*[[:blank:]]+\\(|+\\)\\(?:[[:blank:]]\\|$\\).*\\|[[:blank:]]*|[-+]+|[[:blank:]]*\\)\\(?:\n\\|\\'\\)\\)\\)+" 0 table) (2400 "^\\([[:blank:]]+\\).+" 0 quote) (2500 "\\(^\\|[[:blank:]]*\\)---?\\($\\|[[:blank:]]*\\)" 0 emdash) (2600 "^[[:blank:]]*&gt; " 0 verse) (2700 "^\\(\\W*\\)#\\(\\S-+\\)\\s-*" 0 anchor) (2900 muse-explicit-link-regexp 0 link) (3000 muse-url-regexp 0 url) (3100 muse-wiki-interwiki-regexp 0 link) (3200 muse-wiki-wikiword-regexp 0 link) (3250 muse-wiki-project-file-regexp 0 link) (3300 "''''" 0 "") (3500 "\\([^[]\\)[-a-zA-Z0-9._]+ <at> \\([-a-zA-z0-9_]+\\.\\)+[a-zA-Z0-9]+" 0 email) (10000 "\\(\\(\n\\(?:[[:blank:]]*\n\\)*\\([[:blank:]]*\n\\)\\)\\|\\`\\s-*\\|\\s-*\\'\\)" 3 muse-html-markup-paragraph)))<br>

 &nbsp;muse-publish-markup-region(1 8053 "EmacsErlang" (:base "html" :path "/home/ott/public_html/muse/personal/emacs-devenv" :include "/emacs-devenv/[^/]+$"))<br>
 &nbsp;muse-publish-markup-buffer("EmacsErlang" (:base "html" :path "/home/ott/public_html/muse/personal/emacs-devenv" :include "/emacs-devenv/[^/]+$"))<br>
 &nbsp;muse-publish-file("/home/ott/projects/Muse/emacs-devenv/EmacsErlang.muse" (:base "html" :path "/home/ott/public_html/muse/personal/emacs-devenv" :include "/emacs-devenv/[^/]+$") "/home/ott/public_html/muse/personal/emacs-devenv" nil)<br><br>
How can i keep *muse-temp*&lt;N&gt; buffers to look to them?<br><br>
--<br>
With best wishes, Alex Ott, MBA<br><a href="http://alexott.blogspot.com/" target="_blank">http://alexott.blogspot.com/</a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://xtalk.msk.su/%7Eott/" target="_blank">http://xtalk.msk.su/~ott/</a><br><a href="http://alexott-ru.blogspot.com/" target="_blank">http://alexott-ru.blogspot.com/</a><br><br>
_______________________________________________<br>
Muse-el-discuss mailing list<br><a href="mailto:Muse-el-discuss <at> gna.org">Muse-el-discuss <at> gna.org</a><br><a href="https://mail.gna.org/listinfo/muse-el-discuss" target="_blank">https://mail.gna.org/listinfo/muse-el-discuss</a><br>
</blockquote>
</div>
<br>
</div></div>
Alex Ott | 1 Aug 2008 19:24
Picon
Gravatar

Re: some problem with publishing of source code in muse

Hello

>>>>> "BG" == Brent Goodrick writes:
 BG> Hi Alex, I publish to HTML all the time from Muse files (specifically
 BG> from Planner pages), but I don't even have htmlize loaded.  I don't
 BG> even think I have that Emacs package in my load-path either as apropos
 BG> says nothing about 'htmlize'.

 BG> muse-version returns 3.12 for me. What does it return for you?

Also 3.12 - but this is version from repository, not from stable archive.

for me it fail also on empty muse file with following content

<src lang="emacs-lisp">
(defun flymake-erlang-init ()
  (let* ((temp-file (flymake-init-create-temp-buffer-copy
										 'flymake-create-temp-inplace))
				 (local-file (file-relative-name
											temp-file
											(file-name-directory buffer-file-name))))
    (list "~/emacs/bin/eflymake" (list local-file))))
</src>

--

-- 
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/        http://xtalk.msk.su/~ott/
http://alexott-ru.blogspot.com/

Brent Goodrick | 1 Aug 2008 22:22
Picon
Gravatar

Re: some problem with publishing of source code in muse

I have never used the "src" tag before. I use the "example" tag all
the time for all quoting so as to format in some suitable fixed width
font.

On 8/1/08, Alex Ott <alexott <at> gmail.com> wrote:
> Hello
>
>>>>>> "BG" == Brent Goodrick writes:
>  BG> Hi Alex, I publish to HTML all the time from Muse files (specifically
>  BG> from Planner pages), but I don't even have htmlize loaded.  I don't
>  BG> even think I have that Emacs package in my load-path either as apropos
>  BG> says nothing about 'htmlize'.
>
>  BG> muse-version returns 3.12 for me. What does it return for you?
>
> Also 3.12 - but this is version from repository, not from stable archive.
>
> for me it fail also on empty muse file with following content
>
> <src lang="emacs-lisp">
> (defun flymake-erlang-init ()
>   (let* ((temp-file (flymake-init-create-temp-buffer-copy
> 										 'flymake-create-temp-inplace))
> 				 (local-file (file-relative-name
> 											temp-file
> 											(file-name-directory buffer-file-name))))
>     (list "~/emacs/bin/eflymake" (list local-file))))
> </src>
>
>
> --
> With best wishes, Alex Ott, MBA
> http://alexott.blogspot.com/        http://xtalk.msk.su/~ott/
> http://alexott-ru.blogspot.com/
>
> _______________________________________________
> Muse-el-discuss mailing list
> Muse-el-discuss <at> gna.org
> https://mail.gna.org/listinfo/muse-el-discuss
>

Francois Maltey | 4 Aug 2008 15:20
Picon
Favicon

How can I roll over *.muse files ?

Dear all muse users,

I use muse from about 6 months as a draft notebook for my todo lists.

When a file becomes too complex I divide it in several (sub-)files and
a main file with file-links.

firefox and web browser has the arrow icons for going back to the 
previous/next page. I'm looking for this emacs/muse-command.

Today I use (ctrl-X)(ctrl-K) to kill the most recent file and go to the 
previous one. It isn't so practice.

Do you have any idea ?

Many thanks.

François (in France)

Markus Hoenicka | 4 Aug 2008 15:58
Picon

Re: How can I roll over *.muse files ?

Quoting Francois Maltey <fmaltey <at> nerim.fr>:

> firefox and web browser has the arrow icons for going back to the
> previous/next page. I'm looking for this emacs/muse-command.
>
> Today I use (ctrl-X)(ctrl-K) to kill the most recent file and go to the
> previous one. It isn't so practice.
>

1) using C-x C-b switches back to your previous buffer without killing  
it. This is great to toggle between two buffers

2) use backlinks. To activate them, add

(require 'muse-backlink)
(muse-backlink-install)

to your .emacs. This is good to navigate the hierarchy of your files,  
but you have to activate backlinks when you start a project in order  
to get most out of it.

Hope this helps!

regards,
Markus

--

-- 
Markus Hoenicka
markus.hoenicka <at> cats.de
(Spam-protected email: replace the quadrupeds with "mhoenicka")
http://www.mhoenicka.de

Thierry Volpiatto | 4 Aug 2008 16:16
Picon
Gravatar

Re: How can I roll over *.muse files ?

Francois Maltey <fmaltey <at> nerim.fr> writes:

> Dear all muse users,
>
> I use muse from about 6 months as a draft notebook for my todo lists.
>
> When a file becomes too complex I divide it in several (sub-)files and
> a main file with file-links.
>
> firefox and web browser has the arrow icons for going back to the 
> previous/next page. I'm looking for this emacs/muse-command.
>
> Today I use (ctrl-X)(ctrl-K) to kill the most recent file and go to the 
> previous one. It isn't so practice.
>
> Do you have any idea ?
>
You can use M-x muse-index (C-c C-a) to browse your muse files.

--

-- 
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France

Markus Hoenicka | 4 Aug 2008 16:41
Picon

Re: How can I roll over *.muse files ?

Quoting Markus Hoenicka <markus.hoenicka <at> mhoenicka.de>:

> 1) using C-x C-b switches back to your previous buffer without killing
> it. This is great to toggle between two buffers
>

Silly me. This should read C-x b

Markus

--

-- 
Markus Hoenicka
markus.hoenicka <at> cats.de
(Spam-protected email: replace the quadrupeds with "mhoenicka")
http://www.mhoenicka.de

Francois Maltey | 4 Aug 2008 18:38
Picon
Favicon

Re: How can I roll over *.muse files ?

Many thanks Markus and Thierry for your tips.

I play with ^X B [return], discover muse-index, muse-backlink and grep 
again the *.pdf manual.

Then I add this little file in my .emacs : the ^C B key switchs to the 
next *.muse buffer.

Have a nice day !

Francois

;;
;; 08/2008
;;

;;
;; local-muse-buffer-name tests if a string is a name as *.muse
;;

(defun local-muse-buffer-name (str) 
  (and (>= (length str) 5) (string= (substring str -5) ".muse")))

;;
;; local-muse-next-buffer finds the name of first next buffer under muse.
;;   the result is nil if the search fails.
;;

(defun local-muse-next-buffer (lbuffers)
  (cond 
    ((not lbuffers) nil)
    ((and (local-muse-buffer-name (buffer-name (car lbuffers))))
      (buffer-name (car lbuffers)))
    (t (local-muse-next-buffer (cdr lbuffers)))))

;;
;; The main function local-muse-roll-buffers switchs to the next muse buffer
;;   and sends the actual buffer under muse at the end of the buffer list.
;;

(defun local-muse-roll-buffers nil
  (interactive)
  (if (local-muse-buffer-name (buffer-name)) (bury-buffer))
  (let ((str (local-muse-next-buffer (buffer-list))))
     (if str (switch-to-buffer str))))

;;
;; This commands adds the news key ^C B to the orginal muse-keymap.
;;

(load "muse-mode.el")
(define-key muse-mode-map [(control ?c) ?b] 'local-muse-roll-buffers)

;;
;; 08/2008
;;

;;
;; local-muse-buffer-name tests if a string is a name as *.muse
;;

(defun local-muse-buffer-name (str) 
  (and (>= (length str) 5) (string= (substring str -5) ".muse")))

;;
;; local-muse-next-buffer finds the name of first next buffer under muse.
;;   the result is nil if the search fails.
;;

(defun local-muse-next-buffer (lbuffers)
  (cond 
    ((not lbuffers) nil)
    ((and (local-muse-buffer-name (buffer-name (car lbuffers))))
      (buffer-name (car lbuffers)))
    (t (local-muse-next-buffer (cdr lbuffers)))))

;;
;; The main function local-muse-roll-buffers switchs to the next muse buffer
;;   and sends the actual buffer under muse at the end of the buffer list.
;;

(defun local-muse-roll-buffers nil
  (interactive)
  (if (local-muse-buffer-name (buffer-name)) (bury-buffer))
  (let ((str (local-muse-next-buffer (buffer-list))))
     (if str (switch-to-buffer str))))

;;
;; This commands adds the news key ^C B to the orginal muse-keymap.
;;

(load "muse-mode.el")
(define-key muse-mode-map [(control ?c) ?b] 'local-muse-roll-buffers)

Michael Olson | 8 Aug 2008 07:02
Face
Picon
Picon

Re: some problem with publishing of source code in muse

Alex Ott <alexott <at> gmail.com> writes:

> Hello all
>
> After some of updates from repository (i haven't tracked which one), I
> start to have some problems with publishing emacs-lisp code in muse.
>
> The error is occur inside htmlize.el, and trace is looks like this one
> (but i hadn't update htmlize.el for a long time).

I've checked in a hackish workaround.  To activate it, add lisp/contrib
to your load-path and do (require 'htmlize-hack).

--

-- 
|       Michael Olson  |  FSF Associate Member #652     |
| http://mwolson.org/  |  Hobbies: Lisp, HCoop          |
| Projects: Emacs, Muse, ERC, EMMS, ErBot, DVC, Planner |
`-------------------------------------------------------'


Gmane