Pascal Quesseveur | 5 Sep 10:20 2008
Picon

Muse mode for JavaHelp

Hello,

I have written a mode for publishing JavaHelp files from a Muse
file. That mode let you create the Helpset, Map and TOC files which
are required by the JavaHelp system. The HTML files can be splitted
into several smaller files, each file containing only one section. It
is also possible to ask building the JavaHelp search database. That
build will require the jhindexer command from the JavaHelp system.

I have tested the mode with Emacs 22.1 on Windows with some small Muse
files, and it seems to work. I have not seen any request on the list
about publishing JavaHelp files from Muse, but perhaps someone else
will find it interesting. The mode can be downloaded at:

http://pascal.quesseveur.free.fr/downloads/muse-jh.el

Writing of this mode let me increase my Elisp knowledge but I am aware
that it can still be improved.

HTH.

--

-- 
Pascal Quesseveur
pascal.quesseveur <at> free.fr

Michael Olson | 13 Sep 21:22 2008
Face
Picon
Picon

Re: Bug? muse-publish-markup-regexps chomps preceding whitespace.

Michael Labbe writes:

> In trying to create a regexp to generate Twiki style lists, I have
> stumbled on a bug that appears to affect me, but not any of the
> publically available Muse modes.
>
> == begin code
> (defcustom muse-twiki-markup-regexps
>   '(
>     (2105 "^\\(\s\\{1\\}-\s\\)" 0 "   * ")
>
> ; code continues here ...
> == end code
>
> When I replace the leading spaces with underscores, it works as
> expected.  What is eating my leading spaces and how can I stop it?

If possible, use something like muse-twiki-markup-strings instead (see
muse-html-markup-strings for an example).  There shouldn't be a need to
use markup-regexps here.

--

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

Jean Magnan de Bornier | 17 Sep 07:39 2008
Picon

Automatic but unwanted ftp conncetion

Hi all,

Since about ten days I switched to ubuntu (8.04), with emacs 22, and a
strange phenomenon has appeared: my muse-init.el, if loaded, starts a ftp
connection; the culprit seems to be this, because the server name only
appears in this function:

..........................

 (setq muse-project-alist
	 `(
(<mes autres projets>)
("Piaffer" (, <at> (muse-project-alist-dirs "~/piaffer")
:default "index")
 , <at> (muse-project-alist-styles "~/piaffer"  "/ftp:jean <at> bokuro:piaffer" "hpia"))
))

..........................

Here is what shows in the Messages buffer when I load muse-init.el:

..........................

Loading easy-mmode...done
Loading tramp...done
Loading conf-mode...done
Opening FTP connection to bokuro...done
Logging in as user jean <at> bokuro...done
Getting PWD...done
muse-init
(Continue reading)

Jim Ottaway | 17 Sep 11:18 2008
Picon

Re: Automatic but unwanted ftp conncetion

>>>>> Jean Magnan de Bornier <jean <at> bornier.net> writes:
>  (setq muse-project-alist
> 	 `(
> (<mes autres projets>)
> ("Piaffer" (, <at> (muse-project-alist-dirs "~/piaffer")
> :default "index")
>  , <at> (muse-project-alist-styles "~/piaffer"  "/ftp:jean <at> bokuro:piaffer" "hpia"))
> ))

Is there any difference between this ftp pathname and the others? Could
you post the whole muse-project-alist?

> In my muse-project-alist I have others projecs with ftp links as their
> ouptput, but no connection is automatically opened for these...

Yours sincerely,
--

-- 
Dr Jim Ottaway,	
Research Officer: Translating Neurobiological Research,	
BIOS Centre for Bioscience, Biomedicine, Biotechnology and Society,	
Room V1100, Tower 2,	
London School of Economics and Political Science,	
Telephone: +44 (0)20 7852 3688	

Jean Magnan de Bornier | 17 Sep 11:54 2008
Picon

Re: Automatic but unwanted ftp conncetion

Le 17 septembre à 11:18:09 Jim Ottaway <j.ottaway <at> lse.ac.uk> écrit notamment:

| Is there any difference between this ftp pathname and the others? Could
| you post the whole muse-project-alist?

Yes, here:

(setq muse-project-alist
	 `(("cézanne"
	 ("~/cézanne" :default "index")
	 (:base "htf" :path "/ftp:bornier <at> junon.univ-cezanne.fr:~/"))
	("Économie industrielle"
	 ("~/Ecoind" :default "ecind")
	 (:base "contind" :path "~/Ecoind/tex")
	 (:base "htf" :path "/ftp:bornier <at> junon.univ-cezanne.fr:ecoind"))
	("Contrats"
	 ("~/contrats/livre" :default "contrat")
	 (:base "contc" :path "~/contrats/livre")
	 (:base "htf" :path "/ftp:bornier <at> junon.univ-cezanne.fr:contrats"))
	("Iee"
	 ("~/Europe/junon" :default "iee")
	 (:base "htf" :path "/ftp:bornier <at> junon.univ-cezanne.fr:intégration"))
	("Tutoriel"
	 ("~/Tutoriel" :default "index")
	 (:base "context" :path "~/Tutoriel")
	 (:base "context-pdf" :path "/ftp:jm.bornier <at> ftpperso.free.fr:muse")
	 (:base "htuto" :path "/ftp:jm.bornier <at> ftpperso.free.fr:muse"))
	("Piaffer" (, <at> (muse-project-alist-dirs "~/piaffer")
	:default "index")
	 , <at> (muse-project-alist-styles "~/piaffer"  "/ftp:jean <at> bokuro:piaffer" "hpia"))
(Continue reading)

Jim Ottaway | 17 Sep 12:32 2008
Picon

Re: Automatic but unwanted ftp conncetion

>>>>> Jean Magnan de Bornier <jean <at> bornier.net> writes:

> Le 17 septembre à 11:18:09 Jim Ottaway <j.ottaway <at> lse.ac.uk> écrit notamment:
> | Is there any difference between this ftp pathname and the others? Could
> | you post the whole muse-project-alist?

> Yes, here:

> (setq muse-project-alist
> 	 `(("cézanne"
> 	 ("~/cézanne" :default "index")
> 	 (:base "htf" :path "/ftp:bornier <at> junon.univ-cezanne.fr:~/"))
> [...]
> 	 , <at> (muse-project-alist-styles "~/piaffer"  "/ftp:jean <at> bokuro:piaffer" "hpia"))
> ))

