From dcl441-bugs at yahoo.com Wed Jun 3 03:13:08 2009 From: dcl441-bugs at yahoo.com (Daniel Clemente) Date: Wed, 03 Jun 2009 12:13:08 +0200 Subject: [Conkeror] For those who miss the blackened theme References: <8763i4dwzn.fsf@earthlink.net> <20090320163842.GI3980@sym.noone.org> <87ljqy4itk.fsf@yahoo.com> <873acbpkar.fsf_-_@CPU107.opentrends.net> Message-ID: <87k53tzkuj.fsf@CPU107.opentrends.net> El dc, abr 15 2009, Nicholas A. Zigarovich va escriure: > No need to run an old version. Conkeror still supports themes, but > only includes the default. > > 1. Check out: git clone git://repo.or.cz/conkeror.git > 2. Go back in time: cd conkeror && git checkout > a38b3a3630ebf85a403207b37220cee9790d3a82 > 3. Copy styles/blackened somewhere: cp -r styles/blackened /path/to/somewhere > 4. Return to the present: git checkout master > 5. Add the following to ~/.conkerorrc: > > theme_load_paths.push("/path/to/somewhere"); > theme_load("blackened"); > > After restarting, conkeror should be blackened. > These instructions are now in: http://conkeror.org/Appearance#Howtorestorethe.22blackened.22theme From joe_f at verizon.net Fri Jun 5 09:07:12 2009 From: joe_f at verizon.net (Joe Fineman) Date: Fri, 05 Jun 2009 12:07:12 -0400 Subject: [Conkeror] Willing to pay for upgrade Message-ID: It would improve my quality of life if edit-current-field-in-external-editor worked under Windows XP, sufficiently that I am willing to pay someone who can make it happen. I will welcome bids. -- --- Joe Fineman joe_f at verizon.net ||: The ability to enjoy oneself at a low level of competence is :|| ||: a precious resource for happiness. :|| From nicktastic at gmail.com Fri Jun 5 11:16:10 2009 From: nicktastic at gmail.com (Nicholas A. Zigarovich) Date: Fri, 5 Jun 2009 14:16:10 -0400 Subject: [Conkeror] Willing to pay for upgrade In-Reply-To: References: Message-ID: The spawn helper needs to be ported to Windows for this to happen. Someone was recently working on this but didn't have much luck. Also, I think they depended on cygwin. The next major release of xulrunner will add features to the process API which will allow us to eliminate the spawn helper, making edit-current-field-in-external-editor work on all platforms. I suggest waiting it out as porting the spawn helper at this time would be a waste of effort. Cheers, - Nick On Fri, Jun 5, 2009 at 12:07 PM, Joe Fineman wrote: > It would improve my quality of life if > edit-current-field-in-external-editor worked under Windows XP, > sufficiently that I am willing to pay someone who can make it happen. > I will welcome bids. > -- > --- ?Joe Fineman ? ?joe_f at verizon.net > > ||: ?The ability to enjoy oneself at a low level of competence is ?:|| > ||: ?a precious resource for happiness. ? ? ? ? ? ? ? ? ? ? ? ? ? ?:|| > _______________________________________________ > Conkeror mailing list > Conkeror at mozdev.org > https://www.mozdev.org/mailman/listinfo/conkeror > From joe_f at verizon.net Fri Jun 5 12:28:07 2009 From: joe_f at verizon.net (Joe Fineman) Date: Fri, 05 Jun 2009 15:28:07 -0400 Subject: [Conkeror] Willing to pay for upgrade In-Reply-To: (conkeror-request@mozdev.org's message of "Fri\, 05 Jun 2009 12\:00\:07 -0700") References: Message-ID: conkeror-request at mozdev.org, in the person of Nicholas A. Zigarovich, writes: > The spawn helper needs to be ported to Windows for this (scil. > edit-current-field-in-external-editor under Windows XP) to happen. > Someone was recently working on this but didn't have much luck. > Also, I think they depended on cygwin. Well, so do I. %^) > The next major release of xulrunner will add features to the process > API which will allow us to eliminate the spawn helper, making > edit-current-field-in-external-editor work on all platforms. > I suggest waiting it out as porting the spawn helper at this time > would be a waste of effort. Thank you for your advice & the good news. -- --- Joe Fineman joe_f at verizon.net ||: Illicitude enhances felicificity. :|| From jjfoerch at earthlink.net Fri Jun 5 13:41:32 2009 From: jjfoerch at earthlink.net (John J Foerch) Date: Fri, 05 Jun 2009 16:41:32 -0400 Subject: [Conkeror] breaking changes Message-ID: <87iqjawgzn.fsf@earthlink.net> Hi all, I just pushed a few new features as well as some breaking changes. Updates to your rc may be necessary. First the list of breaking changes: * The command line switch `-uu` was renamed to `+u`. Mozilla consumes `-u`, which is our first choice for this purpose. `+u` is a more aesthetic alternative to `-uu`. As a side-effect, the `+` character is now a synonym for `-` with all non-special command-line switches (everything but -q and -E). * The key bindings `<<` and `>>` are now simply `<` and `>` to have a more responsive UI. * page-mode keymaps are now declared in the `define_page_mode` form with a new keyword argument, `$keymaps`. See http://conkeror.org/WritingPageModes for more information about the new style. * `default_directory` and `set_default_directory` have been removed and replaced by the variable `cwd`. The value of cwd must be an nsILocalFile object. For practical purposes, this means that setting cwd in your rc will now look something like this: cwd = make_file("/foo/bar/"); * buffer-local variables are now indexed by `buffer.local.foo`. page-local variables are indexed by `buffer.page.local.foo`. Within an interactive command, the top of the locality stack is referred to by `I.local.foo`. * The command `send-ret` was removed since it is redundant of the module `global-overlay-keymap`. If you used it, do this instead: require("global-overlay-keymap.js"); define_key_alias("C-m", "return"); * Buffer-local cwd is no longer set or inherited automatically. The following code in your rc will bring back the old behavior: /** * This bit of code is how auto-cwd and cwd-inheritance can be done. * Auto-cwd means that buffers created from a command-line action will * get their cwd set to the working directory of the command-line * invocation. Cwd-inheritance means that new buffers will inherit * their cwd from the buffer that caused them to be created. For * auto-cwd, buffer.opener will be `instanceof interactive_context'. * For cwd-inheritance, buffer.opener will be `instanceof buffer'. */ function cwd_setup (buffer) { if (buffer.opener && buffer.opener.local) { if (buffer.opener.local.hasOwnProperty('cwd')) { buffer.local.cwd = buffer.opener.local.cwd; } } } add_hook('create_buffer_hook', cwd_setup); * `download-cancel` is now bound to `d` instead of `C-g`, and it asks for confirmation. The `d` key was chosen based on similar bindings in dired-mode and other modes in Emacs. `C-g` was cited by users as confusing in this situation, and an additional reason for removing the binding is that it is not ''forward-compatible'' with our desire to one day have download buffers that may show more than one download. And here are the new features: * undefine_key: takes a keymap and a key, and unbinds that key. * default browser-object can now be overridden in define_key. This means you can do cool things like: define_key(some_keymap, some_key, some_command, $browser_object=some_browser_object); * download buffer display fixed for narrow windows. * download-cancel prompts for confirmation. the binding is `d'. Thanks. If you have any trouble updating your rc, just flag me down by email or on our irc channel. -- John Foerch From gegendosenfleisch at gmail.com Fri Jun 5 13:44:20 2009 From: gegendosenfleisch at gmail.com (Memnon Anon) Date: Fri, 5 Jun 2009 20:44:20 +0000 (UTC) Subject: [Conkeror] M-n/M-p open buffer list? Message-ID: <87my8me7hi.fsf@mean.albasani.net> Hi! Conkeror works great, thank you! I just had a look at the tip section of the wiki, lots of usefull stuff there :). I really like to use M-n/p to cycle through buffers. I just wonder if its possible to modify it so that the buffer list is shown like when using C-x b. I am using the debian testing version (git 090223-1), sorry for the noise if this should be possible alread. Memnon From abe at deuxchevaux.org Tue Jun 9 01:52:50 2009 From: abe at deuxchevaux.org (Axel Beckert) Date: Tue, 9 Jun 2009 10:52:50 +0200 Subject: [Conkeror] Article about Conkeror in the current issue of the Linux Journal Message-ID: <20090609085250.GI3980@sym.noone.org> Hi, my boss has a Linux Journal subscription and today he showed me an article in the current (July 2009) issue with the comment "I guess you know this software". :-) The article named "The Conkeror Web Browser Conquers Small Screens" by David A. Hardning is four pages (72-75) long and focusses on usage and features, covers installation, overall very positive, and even doesn't say any word about the ambiguous pronounciation of the name. (Just have scanned over the article and read introduction and conclusion yet, so I'm not 100% sure, but I looked especially for this topic. :-) If you have a subscription but not received the issue yet (delivery is said to lag in the US), you can read the article online here: http://www.linuxjournal.com/article/10387 Regards, Axel -- Axel Beckert - abe at deuxchevaux.org, abe at noone.org - http://noone.org/abe/ From deniz.a.m.dogan at gmail.com Tue Jun 9 05:13:27 2009 From: deniz.a.m.dogan at gmail.com (Deniz Dogan) Date: Tue, 9 Jun 2009 14:13:27 +0200 Subject: [Conkeror] Article about Conkeror in the current issue of the Linux Journal In-Reply-To: <20090609085250.GI3980@sym.noone.org> References: <20090609085250.GI3980@sym.noone.org> Message-ID: <7b501d5c0906090513o344d3e3bue1d63836008a3173@mail.gmail.com> 2009/6/9 Axel Beckert : > Hi, > > my boss has a Linux Journal subscription and today he showed me an > article in the current (July 2009) issue with the comment "I guess you > know this software". :-) > > The article named "The Conkeror Web Browser Conquers Small Screens" by > David A. Hardning is four pages (72-75) long and focusses on usage and > features, covers installation, overall very positive, and even doesn't > say any word about the ambiguous pronounciation of the name. (Just > have scanned over the article and read introduction and conclusion > yet, so I'm not 100% sure, but I looked especially for this topic. :-) > > If you have a subscription but not received the issue yet (delivery is > said to lag in the US), you can read the article online here: > > http://www.linuxjournal.com/article/10387 > > ? ? ? ? ? ? ? ?Regards, Axel > -- > Axel Beckert - abe at deuxchevaux.org, abe at noone.org - http://noone.org/abe/ > _______________________________________________ > Conkeror mailing list > Conkeror at mozdev.org > https://www.mozdev.org/mailman/listinfo/conkeror > Cool! However: "The article you are trying to access requires you to be a registered Linux Journal print or digital subscriber. Click HERE to login or SUBSCRIBE NOW for instant access." Yuck! -- Deniz Dogan From abe at deuxchevaux.org Tue Jun 9 05:22:11 2009 From: abe at deuxchevaux.org (Axel Beckert) Date: Tue, 9 Jun 2009 14:22:11 +0200 Subject: [Conkeror] Article about Conkeror in the current issue of the Linux Journal In-Reply-To: <7b501d5c0906090513o344d3e3bue1d63836008a3173@mail.gmail.com> References: <20090609085250.GI3980@sym.noone.org> <7b501d5c0906090513o344d3e3bue1d63836008a3173@mail.gmail.com> Message-ID: <20090609122211.GL3980@sym.noone.org> Hi, On Tue, Jun 09, 2009 at 02:13:27PM +0200, Deniz Dogan wrote: > > If you have a subscription but not received the issue yet (delivery is ^^^^^^^^^^^^^^^^^^^^^^^^^^ > > said to lag in the US), you can read the article online here: > > > > http://www.linuxjournal.com/article/10387 > > Cool! However: "The article you are trying to access requires you to > be a registered Linux Journal print or digital subscriber. Yeah, that's as I wrote in my mail. (See above) IIRC those articles go public after some time. At least I could click through all articles of the May 2009 issue. Regards, Axel -- Axel Beckert - abe at deuxchevaux.org, abe at noone.org - http://noone.org/abe/ From deniz.a.m.dogan at gmail.com Tue Jun 9 05:27:44 2009 From: deniz.a.m.dogan at gmail.com (Deniz Dogan) Date: Tue, 9 Jun 2009 14:27:44 +0200 Subject: [Conkeror] Article about Conkeror in the current issue of the Linux Journal In-Reply-To: <20090609122211.GL3980@sym.noone.org> References: <20090609085250.GI3980@sym.noone.org> <7b501d5c0906090513o344d3e3bue1d63836008a3173@mail.gmail.com> <20090609122211.GL3980@sym.noone.org> Message-ID: <7b501d5c0906090527j2eae8472i718dff91c0485e27@mail.gmail.com> 2009/6/9 Axel Beckert : > Hi, > > On Tue, Jun 09, 2009 at 02:13:27PM +0200, Deniz Dogan wrote: >> > If you have a subscription but not received the issue yet (delivery is > ? ?^^^^^^^^^^^^^^^^^^^^^^^^^^ >> > said to lag in the US), you can read the article online here: >> > >> > http://www.linuxjournal.com/article/10387 >> >> Cool! However: "The article you are trying to access requires you to >> be a registered Linux Journal print or digital subscriber. > > Yeah, that's as I wrote in my mail. (See above) > > IIRC those articles go public after some time. At least I could click > through all articles of the May 2009 issue. Oh, right... I got the impression that you could read it online if your paper version hasn't arrived yet. -- Deniz Dogan From abe at deuxchevaux.org Tue Jun 9 05:31:31 2009 From: abe at deuxchevaux.org (Axel Beckert) Date: Tue, 9 Jun 2009 14:31:31 +0200 Subject: [Conkeror] Article about Conkeror in the current issue of the Linux Journal In-Reply-To: <7b501d5c0906090527j2eae8472i718dff91c0485e27@mail.gmail.com> References: <20090609085250.GI3980@sym.noone.org> <7b501d5c0906090513o344d3e3bue1d63836008a3173@mail.gmail.com> <20090609122211.GL3980@sym.noone.org> <7b501d5c0906090527j2eae8472i718dff91c0485e27@mail.gmail.com> Message-ID: <20090609123131.GM3980@sym.noone.org> On Tue, Jun 09, 2009 at 02:27:44PM +0200, Deniz Dogan wrote: > Oh, right... I got the impression that you could read it online if > your paper version hasn't arrived yet. That's as I meant it. AFAIK everyone who has a subscription of the paper version also has a subscription to the website and should be able to access all articles online, too. You probably get the login and password with the subscription confirmation or bill. Regards, Axel -- Axel Beckert - abe at deuxchevaux.org, abe at noone.org - http://noone.org/abe/ From abe at deuxchevaux.org Tue Jun 9 05:48:44 2009 From: abe at deuxchevaux.org (Axel Beckert) Date: Tue, 9 Jun 2009 14:48:44 +0200 Subject: [Conkeror] Willing to pay for upgrade In-Reply-To: References: Message-ID: <20090609124844.GN3980@sym.noone.org> On Fri, Jun 05, 2009 at 02:16:10PM -0400, Nicholas A. Zigarovich wrote: > The next major release of xulrunner will add features to the process > API which will allow us to eliminate the spawn helper, making > edit-current-field-in-external-editor work on all platforms. Cool. This also means that as soon as this is available in conkeror and the new xulrunner release is available in Debian, I can drop the conkeror-spawn-process-helper package. Regards, Axel -- Axel Beckert - abe at deuxchevaux.org, abe at noone.org - http://noone.org/abe/ From abe at deuxchevaux.org Tue Jun 9 05:55:46 2009 From: abe at deuxchevaux.org (Axel Beckert) Date: Tue, 9 Jun 2009 14:55:46 +0200 Subject: [Conkeror] breaking changes In-Reply-To: <87iqjawgzn.fsf@earthlink.net> References: <87iqjawgzn.fsf@earthlink.net> Message-ID: <20090609125546.GO3980@sym.noone.org> Hi, On Fri, Jun 05, 2009 at 04:41:32PM -0400, John J Foerch wrote: > * The key bindings `<<` and `>>` are now simply `<` and `>` to have > a more responsive UI. That sounds great. I often felt as if I had to hit ">" three times to get the effect two times should do. I use it quite often, especially when reading online documentation. BTW: What about "[[" and "]]"? Don't those keybindings fall into the same category? Regards, Axel -- Axel Beckert - abe at deuxchevaux.org, abe at noone.org - http://noone.org/abe/ From deniz.a.m.dogan at gmail.com Tue Jun 9 06:14:39 2009 From: deniz.a.m.dogan at gmail.com (Deniz Dogan) Date: Tue, 9 Jun 2009 15:14:39 +0200 Subject: [Conkeror] Article about Conkeror in the current issue of the Linux Journal In-Reply-To: <20090609123131.GM3980@sym.noone.org> References: <20090609085250.GI3980@sym.noone.org> <7b501d5c0906090513o344d3e3bue1d63836008a3173@mail.gmail.com> <20090609122211.GL3980@sym.noone.org> <7b501d5c0906090527j2eae8472i718dff91c0485e27@mail.gmail.com> <20090609123131.GM3980@sym.noone.org> Message-ID: <7b501d5c0906090614q21fed55i1fee4a4cf8e3c9c6@mail.gmail.com> 2009/6/9 Axel Beckert : > On Tue, Jun 09, 2009 at 02:27:44PM +0200, Deniz Dogan wrote: >> Oh, right... I got the impression that you could read it online if >> your paper version hasn't arrived yet. > > That's as I meant it. Ugh, what I meant was that anyone could read it online. I'm just digging a deeper and deeper hole it seems. -- Deniz Dogan From nicktastic at gmail.com Tue Jun 16 14:12:50 2009 From: nicktastic at gmail.com (Nicholas A. Zigarovich) Date: Tue, 16 Jun 2009 17:12:50 -0400 Subject: [Conkeror] Sessions Message-ID: The session module has been merged into master. Documentation is available here: http://conkeror.org/Sessions To auto-load the last auto-saved session when conkeror starts, add the following to your rc: require("session.js"); session_auto_save_auto_load = true; Users of the sessions branch, note that setting the variable is a recent change which you will have to add to your rc. Cheers, - Nick From burin080 at planet.nl Wed Jun 17 11:37:40 2009 From: burin080 at planet.nl (burin080 at planet.nl) Date: Wed, 17 Jun 2009 20:37:40 +0200 Subject: [Conkeror] [PATCH] Fixed conkeror-spawn-helper.c for FreeBSD. Message-ID: <0F664C60749B844685F0E69BD2EEF08503DC4204@CPEXBE-EML21.kpnsp.local> Hello list, I had to add this include directive to compile the conkeror-spawn-helper under FreeBSD 7.2. Conkeror is running wonderfully and edit-current-field-in-external-editor now works as it did under Linux. Cheers, Ricardo Buring --- conkeror-spawn-helper.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/conkeror-spawn-helper.c b/conkeror-spawn-helper.c index dcad86d..d3ffbc4 100644 --- a/conkeror-spawn-helper.c +++ b/conkeror-spawn-helper.c @@ -18,6 +18,7 @@ #include #include #include +#include void fail(const char *msg) { fprintf(stderr, "%s\n", msg); -- 1.6.3.2 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeremy at jeremyms.com Wed Jun 17 19:38:35 2009 From: jeremy at jeremyms.com (Jeremy Maitin-Shepard) Date: Wed, 17 Jun 2009 19:38:35 -0700 Subject: [Conkeror] [PATCH] Fixed conkeror-spawn-helper.c for FreeBSD. In-Reply-To: <0F664C60749B844685F0E69BD2EEF08503DC4204@CPEXBE-EML21.kpnsp.local> (burin's message of "Wed, 17 Jun 2009 20:37:40 +0200") References: <0F664C60749B844685F0E69BD2EEF08503DC4204@CPEXBE-EML21.kpnsp.local> Message-ID: <87prd2mfkk.fsf@jeremyms.com> burin080 at planet.nl writes: > Hello list, > I had to add this include directive to compile the conkeror-spawn-helper under > FreeBSD 7.2. Conkeror is running wonderfully and > edit-current-field-in-external-editor now works as it did under Linux. Thanks for the fix. I'm curious: what error do you get without this patch? -- Jeremy Maitin-Shepard From burin080 at planet.nl Thu Jun 18 02:06:08 2009 From: burin080 at planet.nl (burin080 at planet.nl) Date: Thu, 18 Jun 2009 11:06:08 +0200 Subject: [Conkeror] [PATCH] Fixed conkeror-spawn-helper.c for FreeBSD. Message-ID: <0F664C60749B844685F0E69BD2EEF08503DC4205@CPEXBE-EML21.kpnsp.local> > Thanks for the fix. I'm curious: what error do you get without this > patch? --- conkeror-spawn-helper.c: In function 'main': conkeror-spawn-helper.c:234: error: storage size of 'file_lim' isn't known conkeror-spawn-helper.c:236: error: 'RLIMIT_NOFILE' undeclared (first use in this function) conkeror-spawn-helper.c:236: error: (Each undeclared identifier is reported only once conkeror-spawn-helper.c:236: error: for each function it appears in.) *** Error code 1 --- The header file defines rlimit related structs, functions and constants. It's not being #included on FreeBSD. Digging deeper, I have found the reason for this: On Slackware: $ grep -n '#include ' /usr/include/sys/wait.h 32:#include On FreeBSD: $ grep -n '#include ' /usr/include/sys/wait.h (nothing) My patch #includes the header file manually instead of relying on to do it. Cheers, Ricardo Buring -------------- next part -------------- An HTML attachment was scrubbed... URL: From abe at deuxchevaux.org Thu Jun 18 03:37:49 2009 From: abe at deuxchevaux.org (Axel Beckert) Date: Thu, 18 Jun 2009 12:37:49 +0200 Subject: [Conkeror] [PATCH] Fixed conkeror-spawn-helper.c for FreeBSD. In-Reply-To: <0F664C60749B844685F0E69BD2EEF08503DC4205@CPEXBE-EML21.kpnsp.local> References: <87prd2mfkk.fsf@jeremyms.com> <0F664C60749B844685F0E69BD2EEF08503DC4205@CPEXBE-EML21.kpnsp.local> Message-ID: <20090618103749.GN3980@sym.noone.org> Hi, On Thu, Jun 18, 2009 at 11:06:08AM +0200, burin080 at planet.nl wrote: > The header file defines rlimit related structs, functions and constants. It's not being #included on FreeBSD. > > Digging deeper, I have found the reason for this: > > On Slackware: > $ grep -n '#include ' /usr/include/sys/wait.h > 32:#include > > On FreeBSD: > $ grep -n '#include ' /usr/include/sys/wait.h > (nothing) So it shouldn't hurt to included it on Linux, too. Just tested it on Debian Lenny. As expected, it still compiles fine on Linux. I'll commit that change soon if nobody else does or objects. Regards, Axel -- Axel Beckert - abe at deuxchevaux.org, abe at noone.org - http://noone.org/abe/ From lmi at ift.uni.wroc.pl Thu Jun 18 05:01:43 2009 From: lmi at ift.uni.wroc.pl (=?utf-8?Q?=C5=81ukasz?= Michalik) Date: Thu, 18 Jun 2009 14:01:43 +0200 Subject: [Conkeror] Article about Conkeror in the current issue of the Linux Journal In-Reply-To: <20090609085250.GI3980@sym.noone.org> References: <20090609085250.GI3980@sym.noone.org> Message-ID: <20090618120141.GE6716@havoc.ift.uni.wroc.pl> On 10:52 2009-06-09 +0200, Axel Beckert wrote: > > If you have a subscription but not received the issue yet (delivery is > said to lag in the US), you can read the article online here: > > http://www.linuxjournal.com/article/10387 > > Regards, Axel To those who wanted to read it, but could not -- the article is now world readable. -- Pozdrawiam, ?M -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: not available URL: From jeremy at jeremyms.com Thu Jun 18 12:30:00 2009 From: jeremy at jeremyms.com (Jeremy Maitin-Shepard) Date: Thu, 18 Jun 2009 12:30:00 -0700 Subject: [Conkeror] [PATCH] Fixed conkeror-spawn-helper.c for FreeBSD. In-Reply-To: <0F664C60749B844685F0E69BD2EEF08503DC4205@CPEXBE-EML21.kpnsp.local> (burin's message of "Thu, 18 Jun 2009 11:06:08 +0200") References: <0F664C60749B844685F0E69BD2EEF08503DC4205@CPEXBE-EML21.kpnsp.local> Message-ID: <87eithmjbb.fsf@jeremyms.com> burin080 at planet.nl writes: >> Thanks for the fix. I'm curious: what error do you get without this >> patch? > --- > conkeror-spawn-helper.c: In function 'main': > conkeror-spawn-helper.c:234: error: storage size of 'file_lim' isn't known > conkeror-spawn-helper.c:236: error: 'RLIMIT_NOFILE' undeclared (first use in > this function) > conkeror-spawn-helper.c:236: error: (Each undeclared identifier is reported only > once > conkeror-spawn-helper.c:236: error: for each function it appears in.) > *** Error code 1 > --- Thanks. I had forgotten that it uses getrlimit to determine the max. number of file descriptors (so that it can close all file descriptors) in the case that the proc filesystem is unavailable. -- Jeremy Maitin-Shepard From abe at deuxchevaux.org Thu Jun 18 12:56:36 2009 From: abe at deuxchevaux.org (Axel Beckert) Date: Thu, 18 Jun 2009 21:56:36 +0200 Subject: [Conkeror] [PATCH] Fixed conkeror-spawn-helper.c for FreeBSD. In-Reply-To: <0F664C60749B844685F0E69BD2EEF08503DC4204@CPEXBE-EML21.kpnsp.local> References: <0F664C60749B844685F0E69BD2EEF08503DC4204@CPEXBE-EML21.kpnsp.local> Message-ID: <20090618195636.GO3980@sym.noone.org> Hi, On Wed, Jun 17, 2009 at 08:37:40PM +0200, burin080 at planet.nl wrote: > I had to add this include directive to compile the > conkeror-spawn-helper under FreeBSD 7.2. Conkeror is running > wonderfully and edit-current-field-in-external-editor now works as > it did under Linux. Thanks! Patch is committed: http://repo.or.cz/w/conkeror.git?a=commit;h=2237db5e9cbf36065c5db1c17d2da9f2b3fa788c Regards, Axel -- Axel Beckert - abe at deuxchevaux.org, abe at noone.org - http://noone.org/abe/ From burin080 at planet.nl Fri Jun 19 09:57:33 2009 From: burin080 at planet.nl (burin080 at planet.nl) Date: Fri, 19 Jun 2009 18:57:33 +0200 Subject: [Conkeror] [PATCH] Fixed conkeror-spawn-helper.c for FreeBSD. Message-ID: <0F664C60749B844685F0E69BD2EEF08503DC420E@CPEXBE-EML21.kpnsp.local> > how did you install xulrunner 1.9 on freebsd? there's the libxul port > but i can't seem to find the xulrunner binary (shell script) after > installing libxul and the xulrunner port is still at version 1.8. > > thanks for you time and help > toni I removed the www/xulrunner port and installed www/libxul. Files are installed to /usr/local/lib/libxul/. You can get xulrunner-stub (or whatever you need) from there. I'll add instructions for this to the Wiki later. Cheers, Ricardo Buring -------------- next part -------------- An HTML attachment was scrubbed... URL: From dcl441-bugs at yahoo.com Sat Jun 20 03:49:41 2009 From: dcl441-bugs at yahoo.com (Daniel Clemente) Date: Sat, 20 Jun 2009 12:49:41 +0200 Subject: [Conkeror] Sessions References: Message-ID: <87my83ji2i.fsf@gmail.com> El mar, jun 16 2009, Nicholas A. Zigarovich va escriure: > The session module has been merged into master. Documentation is available here: > > http://conkeror.org/Sessions Nice! The first time I ran it I got some errors about "_json is undefined" (session.js 128) but now it works very well, and makes using Conkeror easier. Thanks for this useful feature. -- Daniel PS: full log, in case it contains something useful. These errors went away by themselves. : ~ ; conkeror MozRepl: Listening... Console error: [JavaScript Error: "_session_auto_save_auto_load is not a function" {file: "chrome://conkeror/content/session.js" line: 311}] Category: chrome javascript TypeError: _json is undefined chrome://conkeror/content/session.js:128 session_write([object XPCWrappedNative_NoHelper],[object Object])@chrome://conkeror/content/session.js:128 session_auto_save_save([object Object])@chrome://conkeror/content/session.js:228 run_hooks([object Array],[object Object])@chrome://conkeror/content/hook.js:38 ([object Object])@chrome://conkeror/content/hook.js:159 ()@chrome://conkeror/content/buffer.js:157 content_buffer([object ChromeWindow],null,[object Object])@chrome://conkeror/content/content-buffer.js:109 ([object ChromeWindow],null)@chrome://conkeror/content/buffer.js:41 create_buffer([object ChromeWindow],(function (window, element) {return new type(window, element, args);}),1)@chrome://conkeror/content/buffer.js:467 browser_object_follow([object Object],1,[object Object])@chrome://conkeror/content/element.js:316 follow([object Object],1)@chrome://conkeror/content/element.js:351 _do_call([object Generator])@chrome://conkeror/content/coroutine.js:278 (" uoa")@chrome://conkeror/content/coroutine.js:410 exit_minibuffer([object ChromeWindow])@chrome://conkeror/content/minibuffer-read.js:431 ([object Object])@chrome://conkeror/content/minibuffer-read.js:435 call_interactively([object Object],"exit-minibuffer")@chrome://conkeror/content/interactive.js:140 keypress_handler([object KeyboardEvent])@chrome://conkeror/content/keyboard.js:539 Console error: [JavaScript Error: "_json is undefined" {file: "chrome://conkeror/content/session.js" line: 128}] Category: XPConnect JavaScript ? From artagnon at gmail.com Sat Jun 20 08:38:36 2009 From: artagnon at gmail.com (Ramkumar R) Date: Sat, 20 Jun 2009 21:08:36 +0530 Subject: [Conkeror] Breaking changes in 1.9.1 Message-ID: Hi, I just built myself a fresh Xulrunner from the hg tree release 1.9.1 HEAD today and found out that Conkeror is dumping lots of warnings to my terminal. nicktastic on #conkeror@ irc.freenode.net was testing it on older nightlies and figured that: 1. Some breaking changes have been made after his nightly. 2. My build is broken. In order to eliminate choice 2, I downloaded a recent (Jul 20) nightly from http://ftp.mozilla.org/pub/mozilla.org/xulrunner/nightly/latest-mozilla-1.9.1/xulrunner-1.9.1pre.en-US.linux-i686.tar.bz2 and tried it out. Same result. Some portions of the error log is attached with this email. Right now, nicktastic and I are trying to find the last known "good" commit after which the breaking changes were made in order to bisect and find the code that changed. This may very well be a false alarm, and we can only know for sure when we find the bad commit. Although the output is troubling, Conkeror "mostly works" with this build. I'm unable to exactly point out what is qualitatively wrong accurately, except for the fact that the minibuffer doesn't look like an input box anymore while accepting input. === [20:40]/opt/xulrunner-nightly: ./xulrunner ../conkeror/application.ini Console error: [JavaScript Warning: "reference to undefined property window[name]" {file: "chrome://conkeror/content/window.js" line: 210}] Category: chrome javascript Console error: [JavaScript Warning: "reference to undefined property this[hook_name]" {file: "chrome://conkeror/content/hook.js" line: 13}] Category: chrome javascript Console error: [JavaScript Warning: "reference to undefined property this[hook_name]" {file: "chrome://conkeror/content/hook.js" line: 13}] Category: chrome javascript Console error: [JavaScript Warning: "reference to undefined property this[hook_name]" {file: "chrome://conkeror/content/hook.js" line: 13}] Category: chrome javascript Console error: [JavaScript Warning: "reference to undefined property this[hook_name]" {file: "chrome://conkeror/content/hook.js" line: 13}] Category: chrome javascript Console error: [JavaScript Warning: "reference to undefined property window[name]" {file: "chrome://conkeror/content/window.js" line: 210}] Category: chrome javascript Console error: [JavaScript Warning: "reference to undefined property this[hook_name]" {file: "chrome://conkeror/content/hook.js" line: 13}] Category: chrome javascript Console error: [JavaScript Warning: "reference to undefined property window[name]" {file: "chrome://conkeror/content/window.js" line: 210}] Category: chrome javascript Console error: [JavaScript Warning: "reference to undefined property this[hook_name]" {file: "chrome://conkeror/content/hook.js" line: 13}] Category: chrome javascript Auto-save session file not found: /home/artagnon/.conkeror.mozdev.org/conkeror/47wfsm27.default/sessions/auto-save Console error: [JavaScript Warning: "reference to undefined property buffer.current_overlink" {file: "chrome://conkeror/content/content-buffer.js" line: 66}] Category: chrome javascript -- Artagnon (.com) From dcl441-bugs at yahoo.com Fri Jun 26 23:07:23 2009 From: dcl441-bugs at yahoo.com (Daniel Clemente) Date: Sat, 27 Jun 2009 08:07:23 +0200 Subject: [Conkeror] Sessions References: <87my83ji2i.fsf@gmail.com> Message-ID: <87bpoa6wh0.fsf@yahoo.com> > Console error: [JavaScript Error: "_json is undefined" {file: "chrome://conkeror/content/session.js" line: 128}] > Category: XPConnect JavaScript In fact I still get this each time I open a new buffer. And now session is not saved when I exit with C-x C-c. Debian GNU/Linux unstable ii xulrunner-1.9 1.9.0.11-1 XUL + XPCOM application runner Latest conkeror -- Daniel > > > PS: full log, in case it contains something useful. > > : ~ ; conkeror > MozRepl: Listening... > Console error: [JavaScript Error: "_session_auto_save_auto_load is not a function" {file: "chrome://conkeror/content/session.js" line: 311}] > Category: chrome javascript > TypeError: _json is undefined > chrome://conkeror/content/session.js:128 > session_write([object XPCWrappedNative_NoHelper],[object Object])@chrome://conkeror/content/session.js:128 > session_auto_save_save([object Object])@chrome://conkeror/content/session.js:228 > run_hooks([object Array],[object Object])@chrome://conkeror/content/hook.js:38 > ([object Object])@chrome://conkeror/content/hook.js:159 > ()@chrome://conkeror/content/buffer.js:157 > content_buffer([object ChromeWindow],null,[object Object])@chrome://conkeror/content/content-buffer.js:109 > ([object ChromeWindow],null)@chrome://conkeror/content/buffer.js:41 > create_buffer([object ChromeWindow],(function (window, element) {return new type(window, element, args);}),1)@chrome://conkeror/content/buffer.js:467 > browser_object_follow([object Object],1,[object Object])@chrome://conkeror/content/element.js:316 > follow([object Object],1)@chrome://conkeror/content/element.js:351 > _do_call([object Generator])@chrome://conkeror/content/coroutine.js:278 > (" uoa")@chrome://conkeror/content/coroutine.js:410 > exit_minibuffer([object ChromeWindow])@chrome://conkeror/content/minibuffer-read.js:431 > ([object Object])@chrome://conkeror/content/minibuffer-read.js:435 > call_interactively([object Object],"exit-minibuffer")@chrome://conkeror/content/interactive.js:140 > keypress_handler([object KeyboardEvent])@chrome://conkeror/content/keyboard.js:539 > Console error: [JavaScript Error: "_json is undefined" {file: "chrome://conkeror/content/session.js" line: 128}] > Category: XPConnect JavaScript > ? > > > _______________________________________________ > Conkeror mailing list > Conkeror at mozdev.org > https://www.mozdev.org/mailman/listinfo/conkeror From kettler at internode.on.net Sun Jun 28 07:31:07 2009 From: kettler at internode.on.net (David Kettler) Date: Mon, 29 Jun 2009 00:01:07 +0930 Subject: [Conkeror] [PATCH] Enable URL completion for both bookmarks and history (workaround). Message-ID: <1246199467-29851-1-git-send-email-kettler@internode.on.net> Previously, enabling url_completion_use_bookmarks when url_completion_use_history was enabled did not provide bookmarks in the completion list. The underlying issue is that QUERY_TYPE_UNIFIED is not implemented in xulrunner. This commit works around the problem by issuing two separate queries. That will lead to duplicates if the URL appears in both bookmarks and history, but I don't think that's an important issue. --- modules/history.js | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/history.js b/modules/history.js index 08007c6..9a235ef 100644 --- a/modules/history.js +++ b/modules/history.js @@ -66,10 +66,12 @@ function url_completer() { if(use_webjumps) { completers.push(webjump_completer()); } - if(use_history || use_bookmarks) { - completers.push(history_completer($use_history = use_history, - $use_bookmarks = use_bookmarks)); - } + /* Do queries separately (which can lead to duplicates). The + * queries can be combined when QUERY_TYPE_UNIFIED is implemented. */ + if (use_bookmarks) + completers.push(history_completer($use_bookmarks = true)); + if (use_history) + completers.push(history_completer($use_history = true)); return merge_completers(completers); } -- 1.6.3.1 From kettler at internode.on.net Sun Jun 28 07:34:49 2009 From: kettler at internode.on.net (David Kettler) Date: Mon, 29 Jun 2009 00:04:49 +0930 Subject: [Conkeror] [PATCH v2] index-webjump: New module to define webjumps for index pages. Message-ID: <1246199689-30034-1-git-send-email-kettler@internode.on.net> A webjump to access URLs referenced from an index page can be defined using define_xpath_webjump. An xpath expression is used to extract the indexed URLs and the anchor text; this provides completion for the webjump. The completion must be enabled using webjump-get-index once for each index webjump. This module also subsumes define_gitweb_summary_webjump, which results in changes to how gitweb webjumps are set up. --- The following features are added since version 1 of this patch: $description, use of html tidy, index_webjump_try_xpath. Also there's further description and examples below. This patch only shows the new index-webjumps.js module. The eventual commit will also remove the existing gitweb-webjumps.js module. Conkeror wiki pages will also be updated as follows. = Writing Webjumps = == Index webjumps == Index webjumps provide convenient access to a set of web pages that are indexed (referenced) from another page. Two kinds are provided; xpath webjumps and gitweb summary webjumps. Completions can be provided for the webjump by saving a copy of the index page to `index_webjumps_directory`, which can be set as follows. {{{ require("index-webjump.js"); index_webjumps_directory = get_home_directory(); index_webjumps_directory.appendRelativePath(".conkerorrc/index-webjumps"); }}} For each defined index webjump the index page can be saved using `M-x webjump-get-index`. === Gitweb summary webjumps === These webjumps help you visit repositories at a gitweb server: {{{ define_gitweb_summary_webjump("gitweb-ko", "http://git.kernel.org"); define_gitweb_summary_webjump("gitweb-cz", "http://repo.or.cz/w"); }}} You can now use the following webjumps: {{{ gitweb-cz conkeror gitweb-ko git/git }}} To make completions available use `M-x gitweb-webjump-get-opml` and select `gitweb-cz` then, once the download is finished, completions will be available for that webjump. Sites with many repositories (such as the two given) can take many minutes to return the OPML data. When defining the webjump, a default repository at the gitweb server can be specified using the `$default` keyword. An `$alternative` may otherwise be given as usual. If neither are given then the alternative url for the webjump is defined to be the gitweb repository list page. === XPath webjumps === An xpath webjump extracts the set of referenced web pages from an index page using an [[http://www.w3.org/TR/xpath|XPath]] expression. For these webjumps to work, the index must be downloaded using `M-x gitweb-webjump-get-opml`. Unfortunately, the xulrunner parser that is used is quite fussy and, in particular, is an xml parser. Many web pages fail to parse correctly. To correct this problem the downloaded index page is automatically cleaned up using `index_xpath_webjump_tidy_command`. The html [[http://tidy.sourceforge.net|tidy]] program should be installed for this to work. It can be a bit tricky to figure out an appropriate XPath expression; `index_webjump_try_xpath` is provided to help with that process. Examples: {{{ define_xpath_webjump( "gitdoc", "http://www.kernel.org/pub/software/scm/git/docs/", '//xhtml:dt/xhtml:a', $description = "Git documentation"); }}} The following examples require the html tidy program to be installed. {{{ define_xpath_webjump( "conkerorwiki-page", "http://conkeror.org/", '//xhtml:li/xhtml:p/xhtml:a[starts-with(@href,"/")]', $description = "Conkeror wiki pages linked from the front page"); define_xpath_webjump( "imagemagick-options", "http://imagemagick.org/script/command-line-options.php", '//xhtml:p[@class="navigation-index"]/xhtml:a', $description = "Imagemagick command line options"); }}} = BreakingChanges = Gitweb summary webjumps are now implemented as index webjumps. The `webjump-get-index` command and `index_webjumps_directory` variable are used rather than the previous gitweb equivalents. Existing gitweb opml files can be moved to the new locations using something like: {{{ cd ~/.conkerorrc mkdir index-webjumps for f in gitweb-webjumps-opml/*.opml; do mv $f index-webjumps/$(basename $f .opml).index done rmdir gitweb-webjumps-opml }}} The `$completer` option is no longer available. = User Variables = index_webjumps_directory:: :: A directory for storing the index files corresponding to index webjumps; the index data can be downloaded from the index URL using `webjump-get-index`. If the index file is available for an index webjump then the webjump will provide completions for the indexed URLs. index_xpath_webjump_tidy_command:: :: A command to run on the downloaded index. The xulrunner parser is quite fussy and specifically requires xhtml (or other xml). Running something like html tidy can avoid parser problems. --- modules/index-webjump.js | 312 ++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 312 insertions(+), 0 deletions(-) create mode 100644 modules/index-webjump.js diff --git a/modules/index-webjump.js b/modules/index-webjump.js new file mode 100644 index 0000000..16d1a49 --- /dev/null +++ b/modules/index-webjump.js @@ -0,0 +1,312 @@ +/** + * (C) Copyright 2009 David Kettler + * + * Use, modification, and distribution are subject to the terms specified in the + * COPYING file. + * + * Construct a webjump (with completer) to visit URLs referenced from + * an index page. An xpath expression is used to extract the indexed + * URLs. A specialized form is also provided for gitweb summary + * pages. +**/ + +require("webjump.js"); + +/* Objects with completion data for index webjumps. */ +index_webjumps = {}; + +define_variable("index_webjumps_directory", null, + "A directory for storing the index files corresponding to " + + "index webjumps; the index data can be downloaded from the " + + "index URL using webjump-get-index. " + + "If the index file is available for an index webjump then " + + "the webjump will provide completions for the indexed URLs."); + +define_variable("index_xpath_webjump_tidy_command", + "tidy -asxhtml -wrap 0 -modify -quiet --show-warnings no", + "A command to run on the downloaded index. The xulrunner " + + "parser is quite fussy and specifically requires xhtml (or " + + "other xml). Running something like html tidy can avoid " + + "parser problems."); + +function index_webjump(key, url, file) { + this.key = key; + this.url = url; + this.file = this.canonicalize_file(file); + + if (this.require_completions && !this.file) + throw interactive_error("Index file not defined for " + this.key); +} +index_webjump.prototype = { + constructor : index_webjump, + + mime_type : null, + xpath_expr : null, + make_completion : null, + require_completions : false, + completions : null, + file_time : 0, + tidy_command : null, + + /* Extract full completion list from index file. */ + extract_completions : function () { + /* Parse the index file. */ + var stream = Cc["@mozilla.org/network/file-input-stream;1"] + .createInstance(Ci.nsIFileInputStream); + stream.init(this.file, MODE_RDONLY, 0644, false); + var parser = Cc["@mozilla.org/xmlextras/domparser;1"] + .createInstance(Ci.nsIDOMParser); + var doc = parser.parseFromStream(stream, null, + this.file.fileSize, this.mime_type); + + /* Extract the completion items. */ + var cmpl = [], node, res; + res = doc.evaluate( + this.xpath_expr, doc, xpath_lookup_namespace, + Ci.nsIDOMXPathResult.UNORDERED_NODE_ITERATOR_TYPE, null); + while ((node = res.iterateNext())) + cmpl.push(this.make_completion(node)); + + cmpl.sort(function(a, b) { + if (a[1] < b[1]) return -1; + if (a[1] > b[1]) return 1; + if (a[0] < b[0]) return -1; + if (a[0] > b[0]) return 1; + return 0; + }); + + this.completions = cmpl; + }, + + /* The guts of the completer. */ + internal_completer : function (input, pos, conservative) { + if (pos == 0 && conservative) + yield co_return(undefined); + + let require = this.require_completions; + + /* Update full completion list if necessary. */ + if (require && !this.file.exists()) + throw interactive_error("Index file missing for " + this.key); + if (this.file.exists() && + this.file.lastModifiedTime > this.file_time) { + this.file_time = this.file.lastModifiedTime; + this.extract_completions(); + } + if (require && !this.completions) + throw interactive_error("No completions for " + this.key); + if (!this.completions) + yield co_return(null); + + /* Match completions against input. */ + let words = trim_whitespace(input.toLowerCase()).split(/\s+/); + let data = this.completions.filter(function (x) { + for (var i = 0; i < words.length; ++i) + if (x[0].toLowerCase().indexOf(words[i]) == -1 && + x[1].toLowerCase().indexOf(words[i]) == -1) + return false; + return true; + }); + + let c = { count: data.length, + get_string: function (i) data[i][0], + get_description: function (i) data[i][1], + get_input_state: function (i) [data[i][0]], + get_match_required: function() require + }; + yield co_return(c); + }, + + /* A completer suitable for supplying to define_webjump. */ + make_completer : function() { + if (!this.file) + return null; + let jmp = this; + return function (input, pos, conservative) { + return jmp.internal_completer(input, pos, conservative); + }; + }, + + /* Fetch and save the index for later use with completion. + * (buffer is used only to associate with the download) */ + get_index : function (buffer) { + if (!this.file) + throw interactive_error("Index file not defined for " + this.key); + + var cwd = null; + if (index_webjumps_directory instanceof Ci.nsILocalFile) + cwd = index_webjumps_directory.path; + else if (index_webjumps_directory) + cwd = index_webjumps_directory; + + var info = save_uri(load_spec(this.url), this.file, + $buffer = buffer, $use_cache = false, + $temp_file = true); + + // Note: it would be better to run this before the temp file + // is renamed; that requires support in save_uri. + if (this.tidy_command) + info.set_shell_command(this.tidy_command, cwd); + }, + + /* Try to make a suitable file object when the supplied file is a + * string or null. */ + canonicalize_file : function (file) { + if (typeof file == 'string') + file = make_file(file); + if (!file && index_webjumps_directory) { + file = Cc["@mozilla.org/file/local;1"] + .createInstance(Ci.nsILocalFile); + if (index_webjumps_directory instanceof Ci.nsILocalFile) + file.initWithFile(index_webjumps_directory); + else + file.initWithPath(index_webjumps_directory); + file.appendRelativePath(this.key + ".index"); + } + return file; + } +} + + +function index_webjump_xhtml(key, url, file, xpath_expr) { + index_webjump.call(this, key, url, file); + this.xpath_expr = xpath_expr; +} +index_webjump_xhtml.prototype = { + constructor : index_webjump_xhtml, + + require_completions : true, + mime_type : "application/xhtml+xml", + tidy_command : index_xpath_webjump_tidy_command, + + make_completion : function (node) { + return [makeURLAbsolute(this.url, node.href), node.text]; + }, + + __proto__ : index_webjump.prototype +} + + +function index_webjump_gitweb(key, url, file) { + index_webjump.call(this, key, url, file); +} +index_webjump_gitweb.prototype = { + constructor : index_webjump_gitweb, + + mime_type : "text/xml", + xpath_expr : '//outline[@type="rss"]', + + make_completion : function (node) { + var name = node.getAttribute("text"); + return [name.replace(/\.git$/, ""), ""]; + }, + + __proto__ : index_webjump.prototype +} + + +interactive("webjump-get-index", + "Fetch and save the index URL corresponding to an index " + + "webjump. It will then be available to the completer.", + function (I) { + var completions = []; + for (let i in index_webjumps) + completions.push(i); + completions.sort(); + + var key = yield I.minibuffer.read( + $prompt = "Fetch index for index webjump:", + $history = "webjump", + $completer = + all_word_completer($completions = completions), + $match_required = true); + + var jmp = index_webjumps[key]; + if (jmp) + jmp.get_index(I.buffer); + }); + +/** + * Construct a webjump to visit URLs referenced from an index page. + * + * The index page must be able to be parsed as xhtml. The anchor + * nodes indexed are those that match the given xpath_expr. Don't + * forget to use xhtml: prefixes on the xpath steps. + * + * If an alternative is not specified then it is set to the index page. + * + * A completer is provided that uses the index page. A local file for + * the index must be specified either with $index_file or via + * index_webjumps_directory. The index must be manually downloaded; + * eg. using webjump-get-index. Each time the completer is used it + * will check if the file has been updated and reload if necessary. + * This kind of webjump is not useful without the completions. + */ +define_keywords("$alternative", "$index_file", "$description"); +function define_xpath_webjump(key, index_url, xpath_expr) { + keywords(arguments); + let alternative = arguments.$alternative || index_url; + + var jmp = new index_webjump_xhtml(key, index_url, arguments.$index_file, + xpath_expr); + index_webjumps[key] = jmp; + + define_webjump(key, function (term) {return term;}, + $completer = jmp.make_completer(), + $alternative = alternative, + $description = arguments.$description); +} + +/** + * Modify the xpath for an index webjump and show the resulting + * completions. Useful for figuring out an appropriate xpath. Either + * run using mozrepl or eval in the browser with the dump parameter + * set. + */ +function index_webjump_try_xpath(key, xpath_expr, dump) { + jmp = index_webjumps[key]; + if (xpath_expr) + jmp.xpath_expr = xpath_expr; + jmp.extract_completions(); + if (dump) + dumpln(dump_obj(jmp.completions, + "Completions for index webjump " + key)); + return jmp.completions; +} + + +/** + * Construct a webjump to visit repository summary pages at a gitweb + * server. + * + * If a repository name is supplied as $default then the alternative + * url is set to that repository at the gitweb site. If an + * alternative is not specified by either $default or $alternative + * then it is set to the repository list page of the gitweb site. + * + * A completer is provided that uses the list of repositories from the + * OPML data on the gitweb server. The completer is setup in the same + * way as for define_xpath_webjump, but the webjump will work without + * the completions. + */ +define_keywords("$default", "$alternative", "$opml_file", "$description"); +function define_gitweb_summary_webjump(key, base_url) { + keywords(arguments); + let alternative = arguments.$alternative; + let gitweb_url = base_url + "/gitweb.cgi"; + let summary_url = gitweb_url + "?p=%s.git;a=summary"; + let opml_url = gitweb_url + "?a=opml"; + + if (arguments.$default) + alternative = summary_url.replace("%s", arguments.$default); + if (!alternative) + alternative = gitweb_url; + + var jmp = new index_webjump_gitweb(key, opml_url, arguments.$opml_file); + index_webjumps[key] = jmp; + + define_webjump(key, summary_url, + $completer = jmp.make_completer(), + $alternative = alternative, + $description = arguments.$description); +} -- 1.6.3.1 From nicktastic at gmail.com Mon Jun 29 07:25:05 2009 From: nicktastic at gmail.com (Nicholas A. Zigarovich) Date: Mon, 29 Jun 2009 10:25:05 -0400 Subject: [Conkeror] Sessions In-Reply-To: <87bpoa6wh0.fsf@yahoo.com> References: <87my83ji2i.fsf@gmail.com> <87bpoa6wh0.fsf@yahoo.com> Message-ID: Hmm, this error doesn't make sense. Can you mail me the session.js file from your conkeror installation? Thanks, - Nick On Sat, Jun 27, 2009 at 2:07 AM, Daniel Clemente wrote: > >> Console error: [JavaScript Error: "_json is undefined" {file: "chrome://conkeror/content/session.js" line: 128}] >> ? Category: XPConnect JavaScript > > ?In fact I still get this each time I open a new buffer. > ?And now session is not saved when I exit with C-x C-c. > > Debian GNU/Linux unstable > ii ?xulrunner-1.9 ? ? ? ? ? ? ? ? ? ? ? ?1.9.0.11-1 ? ? ? ? ? ? ? ? ? ? XUL + XPCOM application runner > Latest conkeror > > > -- Daniel > >> >> >> PS: full log, in case it contains something useful. >> >> : ~ ; conkeror >> MozRepl: Listening... >> Console error: [JavaScript Error: "_session_auto_save_auto_load is not a function" {file: "chrome://conkeror/content/session.js" line: 311}] >> ? Category: chrome javascript >> TypeError: _json is undefined >> chrome://conkeror/content/session.js:128 >> session_write([object XPCWrappedNative_NoHelper],[object Object])@chrome://conkeror/content/session.js:128 >> session_auto_save_save([object Object])@chrome://conkeror/content/session.js:228 >> run_hooks([object Array],[object Object])@chrome://conkeror/content/hook.js:38 >> ([object Object])@chrome://conkeror/content/hook.js:159 >> ()@chrome://conkeror/content/buffer.js:157 >> content_buffer([object ChromeWindow],null,[object Object])@chrome://conkeror/content/content-buffer.js:109 >> ([object ChromeWindow],null)@chrome://conkeror/content/buffer.js:41 >> create_buffer([object ChromeWindow],(function (window, element) {return new type(window, element, args);}),1)@chrome://conkeror/content/buffer.js:467 >> browser_object_follow([object Object],1,[object Object])@chrome://conkeror/content/element.js:316 >> follow([object Object],1)@chrome://conkeror/content/element.js:351 >> _do_call([object Generator])@chrome://conkeror/content/coroutine.js:278 >> (" uoa")@chrome://conkeror/content/coroutine.js:410 >> exit_minibuffer([object ChromeWindow])@chrome://conkeror/content/minibuffer-read.js:431 >> ([object Object])@chrome://conkeror/content/minibuffer-read.js:435 >> call_interactively([object Object],"exit-minibuffer")@chrome://conkeror/content/interactive.js:140 >> keypress_handler([object KeyboardEvent])@chrome://conkeror/content/keyboard.js:539 >> Console error: [JavaScript Error: "_json is undefined" {file: "chrome://conkeror/content/session.js" line: 128}] >> ? Category: XPConnect JavaScript >> ? >> >> >> _______________________________________________ >> Conkeror mailing list >> Conkeror at mozdev.org >> https://www.mozdev.org/mailman/listinfo/conkeror > > _______________________________________________ > Conkeror mailing list > Conkeror at mozdev.org > https://www.mozdev.org/mailman/listinfo/conkeror >