I really don't like editing wiki pages in the HTML form.
Right now, whenever I want to edit a page, I export it, I edit the file,
and I import the file back. The only problem is that the user that
appears to have changed the page is "trac" not me.
How do you people edit the wiki pages in external editors?
Thanks a lot,
Ray
> How do you people edit the wiki pages in external editors?
There's an uber-slick way to edit *any* Cocoa text field on the Mac
using TextMate. This doesn't work, however, while using Firefox since
it's not a cocoa app, but someone was kind enough to post a work
around for that which you can read here:
http://macromates.com/wiki/Main/Howtos#Firefox
That explains how to install an extension to Firefox that will enable
you to use textmate as the editor for Firefox forms. While you may
not have TextMate, or Mac, I bet that with some minor tweaking it
will work with your platform/editor of choice.
The url to the firefox extension is here:
http://mozex.mozdev.org/development.html
Hope that helps,
-steve
More to the point, when do we get something like http://www.fckeditor.net/
;-)
I think I have been misunderstood.
I don't like to use the browser to edit wiki pages. I don't like the
HTML page where you write in a text area (even if it has nice features)
and then click Submit (or whatever).
I like to open my preferred editor and edit the page there.
> Right now, whenever I want to edit a page, I export it, I edit the file,
> and I import the file back. The only problem is that the user that
> appears to have changed the page is "trac" not me.
The method I described has only the user name problem, I don't mind the
extra work so much.
Thanks a lot,
Ray
The following proposed solution has not yet been done to my
knowledge, but I believe it could be done.
Depending on how scriptable your preferred editor is, it should be
possible to link it to Trac by writing some script set/plugin that
lets you browse Trac within your editor (viewing pages by downloading
the Plain Text version over HTTP; ?format=txt does this), and then
allowing you to submit edits by automating the form submission.
(e.g., in Vim, reading such a file would download it, and writing
would cause a submit followed by a reload)
Yeah, that would require some effort and programming, but it should
be doable if you are so inclined. I've thought about doing such a
thing for Vim, but it hasn't been sufficiently high on my priority
list to actually get accomplished. For now, I just edit in the
browser (I used to use the edit-text-field-in-external-program
Firefox extension when I used Firefox).
- Michael
There is a Firefox extension called Mozex which does exactly this. You
can edit any text area in an external editor of your choice.
There is a version for FF 1.5+ but you have to hunt for it.
Thanks ;-) This exact what i need!
--
--
********************************************************************
* *
* Bas van der Vlies e-mail: ba...@sara.nl *
* SARA - Academic Computing Services phone: +31 20 592 8012 *
* Kruislaan 415 fax: +31 20 6683167 *
* 1098 SJ Amsterdam *
* *
********************************************************************
--Noah
Thanks,
Ray
vimtrac.py is more close to what I would like to have. Anyway, how do
you authenticate with it?
For me, ideal would be to have a checkout/checkin system. That is, you
check out a file, you edit it in some editor which is already open,
then, when you are done with it, you check it back in.
I am using emacs as editor. Usually I keep the same emacs instance open
for a long time. I don't like to have emacs to open every time I edit a
wiki file.
Thanks a lot,
Ray
> For me, ideal would be to have a checkout/checkin system. That is, you
> check out a file, you edit it in some editor which is already open,
> then, when you are done with it, you check it back in.
I keep contemplating making a plugin to expose the wiki as a DAV/
DeltaV file system, but have never had the time. Maybe one day ....
--Noah
-solo
I have the code, but it is not in public place because
I'm testing personaly. It has following features and restriction.
I'll post it (trac.el, xml-rpc.el) soon if anyone be interested
and want to use as *tester*.
trac.el --- edit trac wiki pages in emacs via XML-RPC
Features:
* Multiple project access
* Retrieve page from remote site and edit it with highlighting.
* Commit page with version check.
* Diff / Ediff between editing text and original.
* Reverte local edit.
* Merge with most recent version if it is modified by other user.
* Show history of page (but not so infomative)
* Preview page in emacs with w3m. (textual)
* Preview page with external browser. (css is available)
* Search words in trac site for all pages and view result.
* Completion for macro name and wiki page name in buffer.
Requirement:
* Works on most recent emacs 22.0.50.
It may work on emacs 21 but it is not tested yet.
* need xml-rpc.el with small patch for I18N (non-ascii)
* need small patch for XmlRpcPlugin for I18N (non-ascii)
http://trac-hacks.org/ticket/845
* w3m and emacs-w3m for preview.
Restriction:
* Cannot run on emacs 21 or before.
* Cannot delete page version.
* Cannot operates tickets.
--
Shun-ichi GOTO
On 10/27/06, solo turn <solo...@gmail.com> wrote:would: * http://www.emacswiki.org/cgi-bin/wiki/XmlRpc * http://trac-hacks.org/wiki/XmlRpcPlugin be a possibility?I have the code, but it is not in public place because I'm testing personaly. It has following features and restriction. I'll post it (trac.el, xml-rpc.el) soon if anyone be interested and want to use as *tester*.
-- Parragh Szabolcs NiR Informatikai Megoldások Kft. mobil: +36-30-407-1285 e-mail: par...@nir.hu web: www.nir.hu
I placed it in public.
http://www.meadowy.org/~gotoh/projects/trac-wiki/
Try it!
Bug report is welcome. You can create ticket on that page.
You can access the code using mercurial (SCM).
The repository URL is:
http://www.meadowy.org/~gotoh/hg/trac-wiki/
--
Shun-ichi GOTO
> Is there a chance that I can make it work with a https trac site that
> needs client certificates for access?
You need ssl.el if you not have.
See ticket:2 for more detail.
http://www.meadowy.org/~gotoh/projects/trac-wiki/ticket/2
I've fixed to work with OpenSSL process
and release as ver-1.1
--
Shun-ichi GOTO
ebugger entered--Lisp error: (invalid-function "proj2")
("proj2" :endpoint "http://www.other.net/bar/login/xmlrpc")
(setq (quote ("proj1" :endpoint
"http://www.some.host.org/foo/login/xmlrpc")) ("proj2" :endpoint
"http://www.other.net/bar/login/xmlrpc"))
eval-buffer(#<buffer *load*> nil "/home/szabolcs/.emacs" nil t) ;
Reading at buffer position 13926
load-with-code-conversion("/home/szabolcs/.emacs"
"/home/szabolcs/.emacs" t t)
load("~/.emacs" t t)
#[nil "
Unfortunately I don't know emacs lisp syntax at all, and google-ing a
lot did not help. So if you have the patience to support a beginner
please help me out here. What did I miss? To require something for emacs?
I'm using ubuntu dapper,
>emacs-snapshot --version
GNU Emacs 22.0.50.1
Copyright (C) 2006 Free Software Foundation, Inc.
....
I my .emacs file I have:
...
....
(require 'ssl)
(require 'xml-rpc)
(autoload 'trac-wiki "trac-wiki" "Trac wiki editing entry-point." t)
(setq '("proj1"
:endpoint "http://www.some.host.org/foo/login/xmlrpc")
("proj2"
:endpoint "http://www.other.net/bar/login/xmlrpc")))
I have an sslv3/tlsv1 protectd https site, on a special port, and
somehow I cannot load it in emacs-w3m -- not even without
SSLVerifyClient, don't know if it will be a problem.
Thanks in advance:
Szab
It's invalid elisp code in syntax.
The variable name is required and also a paren is lacked.
And www.some.host.org is not exist...
For the first try, please set this in your .emacs
-----from-here-----
(autoload 'trac-wiki "trac-wiki" "Trac wiki editing entry-point." t)
(setq trac-projects
'(("Emacs-Trac-Wiki"
:endpoint "http://www.meadowy.org/~gotoh/projects/trac-wiki/xmlrpc")))
-----until-here-----
Then access to the site. Can you get working?
# Anonymous XML-RPC access is allowed on Trac-wiki site.
# So you can do editing, diffing, etc. except commit on this site.
> I have an sslv3/tlsv1 protectd https site, on a special port, and
> somehow I cannot load it in emacs-w3m -- not even without
> SSLVerifyClient, don't know if it will be a problem.
emacs-w3m is not used until previewing.
So it not the problem.
Good lack!
--
Shun-ichi GOTO
So, now I'm trying to reach our trac:
http://trac.our.site:5353/login/xmlrpc -- that works like a charm, even
with authentication.
But when I turn on SSL in apache and update the url
(https://our.site.hu:5353/login/xmlrpc) I get the following error:
progn: Opening output file: no such file or directory,
/home/szabolcs/.emacs.d/url/exec_ssl_quietly
I see in ssl.el that it should be an ssl wrapper script, but have no
idea what exactly. Even on google found 2 occurrences of this string. So
got blocked here again. I have openssl installed, and in the path, too.
I tried to apply the patch for windows (I'm on linux though) but no luck.
By the way, the lines breakes in edited pages are seen as "^M"
characters, can it be changed somehow?
Thanks:
OK,
> But when I turn on SSL in apache and update the url
> (https://our.site.hu:5353/login/xmlrpc) I get the following error:
>
> progn: Opening output file: no such file or directory,
> /home/szabolcs/.emacs.d/url/exec_ssl_quietly
Ah, maybe the directory ~/.emacs.d/url/ is not exist.
Create it then try again.
> By the way, the lines breakes in edited pages are seen as "^M"
> characters, can it be changed somehow?
Humm, another issue. I filed as ticket.
http://www.meadowy.org/~gotoh/projects/trac-wiki/ticket/11#preview
It can be fix, but it cannot be reproduced in my environment.
Question:
* Is it occured in trac-wiki's page?
* Is it occured unchanged system default pages?
(e.g. WikiFormat, CamelCase, etc.)
--
Shun-ichi GOTO
On 11/6/06, Parragh Szabolcs <par...@nir.hu> wrote:Then access to the site. Can you get working?Yeah, thanks, that works:)OK,But when I turn on SSL in apache and update the url (https://our.site.hu:5353/login/xmlrpc) I get the following error: progn: Opening output file: no such file or directory, /home/szabolcs/.emacs.d/url/exec_ssl_quietlyAh, maybe the directory ~/.emacs.d/url/ is not exist. Create it then try again.
It can be fix, but it cannot be reproduced in my environment. Question: * Is it occured in trac-wiki's page? * Is it occured unchanged system default pages? (e.g. WikiFormat, CamelCase, etc.)
Shun-ichi GOTO írta:
Ah, maybe the directory ~/.emacs.d/url/ is not exist. Create it then try again.
I created it, now I get:
Loading /usr/share/emacs/22.0.50/site-lisp/trac-wiki.el (source)...done
Contacting host: meta.nir.hu:5353
Loading url-cache...done
url-http-parse-response: Trying to parse HTTP response code in odd buffer: *http meta.nir.hu:5353*
Stops here.
On 11/6/06, Parragh Szabolcs <par...@nir.hu> wrote:
> I created it, now I get:
>
> Loading /usr/share/emacs/22.0.50/site-lisp/trac-wiki.el
> (source)...done
> Contacting host: meta.nir.hu:5353
> Loading url-cache...done
> url-http-parse-response: Trying to parse HTTP response code in odd buffer:
> *http meta.nir.hu:5353*
>
> Stops here.
I remember the message is seen before.
Please try latest code which can get from:
http://www.meadowy.org/~gotoh/projects/trac-wiki/browser/trac-wiki.el?format=raw
Is this problem occured with latest code?
> The control-m characters can be seen on both the original default pages and
> the pages in our wiki that we created in firefox. They oddly cannot be seen
> on your trac WikiStart page, but are there on the other defaults.
I cannot reproduce this issue yet on both windows and unix.
But I guess it might be process coding issue.
I'll continue checking.
--
Shun-ichi GOTO
I created it, now I get: Loading /usr/share/emacs/22.0.50/site-lisp/trac-wiki.el (source)...done Contacting host: meta.nir.hu:5353 Loading url-cache...done url-http-parse-response: Trying to parse HTTP response code in odd buffer: *http meta.nir.hu:5353* Stops here.I remember the message is seen before. Please try latest code which can get from: http://www.meadowy.org/~gotoh/projects/trac-wiki/browser/trac-wiki.el?format=raw Is this problem occured with latest code?
The control-m characters can be seen on both the original default pages and the pages in our wiki that we created in firefox. They oddly cannot be seen on your trac WikiStart page, but are there on the other defaults.I cannot reproduce this issue yet on both windows and unix. But I guess it might be process coding issue. I'll continue checking.
This message will be appeared when url function cannot detect end of
header in http/https response. It seems openssl (wrapper) did not
run or dead.
Are you sure OpenSSH is installed?
And it is in your PATH?
If you have it, try this command.
openssl s_client -quiet -host meta.nir.hu -port 5353 -verify 0
-CApath ~/.w3/certs
You will see some lines and meets "verify returns:1".
Then please enter "GET / HTTP1.0" then hit RETURN twice.
Http response will comes. Can you get?
# I assume target host is meta.nir.hu:5353
And please check you can access to your https url by usual browser.
https://meta.nir.hu:5353/xxxxxxx/xmlrpc address (used in trac-projects
setting) shows XML-PRC method list visualy.
Can you see it? If not, you should check server side configuration.
And also set to debug mode by (setq url-debug t)
and view (and send) debug output in buffer "*URL-DEBUG*".
Btw, there are some tickets related with https.
Do you checked them?
http://trac.edgewall.org/query?status=new&status=assigned&status=reopened&summary=%7Ehttps&order=priority
--
Shun-ichi GOTO
The problem lies here, I get:
verify depth is 0
depth=1 /C=HU/L=Budapest/O=NiR Informatikai Megold\xE1sok Kft./OU=NiR
Certificate Authority/CN=NiR Kft CA/emailAddress=hostm...@ir.hu
verify error:num=19:self signed certificate in certificate chain
verify return:0
10512:error:14090086:SSL
routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify
failed:s3_clnt.c:894:
Well, I'm not an ssl guru, so I just google-d a lot, but could-not
figure out what that means.
I can get through with "-verify 1" though, and get the HTTP response, too.
I guess I haven't set up the server certificate on the client side, but
that's just a guess, and if so I don't know how to do it. Sorry if the
support gets too extensive for you, but these are the limits of my
current understanding of these technics.
And yes, I can see the the xmlrpc function list, the whole trac-wiki
thing works without ssl. And I can access the https site with firefox,
but not with emacs.
Bye:
Szab
The openssl option "-verify 1" is used by setting variable:
(setq ssl-cetificate-verification-policy 1)
How about it?
# Of course you can set variable via M-x customize-group<RET>ssl<RET>.
--
Shun-ichi GOTO
Reading... done.
Contacting host: meta.nir.hu:5353
Reading [text/html;charset=utf-8]... 21k of 21k (100%)
Reading... done.
Contacting host: meta.nir.hu:5353
Reading [text/xml]... 8 bytes of 3k (0%)
cond: No methodResponse found
Reading [text/xml]... 3k of 3k (100%)
Reading... done.
error in process filter: Selecting deleted buffer [4 times]
error in process sentinel: Selecting deleted buffer [2 times]
Or the other:
Reading... done.
Contacting host: meta.nir.hu:5353
Reading [text/html;charset=utf-8]... 21k of 21k (100%)
Reading... done.
Reading [text/html;charset=utf-8]... 21k of 21k (100%)
Reading... done.
Contacting host: meta.nir.hu:5353
Reading [text/xml]... 8 bytes of 3k (0%)
cond: No methodResponse found
Reading [text/xml]... 3k of 3k (100%)
Reading... done.
Oddly: I get one of these with same settings, so don't know what makes
the difference.
OK, but I feel this is not the topic in trac-users ML...
Please send mail direct to me in next reply,
# if nobody else interested in this topic.
> Oddly: I get one of these with same settings, so don't know what makes
> the difference.
Mayby callback handling issue, but I cannot reproduce.
Please eval following line and try again.
(defalias 'trac-rpc-call 'trac-rpc-call-simple)
Is it effects?
Btw, I'm using Emacs 22.0.90 current (CVS HEAD).
What are you using? Cvs Head? 22.0.50 tarball?
22.0.90 tarball?
Url package (and other elisps) is oftenly
changed in recent emacs, so the behavour is very complex...
# and xml-rpc is not adapted for recent url code...
--
Shun-ichi GOTO