Another difference is that the problematic part of the list uses
muse-project-alist-styles, which doesn't do any checking for remoteness.  

I think the use of expand-file-name is the culprit, but I'm afraid I
can't offer a solution myself right now.

Yours sincerely,
--

-- 
Dr Jim Ottaway,	
Research Officer: Translating Neurobiological Research,	
BIOS Centre for Bioscience, Biomedicine, Biotechnology and Society,	
Room V1100, Tower 2,	
London School of Economics and Political Science,	
Telephone: +44 (0)20 7852 3688	
(Continue reading)

Phillip Lord | 17 Sep 13:08 2008
Picon
Picon

Re: Automatic but unwanted ftp conncetion


>>>>> "JMdB" == Jean Magnan de Bornier <jean <at> bornier.net> writes:

  JMdB> Hi all, Since about ten days I switched to ubuntu (8.04), with emacs
  JMdB> 22, and a strange phenomenon has appeared: my muse-init.el, if loaded,
  JMdB> starts a ftp connection; the culprit seems to be this, because the
  JMdB> server name only appears in this function:

  JMdB> ..........................

  JMdB>  (setq muse-project-alist
  JMdB> 	 `(
  JMdB> (<mes autres projets>) ("Piaffer" (, <at> (muse-project-alist-dirs
  JMdB> "~/piaffer") :default "index")
  JMdB>  , <at> (muse-project-alist-styles "~/piaffer" "/ftp:jean <at> bokuro:piaffer"
  JMdB>  "hpia"))
  JMdB> ))

Looking at the code for `muse-project-alist-styles' it calls
`expand-file-name' on this argument. Try eval'ing

(expand-file-name "/ftp:jean <at> bokuro:piaffer")

In my hands, this forces a connection -- I guess this has to happen to
understand the directory structure of the remote site. 

You say you switched to Ubuntu 8.04 -- what did you switch from? Perhaps it's
expand-file-name which has changed? 

Phil
(Continue reading)

Jean Magnan de Bornier | 17 Sep 13:17 2008
Picon

Re: Automatic but unwanted ftp conncetion

Le 17 septembre à 13:08:43 Phillip Lord <phillip.lord <at> newcastle.ac.uk> écrit notamment:

| Looking at the code for `muse-project-alist-styles' it calls
| `expand-file-name' on this argument. Try eval'ing
| 
| (expand-file-name "/ftp:jean <at> bokuro:piaffer")
| 
| In my hands, this forces a connection -- I guess this has to happen to
| understand the directory structure of the remote site. 

Yes, I see the same thing

| 
| You say you switched to Ubuntu 8.04 -- what did you switch from? Perhaps
| it's expand-file-name which has changed?

I used gentoo and my emacs was "emacs-cvs", ie emacs-23; I haven't had the
to figure how to get it with ubuntu yet, but maybe the solution would be there?

Thanks Jim and Phillip,
--

-- 
jean

_______________________________________________
Muse-el-discuss mailing list
Muse-el-discuss <at> gna.org
https://mail.gna.org/listinfo/muse-el-discuss
Phillip Lord | 17 Sep 13:19 2008
Picon
Picon

Re: Automatic but unwanted ftp conncetion

>>>>> "JO" == Jim Ottaway <j.ottaway <at> lse.ac.uk> writes:

>>>>> Jean Magnan de Bornier <jean <at> bornier.net> writes:
  >> Le 17 septembre à 11:18:09 Jim Ottaway <j.ottaway <at> lse.ac.uk> écrit
  >> notamment: | Is there any difference between this ftp pathname and the
  >> others? Could | you post the whole muse-project-alist?

  >> Yes, here:

  >> (setq muse-project-alist `(("cézanne" ("~/cézanne" :default "index")
  >> (:base "htf" :path "/ftp:bornier <at> junon.univ-cezanne.fr:~/")) [...]
  >> , <at> (muse-project-alist-styles "~/piaffer" "/ftp:jean <at> bokuro:piaffer"
  >> "hpia")) ))

  JO> Another difference is that the problematic part of the list uses
  JO> muse-project-alist-styles, which doesn't do any checking for remoteness.

  JO> I think the use of expand-file-name is the culprit, but I'm afraid I
  JO> can't offer a solution myself right now.

Hard code the results of eval'ing....

(muse-project-alist-styles "~/piaffer" "/ftp:jean <at> bokuro:piaffer"
  "hpia")

As far as I can see, this only depends on the directories at the other end, so
this should work without causing too much hassle, unless you change the
directory structure a lot. 

Phil
(Continue reading)

Jean Magnan de Bornier | 17 Sep 16:02 2008
Picon

Re: Automatic but unwanted ftp conncetion

Le 17 septembre à 13:19:26 Phillip Lord <phillip.lord <at> newcastle.ac.uk> écrit notamment:

| Hard code the results of eval'ing....
| 
| (muse-project-alist-styles "~/piaffer" "/ftp:jean <at> bokuro:piaffer"
|   "hpia")
| 
| 
| As far as I can see, this only depends on the directories at the other end, so
| this should work without causing too much hassle, unless you change the
| directory structure a lot. 

Thank you Phillip; do you mean by that making one project per
sub-directory (what I have for my other projects)? If so it is of course
possible, but the behavior then is not quite the same.

Cheers,
--

-- 
jean

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

Gmane