Re: Program to edit the Wiki
[EMAIL PROTECTED] wrote: Hmm.. you mean taking LaTeX output from LyX and converting it into wiki markup? That *is* an interesting idea. It is as easy as: - defining a wiki file format - define latex2wiki as the LaTeX-wiki converter Then you can export LyX documents to the wiki markup. (I haven't tried the script, though). you could even provide a minimal wiki layout file which only includes the necessary environments. Of course you still have do do cut'n'paste work. Jürgen
Re: Program to edit the Wiki
To: lyx-users@lists.lyx.org From: [EMAIL PROTECTED] Subject: Re: Program to edit the Wiki Date: Wed, 27 Jul 2005 01:59:35 +0200 X-X-Sender: [EMAIL PROTECTED] On Wed, 27 Jul 2005, Paul Smith wrote: On 7/26/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: No, and it'll probably be a while before such a program ever exists (1-3 years if I have to make a wild guess). However, if I ever get around to modify LyX to allow it to edit wiki pages it might be quicker - OTOH, I'm guessing it'll be quite a while before I have the time for something like that :-( Thanks, Christian. I try M-x pmwiki-mode but I get No match. Any ideas? Well, you do have to install it first :-) Follow these instructions http://www.pmichaud.com/wiki/EmacsModes/CVS and then look in the file pmwiki-mode.el that you just downloaded. Basically you have to add something like this (add-to-list 'load-path ~/emacs/pmwiki-mode) (require 'pmwiki-mode) (set 'pmwiki-author Paul) to your file .emacs. In addition, you should also add this: (set 'pmwiki-uri-transforms (list '(http://wiki.lyx.org\\(/[A-Z]\\|\\?\\) http://wiki.lyx.org; http://wiki.lyx.org/pmwiki.php;) '(http://wiki.lyx.org/pmwiki.php; http://wiki.lyx.org; http://paul:[EMAIL PROTECTED]) )) The reason you need the other stuff is that editing pages is password protected... Anyway, if you re-start emacs, you should know be able to do M-x lyx-open Here (XEmacs 21.4.14) I get Symbol's function definition is void: encode-coding-string -- Jean-Pierre
Re: Program to edit the Wiki
On 7/27/05, Paul Smith [EMAIL PROTECTED] wrote: Works with the above. Thanks! After having quiting Emacs in the middle of a pmwiki-mode session, when I restart Emacs and the pmwiki-mode, I get the following message after the command M-x pmwiki-mode: Loading goto-addr...done and it cannot progress afterwards. Paul
Re: Program to edit the Wiki
On Wed, 27 Jul 2005, Paul Smith wrote: On 7/27/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I get the following error: replace-regexp-in-string: Symbol's function definition is void: caddr Ah.. that problem keeps popping up. The good news is that you're nearly there. The bad news is that you probably have an old version of emacs. What does 'M-x emacs-version' say? GNU Emacs 21.3.2 (i386-mandrake-linux-gnu, X toolkit, Xaw3d scroll bars) of 2005-02-16 on n4.mandrakesoft.com, modified by Mandrake If you don't feel like updating emacs, you can add this to your .emacs (defun caddr (X) Define caddr (car (cdr (cdr X Works with the above. Thanks! Hi Paul I've hopefully made 'caddr' automatically be defined by requiring a package called 'cl' in pmwiki-mode.el. So I wonder if you could run cvs update in the directory where you checked out pmwiki-mode.el. This should give you the new version of that file. Then remove the definition of caddr in your .emacs, restart emacs and see if it works out of the box. /Christian -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: Program to edit the Wiki
On Wed, 27 Jul 2005, Juergen Spitzmueller wrote: [EMAIL PROTECTED] wrote: Hmm.. you mean taking LaTeX output from LyX and converting it into wiki markup? That *is* an interesting idea. It is as easy as: - defining a wiki file format It should probablyl be a pmwiki file format - different wikis typically use different syntaxes. - define latex2wiki as the LaTeX-wiki converter Then you can export LyX documents to the wiki markup. (I haven't tried the script, though). I'm guessing the script doesn't produce *pmwiki* syntax... so I'd have to redo it before it produces anything useful. you could even provide a minimal wiki layout file which only includes the necessary environments. Of course you still have do do cut'n'paste work. Um... I don't get the part with cut'n'paste? /Christian -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: Program to edit the Wiki
[EMAIL PROTECTED] wrote: It is as easy as: - defining a wiki file format It should probablyl be a pmwiki file format - different wikis typically use different syntaxes. certainly - define latex2wiki as the LaTeX-wiki converter Then you can export LyX documents to the wiki markup. (I haven't tried the script, though). I'm guessing the script doesn't produce *pmwiki* syntax... so I'd have to redo it before it produces anything useful. use it as a starting point. There are also some frequently used elements missing (like \url). Then write a corresponding pmwiki2latex script ;-) you could even provide a minimal wiki layout file which only includes the necessary environments. Of course you still have do do cut'n'paste work. Um... I don't get the part with cut'n'paste? Cut from the file, paste into the wiki's editing widget. Or is there a way to do this via script? What does emacs do? Jürgen
Re: Program to edit the Wiki
On 7/27/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've hopefully made 'caddr' automatically be defined by requiring a package called 'cl' in pmwiki-mode.el. So I wonder if you could run cvs update No success, Christian: $ cvs -d:pserver:[EMAIL PROTECTED]:/cvsroot/pmwiki-mode login Logging in to :pserver:[EMAIL PROTECTED]:2401/cvsroot/pmwiki-mode CVS password: $ cvs update cvs update: No CVSROOT specified! Please use the `-d' option cvs [update aborted]: or set the CVSROOT environment variable. $ Paul
Re: Program to edit the Wiki
Juergen Spitzmueller wrote: Cut from the file, paste into the wiki's editing widget. Or is there a way to do this via script? What does emacs do? There was an interesting article Medienpflege im Web Wiki-Inhalte mit externen Anwendungen bearbeiten in c't 14/05 about external editors for mediawiki. See http://www.heise.de/ct/05/14/links/190.shtml, http://www.heise.de/kiosk/archiv/ct/2005/14/190 and http://en.wikipedia.org/wiki/Help:External_editors. It looks like a nice project for some interested person to adapt it to pmwiki. Georg
Re: Program to edit the Wiki
On Wed, 27 Jul 2005, Paul Smith wrote: On 7/27/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've hopefully made 'caddr' automatically be defined by requiring a package called 'cl' in pmwiki-mode.el. So I wonder if you could run cvs update No success, Christian: $ cvs -d:pserver:[EMAIL PROTECTED]:/cvsroot/pmwiki-mode login Logging in to :pserver:[EMAIL PROTECTED]:2401/cvsroot/pmwiki-mode CVS password: $ cvs update cvs update: No CVSROOT specified! Please use the `-d' option cvs [update aborted]: or set the CVSROOT environment variable. $ Ok, I have no idea what's going on there. Try one of these:' * Delete what you have and check it all out from scratch * Make sure you are *in* pmwiki-mode/ when running 'cvs update' * Try cvs -d ... update from within pmwiki-mode/. The '...' should be the repository location. /Christian -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: Program to edit the Wiki
On Wed, 27 Jul 2005, Juergen Spitzmueller wrote: Um... I don't get the part with cut'n'paste? Cut from the file, paste into the wiki's editing widget. Or is there a way to do this via script? What does emacs do? It posts the data using http-post. I think you might be able to get curl do this actually. Anyway, I'm going to leave this for now, too much other stuff going on. /Christian -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: Program to edit the Wiki
On Wed, 27 Jul 2005, Jean-Pierre Chretien wrote: Anyway, if you re-start emacs, you should know be able to do M-x lyx-open Here (XEmacs 21.4.14) I get Symbol's function definition is void: encode-coding-string Hmm... it seems that function doesn't exist directly in xemacs. Someone else did get it to work with xemacs though http://www.pmichaud.com/wiki/EmacsModes/Compatibility but it involved recompiling xemacs to install encode-coding-string :-( However, I've tried to fix it by adding (require 'mule) to pmwiki-mode.el, so if you like you try cvs update where you installed pmwiki-mode.el and see if the new version work. Unfortunately it doesn't work for me, I get a bit further but after 'M-x lyx-open' LyX.Welcome I get this error (1) (error/warning) Error in process filter: (error No such coding system utf-8\) The big problem here is that the error comes from a module that I didn't write - it's called http-get.el. I just use it to download the raw source of a wiki page. So I'm afraid you'll have some problems getting this to work in xemacs :-( /Christian -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: Program to edit the Wiki
[EMAIL PROTECTED] wrote: Hmm.. you mean taking LaTeX output from LyX and converting it into wiki markup? That *is* an interesting idea. It is as easy as: - defining a wiki file format - define latex2wiki as the LaTeX-wiki converter Then you can export LyX documents to the wiki markup. (I haven't tried the script, though). you could even provide a minimal wiki layout file which only includes the necessary environments. Of course you still have do do cut'n'paste work. Jürgen
Re: Program to edit the Wiki
To: lyx-users@lists.lyx.org From: [EMAIL PROTECTED] Subject: Re: Program to edit the Wiki Date: Wed, 27 Jul 2005 01:59:35 +0200 X-X-Sender: [EMAIL PROTECTED] On Wed, 27 Jul 2005, Paul Smith wrote: On 7/26/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: No, and it'll probably be a while before such a program ever exists (1-3 years if I have to make a wild guess). However, if I ever get around to modify LyX to allow it to edit wiki pages it might be quicker - OTOH, I'm guessing it'll be quite a while before I have the time for something like that :-( Thanks, Christian. I try M-x pmwiki-mode but I get No match. Any ideas? Well, you do have to install it first :-) Follow these instructions http://www.pmichaud.com/wiki/EmacsModes/CVS and then look in the file pmwiki-mode.el that you just downloaded. Basically you have to add something like this (add-to-list 'load-path ~/emacs/pmwiki-mode) (require 'pmwiki-mode) (set 'pmwiki-author Paul) to your file .emacs. In addition, you should also add this: (set 'pmwiki-uri-transforms (list '(http://wiki.lyx.org\\(/[A-Z]\\|\\?\\) http://wiki.lyx.org; http://wiki.lyx.org/pmwiki.php;) '(http://wiki.lyx.org/pmwiki.php; http://wiki.lyx.org; http://paul:[EMAIL PROTECTED]) )) The reason you need the other stuff is that editing pages is password protected... Anyway, if you re-start emacs, you should know be able to do M-x lyx-open Here (XEmacs 21.4.14) I get Symbol's function definition is void: encode-coding-string -- Jean-Pierre
Re: Program to edit the Wiki
On 7/27/05, Paul Smith [EMAIL PROTECTED] wrote: Works with the above. Thanks! After having quiting Emacs in the middle of a pmwiki-mode session, when I restart Emacs and the pmwiki-mode, I get the following message after the command M-x pmwiki-mode: Loading goto-addr...done and it cannot progress afterwards. Paul
Re: Program to edit the Wiki
On Wed, 27 Jul 2005, Paul Smith wrote: On 7/27/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I get the following error: replace-regexp-in-string: Symbol's function definition is void: caddr Ah.. that problem keeps popping up. The good news is that you're nearly there. The bad news is that you probably have an old version of emacs. What does 'M-x emacs-version' say? GNU Emacs 21.3.2 (i386-mandrake-linux-gnu, X toolkit, Xaw3d scroll bars) of 2005-02-16 on n4.mandrakesoft.com, modified by Mandrake If you don't feel like updating emacs, you can add this to your .emacs (defun caddr (X) Define caddr (car (cdr (cdr X Works with the above. Thanks! Hi Paul I've hopefully made 'caddr' automatically be defined by requiring a package called 'cl' in pmwiki-mode.el. So I wonder if you could run cvs update in the directory where you checked out pmwiki-mode.el. This should give you the new version of that file. Then remove the definition of caddr in your .emacs, restart emacs and see if it works out of the box. /Christian -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: Program to edit the Wiki
On Wed, 27 Jul 2005, Juergen Spitzmueller wrote: [EMAIL PROTECTED] wrote: Hmm.. you mean taking LaTeX output from LyX and converting it into wiki markup? That *is* an interesting idea. It is as easy as: - defining a wiki file format It should probablyl be a pmwiki file format - different wikis typically use different syntaxes. - define latex2wiki as the LaTeX-wiki converter Then you can export LyX documents to the wiki markup. (I haven't tried the script, though). I'm guessing the script doesn't produce *pmwiki* syntax... so I'd have to redo it before it produces anything useful. you could even provide a minimal wiki layout file which only includes the necessary environments. Of course you still have do do cut'n'paste work. Um... I don't get the part with cut'n'paste? /Christian -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: Program to edit the Wiki
[EMAIL PROTECTED] wrote: It is as easy as: - defining a wiki file format It should probablyl be a pmwiki file format - different wikis typically use different syntaxes. certainly - define latex2wiki as the LaTeX-wiki converter Then you can export LyX documents to the wiki markup. (I haven't tried the script, though). I'm guessing the script doesn't produce *pmwiki* syntax... so I'd have to redo it before it produces anything useful. use it as a starting point. There are also some frequently used elements missing (like \url). Then write a corresponding pmwiki2latex script ;-) you could even provide a minimal wiki layout file which only includes the necessary environments. Of course you still have do do cut'n'paste work. Um... I don't get the part with cut'n'paste? Cut from the file, paste into the wiki's editing widget. Or is there a way to do this via script? What does emacs do? Jürgen
Re: Program to edit the Wiki
On 7/27/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've hopefully made 'caddr' automatically be defined by requiring a package called 'cl' in pmwiki-mode.el. So I wonder if you could run cvs update No success, Christian: $ cvs -d:pserver:[EMAIL PROTECTED]:/cvsroot/pmwiki-mode login Logging in to :pserver:[EMAIL PROTECTED]:2401/cvsroot/pmwiki-mode CVS password: $ cvs update cvs update: No CVSROOT specified! Please use the `-d' option cvs [update aborted]: or set the CVSROOT environment variable. $ Paul
Re: Program to edit the Wiki
Juergen Spitzmueller wrote: Cut from the file, paste into the wiki's editing widget. Or is there a way to do this via script? What does emacs do? There was an interesting article Medienpflege im Web Wiki-Inhalte mit externen Anwendungen bearbeiten in c't 14/05 about external editors for mediawiki. See http://www.heise.de/ct/05/14/links/190.shtml, http://www.heise.de/kiosk/archiv/ct/2005/14/190 and http://en.wikipedia.org/wiki/Help:External_editors. It looks like a nice project for some interested person to adapt it to pmwiki. Georg
Re: Program to edit the Wiki
On Wed, 27 Jul 2005, Paul Smith wrote: On 7/27/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've hopefully made 'caddr' automatically be defined by requiring a package called 'cl' in pmwiki-mode.el. So I wonder if you could run cvs update No success, Christian: $ cvs -d:pserver:[EMAIL PROTECTED]:/cvsroot/pmwiki-mode login Logging in to :pserver:[EMAIL PROTECTED]:2401/cvsroot/pmwiki-mode CVS password: $ cvs update cvs update: No CVSROOT specified! Please use the `-d' option cvs [update aborted]: or set the CVSROOT environment variable. $ Ok, I have no idea what's going on there. Try one of these:' * Delete what you have and check it all out from scratch * Make sure you are *in* pmwiki-mode/ when running 'cvs update' * Try cvs -d ... update from within pmwiki-mode/. The '...' should be the repository location. /Christian -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: Program to edit the Wiki
On Wed, 27 Jul 2005, Juergen Spitzmueller wrote: Um... I don't get the part with cut'n'paste? Cut from the file, paste into the wiki's editing widget. Or is there a way to do this via script? What does emacs do? It posts the data using http-post. I think you might be able to get curl do this actually. Anyway, I'm going to leave this for now, too much other stuff going on. /Christian -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: Program to edit the Wiki
On Wed, 27 Jul 2005, Jean-Pierre Chretien wrote: Anyway, if you re-start emacs, you should know be able to do M-x lyx-open Here (XEmacs 21.4.14) I get Symbol's function definition is void: encode-coding-string Hmm... it seems that function doesn't exist directly in xemacs. Someone else did get it to work with xemacs though http://www.pmichaud.com/wiki/EmacsModes/Compatibility but it involved recompiling xemacs to install encode-coding-string :-( However, I've tried to fix it by adding (require 'mule) to pmwiki-mode.el, so if you like you try cvs update where you installed pmwiki-mode.el and see if the new version work. Unfortunately it doesn't work for me, I get a bit further but after 'M-x lyx-open' LyX.Welcome I get this error (1) (error/warning) Error in process filter: (error No such coding system utf-8\) The big problem here is that the error comes from a module that I didn't write - it's called http-get.el. I just use it to download the raw source of a wiki page. So I'm afraid you'll have some problems getting this to work in xemacs :-( /Christian -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: Program to edit the Wiki
[EMAIL PROTECTED] wrote: > Hmm.. you mean taking LaTeX output from LyX and converting it into wiki > markup? That *is* an interesting idea. It is as easy as: - defining a "wiki" file format - define latex2wiki as the LaTeX->wiki converter Then you can "export" LyX documents to the wiki markup. (I haven't tried the script, though). you could even provide a minimal wiki "layout" file which only includes the necessary environments. Of course you still have do do cut'n'paste work. Jürgen
Re: Program to edit the Wiki
>>To: lyx-users@lists.lyx.org >>From: [EMAIL PROTECTED] >>Subject: Re: Program to edit the Wiki >>Date: Wed, 27 Jul 2005 01:59:35 +0200 >>X-X-Sender: [EMAIL PROTECTED] >> >>On Wed, 27 Jul 2005, Paul Smith wrote: >> >>> On 7/26/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >>> > No, and it'll probably be a while before such a program ever exists (1-3 >>> > years if I have to make a wild guess). However, if I ever get around to >>> > modify LyX to allow it to edit wiki pages it might be quicker - OTOH, I'm >>> > guessing it'll be quite a while before I have the time for something like >>> > that :-( >>> >>> Thanks, Christian. I try >>> >>> M-x pmwiki-mode >>> >>> but I get "No match". >>> >>> Any ideas? >> >>Well, you do have to install it first :-) >> >>Follow these instructions >> >> http://www.pmichaud.com/wiki/EmacsModes/CVS >> >>and then look in the file pmwiki-mode.el that you just downloaded. >>Basically you have to add something like this >> >>(add-to-list 'load-path "~/emacs/pmwiki-mode") >>(require 'pmwiki-mode) >>(set 'pmwiki-author "Paul") >> >>to your file .emacs. In addition, you should also add this: >> >>(set 'pmwiki-uri-transforms >> (list >> '("http://wiki.lyx.org\\(/[A-Z]\\|\\?\\)" >> "http://wiki.lyx.org; >> "http://wiki.lyx.org/pmwiki.php;) >> '("http://wiki.lyx.org/pmwiki.php; >> "http://wiki.lyx.org; >> "http://paul:[EMAIL PROTECTED]") >> )) >> >>The reason you need the other stuff is that editing pages is password >>protected... >> >>Anyway, if you re-start emacs, you should know be able to do >> >> M-x lyx-open Here (XEmacs 21.4.14) I get Symbol's function definition is void: encode-coding-string -- Jean-Pierre
Re: Program to edit the Wiki
On 7/27/05, Paul Smith <[EMAIL PROTECTED]> wrote: > Works with the above. Thanks! After having quiting Emacs in the middle of a pmwiki-mode session, when I restart Emacs and the pmwiki-mode, I get the following message after the command M-x pmwiki-mode: Loading goto-addr...done and it cannot progress afterwards. Paul
Re: Program to edit the Wiki
On Wed, 27 Jul 2005, Paul Smith wrote: > On 7/27/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > I get the following error: > > > > > > replace-regexp-in-string: Symbol's function definition is void: caddr > > > > Ah.. that problem keeps popping up. The good news is that you're nearly > > there. The bad news is that you probably have an old version of emacs. > > > > What does 'M-x emacs-version' say? > > GNU Emacs 21.3.2 (i386-mandrake-linux-gnu, X toolkit, Xaw3d scroll > bars) of 2005-02-16 on n4.mandrakesoft.com, modified by Mandrake > > > If you don't feel like updating emacs, you can add this to your .emacs > > > > (defun caddr (X) > > "Define caddr" > > (car (cdr (cdr X > > Works with the above. Thanks! Hi Paul I've hopefully made 'caddr' automatically be defined by requiring a package called 'cl' in pmwiki-mode.el. So I wonder if you could run cvs update in the directory where you checked out pmwiki-mode.el. This should give you the new version of that file. Then remove the definition of caddr in your .emacs, restart emacs and see if it works "out of the box". /Christian -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: Program to edit the Wiki
On Wed, 27 Jul 2005, Juergen Spitzmueller wrote: > [EMAIL PROTECTED] wrote: > > Hmm.. you mean taking LaTeX output from LyX and converting it into wiki > > markup? That *is* an interesting idea. > > It is as easy as: > - defining a "wiki" file format It should probablyl be a "pmwiki" file format - different wikis typically use different syntaxes. > - define latex2wiki as the LaTeX->wiki converter > Then you can "export" LyX documents to the wiki markup. (I haven't tried the > script, though). I'm guessing the script doesn't produce *pmwiki* syntax... so I'd have to redo it before it produces anything useful. > you could even provide a minimal wiki "layout" file which only includes > the necessary environments. Of course you still have do do cut'n'paste > work. Um... I don't get the part with cut'n'paste? /Christian -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: Program to edit the Wiki
[EMAIL PROTECTED] wrote: > > It is as easy as: > > - defining a "wiki" file format > > It should probablyl be a "pmwiki" file format - different wikis typically > use different syntaxes. certainly > > - define latex2wiki as the LaTeX->wiki converter > > Then you can "export" LyX documents to the wiki markup. (I haven't tried > > the script, though). > > I'm guessing the script doesn't produce *pmwiki* syntax... so I'd have to > redo it before it produces anything useful. use it as a starting point. There are also some frequently used elements missing (like \url). Then write a corresponding pmwiki2latex script ;-) > > you could even provide a minimal wiki "layout" file which only includes > > the necessary environments. Of course you still have do do cut'n'paste > > work. > > Um... I don't get the part with cut'n'paste? Cut from the file, paste into the wiki's editing widget. Or is there a way to do this via script? What does emacs do? Jürgen
Re: Program to edit the Wiki
On 7/27/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I've hopefully made 'caddr' automatically be defined by requiring a > package called 'cl' in pmwiki-mode.el. So I wonder if you could run > > cvs update No success, Christian: $ cvs -d:pserver:[EMAIL PROTECTED]:/cvsroot/pmwiki-mode login Logging in to :pserver:[EMAIL PROTECTED]:2401/cvsroot/pmwiki-mode CVS password: $ cvs update cvs update: No CVSROOT specified! Please use the `-d' option cvs [update aborted]: or set the CVSROOT environment variable. $ Paul
Re: Program to edit the Wiki
Juergen Spitzmueller wrote: > Cut from the file, paste into the wiki's editing widget. Or is there a way > to do this via script? What does emacs do? There was an interesting article "Medienpflege im Web Wiki-Inhalte mit externen Anwendungen bearbeiten" in c't 14/05 about external editors for mediawiki. See http://www.heise.de/ct/05/14/links/190.shtml, http://www.heise.de/kiosk/archiv/ct/2005/14/190 and http://en.wikipedia.org/wiki/Help:External_editors. It looks like a nice project for some interested person to adapt it to pmwiki. Georg
Re: Program to edit the Wiki
On Wed, 27 Jul 2005, Paul Smith wrote: > On 7/27/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I've hopefully made 'caddr' automatically be defined by requiring a > > package called 'cl' in pmwiki-mode.el. So I wonder if you could run > > > > cvs update > > No success, Christian: > > $ cvs -d:pserver:[EMAIL PROTECTED]:/cvsroot/pmwiki-mode login > Logging in to :pserver:[EMAIL PROTECTED]:2401/cvsroot/pmwiki-mode > CVS password: > $ cvs update > cvs update: No CVSROOT specified! Please use the `-d' option > cvs [update aborted]: or set the CVSROOT environment variable. > $ Ok, I have no idea what's going on there. Try one of these:' * Delete what you have and check it all out from scratch * Make sure you are *in* pmwiki-mode/ when running 'cvs update' * Try cvs -d ... update from within pmwiki-mode/. The '...' should be the repository location. /Christian -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: Program to edit the Wiki
On Wed, 27 Jul 2005, Juergen Spitzmueller wrote: > > Um... I don't get the part with cut'n'paste? > > Cut from the file, paste into the wiki's editing widget. Or is there a way to > do this via script? What does emacs do? It posts the data using http-post. I think you might be able to get curl do this actually. Anyway, I'm going to leave this for now, too much other stuff going on. /Christian -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: Program to edit the Wiki
On Wed, 27 Jul 2005, Jean-Pierre Chretien wrote: > >>Anyway, if you re-start emacs, you should know be able to do > >> > >>M-x lyx-open > > Here (XEmacs 21.4.14) I get > Symbol's function definition is void: encode-coding-string Hmm... it seems that function doesn't exist directly in xemacs. Someone else did get it to work with xemacs though http://www.pmichaud.com/wiki/EmacsModes/Compatibility but it involved recompiling xemacs to install encode-coding-string :-( However, I've tried to fix it by adding (require 'mule) to pmwiki-mode.el, so if you like you try cvs update where you installed pmwiki-mode.el and see if the new version work. Unfortunately it doesn't work for me, I get a bit further but after 'M-x lyx-open' LyX.Welcome I get this error (1) (error/warning) Error in process filter: (error No such coding system utf-8\) The big problem here is that the error comes from a module that I didn't write - it's called http-get.el. I just use it to download the raw source of a wiki page. So I'm afraid you'll have some problems getting this to work in xemacs :-( /Christian -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: Program to edit the Wiki
On Tue, 26 Jul 2005, Paul Smith wrote: Dear All Is there some WYSIWYM program to produce the code to insert inside the Wiki pages? No, and it'll probably be a while before such a program ever exists (1-3 years if I have to make a wild guess). However, if I ever get around to modify LyX to allow it to edit wiki pages it might be quicker - OTOH, I'm guessing it'll be quite a while before I have the time for something like that :-( There is however a special emacs mode, pmwiki-mode, which allows you to edit pages on a wiki from within emacs (its neither WYSIWYG nor WYSIWYM). What I do is open and edit a wiki page in emacs, save it and then press refresh in the browser to see the end result. /Christian PS. With pmwiki v2 (which I'll eventually upgrade to), you can have small icons above the edit pane. Pressing the icon for emphasized text then inserts the markup for emphasized text and so on. To check this out, try this link http://www.pmwiki.org/wiki/Main/WikiSandbox?action=edit -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: Program to edit the Wiki
[EMAIL PROTECTED] wrote: Is there some WYSIWYM program to produce the code to insert inside the Wiki pages? No, and it'll probably be a while before such a program ever exists (1-3 years if I have to make a wild guess). However, if I ever get around to modify LyX to allow it to edit wiki pages it might be quicker - OTOH, I'm guessing it'll be quite a while before I have the time for something like that :-( Maybe this is a start? http://gforge.org/snippet/detail.php?type=snippetid=25 Jürgen
Re: Program to edit the Wiki
On Tue, 26 Jul 2005, Juergen Spitzmueller wrote: [EMAIL PROTECTED] wrote: Is there some WYSIWYM program to produce the code to insert inside the Wiki pages? No, and it'll probably be a while before such a program ever exists (1-3 years if I have to make a wild guess). However, if I ever get around to modify LyX to allow it to edit wiki pages it might be quicker - OTOH, I'm guessing it'll be quite a while before I have the time for something like that :-( Maybe this is a start? http://gforge.org/snippet/detail.php?type=snippetid=25 Hmm.. you mean taking LaTeX output from LyX and converting it into wiki markup? That *is* an interesting idea. Or perhaps via XML? There might also be stuff coming that outputs XML or LaTeX based on a wiki page. Maybe that's all you'd need in order to start with something... Anyway, this is all stuff for the future :-) /C -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: Program to edit the Wiki
On 7/26/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: No, and it'll probably be a while before such a program ever exists (1-3 years if I have to make a wild guess). However, if I ever get around to modify LyX to allow it to edit wiki pages it might be quicker - OTOH, I'm guessing it'll be quite a while before I have the time for something like that :-( Thanks, Christian. I try M-x pmwiki-mode but I get No match. Any ideas? Paul
Re: Program to edit the Wiki
On Wed, 27 Jul 2005, Paul Smith wrote: On 7/27/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Anyway, if you re-start emacs, you should know be able to do M-x lyx-open and then give e.g. 'Main.WikiSandbox' as an argument, in order to open tha page. Let me know if you have any problems. I get the following error: replace-regexp-in-string: Symbol's function definition is void: caddr Ah.. that problem keeps popping up. The good news is that you're nearly there. The bad news is that you probably have an old version of emacs. What does 'M-x emacs-version' say? If you don't feel like updating emacs, you can add this to your .emacs (defun caddr (X) Define caddr (car (cdr (cdr X You might also need cadr (defun cadr (X) Define caddr (car (cdr X))) Since this problem occurs so often, I guess I should add something that defines caddr if it's not already defined... /Christian -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: Program to edit the Wiki
On 7/27/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I get the following error: replace-regexp-in-string: Symbol's function definition is void: caddr Ah.. that problem keeps popping up. The good news is that you're nearly there. The bad news is that you probably have an old version of emacs. What does 'M-x emacs-version' say? GNU Emacs 21.3.2 (i386-mandrake-linux-gnu, X toolkit, Xaw3d scroll bars) of 2005-02-16 on n4.mandrakesoft.com, modified by Mandrake If you don't feel like updating emacs, you can add this to your .emacs (defun caddr (X) Define caddr (car (cdr (cdr X Works with the above. Thanks! Paul
Re: Program to edit the Wiki
On Tue, 26 Jul 2005, Paul Smith wrote: Dear All Is there some WYSIWYM program to produce the code to insert inside the Wiki pages? No, and it'll probably be a while before such a program ever exists (1-3 years if I have to make a wild guess). However, if I ever get around to modify LyX to allow it to edit wiki pages it might be quicker - OTOH, I'm guessing it'll be quite a while before I have the time for something like that :-( There is however a special emacs mode, pmwiki-mode, which allows you to edit pages on a wiki from within emacs (its neither WYSIWYG nor WYSIWYM). What I do is open and edit a wiki page in emacs, save it and then press refresh in the browser to see the end result. /Christian PS. With pmwiki v2 (which I'll eventually upgrade to), you can have small icons above the edit pane. Pressing the icon for emphasized text then inserts the markup for emphasized text and so on. To check this out, try this link http://www.pmwiki.org/wiki/Main/WikiSandbox?action=edit -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: Program to edit the Wiki
[EMAIL PROTECTED] wrote: Is there some WYSIWYM program to produce the code to insert inside the Wiki pages? No, and it'll probably be a while before such a program ever exists (1-3 years if I have to make a wild guess). However, if I ever get around to modify LyX to allow it to edit wiki pages it might be quicker - OTOH, I'm guessing it'll be quite a while before I have the time for something like that :-( Maybe this is a start? http://gforge.org/snippet/detail.php?type=snippetid=25 Jürgen
Re: Program to edit the Wiki
On Tue, 26 Jul 2005, Juergen Spitzmueller wrote: [EMAIL PROTECTED] wrote: Is there some WYSIWYM program to produce the code to insert inside the Wiki pages? No, and it'll probably be a while before such a program ever exists (1-3 years if I have to make a wild guess). However, if I ever get around to modify LyX to allow it to edit wiki pages it might be quicker - OTOH, I'm guessing it'll be quite a while before I have the time for something like that :-( Maybe this is a start? http://gforge.org/snippet/detail.php?type=snippetid=25 Hmm.. you mean taking LaTeX output from LyX and converting it into wiki markup? That *is* an interesting idea. Or perhaps via XML? There might also be stuff coming that outputs XML or LaTeX based on a wiki page. Maybe that's all you'd need in order to start with something... Anyway, this is all stuff for the future :-) /C -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: Program to edit the Wiki
On 7/26/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: No, and it'll probably be a while before such a program ever exists (1-3 years if I have to make a wild guess). However, if I ever get around to modify LyX to allow it to edit wiki pages it might be quicker - OTOH, I'm guessing it'll be quite a while before I have the time for something like that :-( Thanks, Christian. I try M-x pmwiki-mode but I get No match. Any ideas? Paul
Re: Program to edit the Wiki
On Wed, 27 Jul 2005, Paul Smith wrote: On 7/27/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Anyway, if you re-start emacs, you should know be able to do M-x lyx-open and then give e.g. 'Main.WikiSandbox' as an argument, in order to open tha page. Let me know if you have any problems. I get the following error: replace-regexp-in-string: Symbol's function definition is void: caddr Ah.. that problem keeps popping up. The good news is that you're nearly there. The bad news is that you probably have an old version of emacs. What does 'M-x emacs-version' say? If you don't feel like updating emacs, you can add this to your .emacs (defun caddr (X) Define caddr (car (cdr (cdr X You might also need cadr (defun cadr (X) Define caddr (car (cdr X))) Since this problem occurs so often, I guess I should add something that defines caddr if it's not already defined... /Christian -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: Program to edit the Wiki
On 7/27/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I get the following error: replace-regexp-in-string: Symbol's function definition is void: caddr Ah.. that problem keeps popping up. The good news is that you're nearly there. The bad news is that you probably have an old version of emacs. What does 'M-x emacs-version' say? GNU Emacs 21.3.2 (i386-mandrake-linux-gnu, X toolkit, Xaw3d scroll bars) of 2005-02-16 on n4.mandrakesoft.com, modified by Mandrake If you don't feel like updating emacs, you can add this to your .emacs (defun caddr (X) Define caddr (car (cdr (cdr X Works with the above. Thanks! Paul
Re: Program to edit the Wiki
On Tue, 26 Jul 2005, Paul Smith wrote: > Dear All > > Is there some WYSIWYM program to produce the code to insert inside the > Wiki pages? No, and it'll probably be a while before such a program ever exists (1-3 years if I have to make a wild guess). However, if I ever get around to modify LyX to allow it to edit wiki pages it might be quicker - OTOH, I'm guessing it'll be quite a while before I have the time for something like that :-( There is however a special emacs mode, pmwiki-mode, which allows you to edit pages on a wiki from within emacs (its neither WYSIWYG nor WYSIWYM). What I do is open and edit a wiki page in emacs, "save" it and then press refresh in the browser to see the end result. /Christian PS. With pmwiki v2 (which I'll eventually upgrade to), you can have small icons above the edit pane. Pressing the icon for emphasized text then inserts the markup for emphasized text and so on. To check this out, try this link http://www.pmwiki.org/wiki/Main/WikiSandbox?action=edit -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: Program to edit the Wiki
[EMAIL PROTECTED] wrote: > > Is there some WYSIWYM program to produce the code to insert inside the > > Wiki pages? > > No, and it'll probably be a while before such a program ever exists (1-3 > years if I have to make a wild guess). However, if I ever get around to > modify LyX to allow it to edit wiki pages it might be quicker - OTOH, I'm > guessing it'll be quite a while before I have the time for something like > that :-( Maybe this is a start? http://gforge.org/snippet/detail.php?type=snippet=25 Jürgen
Re: Program to edit the Wiki
On Tue, 26 Jul 2005, Juergen Spitzmueller wrote: > [EMAIL PROTECTED] wrote: > > > Is there some WYSIWYM program to produce the code to insert inside the > > > Wiki pages? > > > > No, and it'll probably be a while before such a program ever exists (1-3 > > years if I have to make a wild guess). However, if I ever get around to > > modify LyX to allow it to edit wiki pages it might be quicker - OTOH, I'm > > guessing it'll be quite a while before I have the time for something like > > that :-( > > Maybe this is a start? > http://gforge.org/snippet/detail.php?type=snippet=25 Hmm.. you mean taking LaTeX output from LyX and converting it into wiki markup? That *is* an interesting idea. Or perhaps via XML? There might also be stuff coming that outputs XML or LaTeX based on a wiki page. Maybe that's all you'd need in order to start with something... Anyway, this is all stuff for the future :-) /C -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: Program to edit the Wiki
On 7/26/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > No, and it'll probably be a while before such a program ever exists (1-3 > years if I have to make a wild guess). However, if I ever get around to > modify LyX to allow it to edit wiki pages it might be quicker - OTOH, I'm > guessing it'll be quite a while before I have the time for something like > that :-( Thanks, Christian. I try M-x pmwiki-mode but I get "No match". Any ideas? Paul
Re: Program to edit the Wiki
On Wed, 27 Jul 2005, Paul Smith wrote: > On 7/27/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Anyway, if you re-start emacs, you should know be able to do > > > > M-x lyx-open > > > > and then give e.g. 'Main.WikiSandbox' as an argument, in order to open tha > > page. Let me know if you have any problems. > > I get the following error: > > replace-regexp-in-string: Symbol's function definition is void: caddr Ah.. that problem keeps popping up. The good news is that you're nearly there. The bad news is that you probably have an old version of emacs. What does 'M-x emacs-version' say? If you don't feel like updating emacs, you can add this to your .emacs (defun caddr (X) "Define caddr" (car (cdr (cdr X You might also need cadr (defun cadr (X) "Define caddr" (car (cdr X))) Since this problem occurs so often, I guess I should add something that defines caddr if it's not already defined... /Christian -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: Program to edit the Wiki
On 7/27/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I get the following error: > > > > replace-regexp-in-string: Symbol's function definition is void: caddr > > Ah.. that problem keeps popping up. The good news is that you're nearly > there. The bad news is that you probably have an old version of emacs. > > What does 'M-x emacs-version' say? GNU Emacs 21.3.2 (i386-mandrake-linux-gnu, X toolkit, Xaw3d scroll bars) of 2005-02-16 on n4.mandrakesoft.com, modified by Mandrake > If you don't feel like updating emacs, you can add this to your .emacs > > (defun caddr (X) > "Define caddr" > (car (cdr (cdr X Works with the above. Thanks! Paul