Re: [Orgmode] (no subject)

2008-01-29 Thread Bastien Guerry
Hi Dimitri,

"Dimitris Kapetanakis" <[EMAIL PROTECTED]> writes:

> This is really a question for Bastien
> I tried to use blorg.el but I can't load it
>
> it says
>
> Compiling file g:/Emacs/site-lisp/blorg.el at Mon Jan 28 13:17:20 2008
> blorg.el:133:1:Warning: value returned from (fboundp (quote
> replace-regexp-in-string)) is unused
> blorg.el:1405:1:Error: Invalid read syntax: "?"
>
> can you help me?

I've uploaded a small fix for this.  Please check blorg.el 0.75b:

  http://www.cogintion.ens.fr/~guerry/u/blorg.el

HTH,

-- 
Bastien


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] blorg.el

2008-01-29 Thread Dimitris Kapetanakis
thanks Bastien, but it still says,

Compiling file g:/Emacs/site-lisp/blorg.el at Tue Jan 29 13:23:46 2008
blorg.el:1405:1:Error: Invalid read syntax: "?"

I guess that it is the function (defun blorg-make-post-url
(blorgv-post-title) it looks like this in my system

(defun blorg-make-post-url (blorgv-post-title)
  "Make a permanent url from BLORGV-POST-TITLE."
  (with-temp-buffer
(insert blorgv-post-title)
(goto-char (point-min))
(while (< (point) (point-max))
  (cond ((member (char-after) '(?Γ(c) ?Γ¨ ?Γ� ?Γ  ?Γ΄ ?Γ― ?ΓΉ))
 (progn (delete-char 1) (insert "e")))
((member (char-after) '(?  ?\' ?/ ?% ?# ?= ?+))
 (progn (delete-char 1) (insert "-")))
((member (char-after)
 '(?\" ?, ?\; ?: ?? ?! ?. ?$ ?\t))
 (progn (delete-char 1)))
((not (eq (car (split-char (char-after))) 'ascii))
 (delete-char 1))
(t (forward-char 1
(concat (replace-regexp-in-string "-+$" "" (buffer-string))
(plist-get blorg-strings :page-extension

what are these strange characters in the 7th line? in another editor
(notepad++) looks like

  (cond ((member (char-after) '(?é ?è ?ê ?à ?ô ?ï ?ù))

Do you do something with the vowels in french? Also I can see page breaks in
the file ^L is that normal?
As I am writing this I think that perhaps this problem is caused because I
have set the mule to be greek (iso-8859-7) and that scrambled the function
definition.
Should I change this to the english vowels or the greek ones (since I am
also writing in greek ...)
Dimitris

2008/1/29, Bastien Guerry <[EMAIL PROTECTED]>:
>
> Hi Dimitri,
>
> "Dimitris Kapetanakis" <[EMAIL PROTECTED]> writes:
>
> > This is really a question for Bastien
> > I tried to use blorg.el but I can't load it
> >
> > it says
> >
> > Compiling file g:/Emacs/site-lisp/blorg.el at Mon Jan 28 13:17:20 2008
> > blorg.el:133:1:Warning: value returned from (fboundp (quote
> > replace-regexp-in-string)) is unused
> > blorg.el:1405:1:Error: Invalid read syntax: "?"
> >
> > can you help me?
>
> I've uploaded a small fix for this.  Please check blorg.el 0.75b:
>
>   http://www.cogintion.ens.fr/~guerry/u/blorg.el
>
> HTH,
>
> --
> Bastien
>
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] blorg.el

2008-01-29 Thread Dimitris Kapetanakis
Thanks it works now! I am trying it!
Dimitris

2008/1/29, Rick Moynihan <[EMAIL PROTECTED]>:
>
> Hi,
>
> I've been meaning to mention that blorg produces invalid XML for atom
> feeds (perhaps also RSS/HTML).  Most obviously it doesn't appear to
> entity escape characters the following characters properly '<', '>',
> '&', which should be rendered as > < and & respectively.
>
> Also I think  tags aren't closed properly, i.e. they're rendered as
>
> 
>
> rather than the correct:
>
> 
>
> Another issue I have, is that sometimes when calling blorg-publish it
> doesn't render links properly, i.e. [[http://foo.com/][foo]] will be
> displayed in the HTML/XML rather than:
>
> http://foo.com";>foo
>
> This doesn't always happen, but seems to occur when either:
>
> - you run blorg-publish without a C-u prefix argument.
> - or, you have an orglink which runs across a line break, e.g.
>
> [[http://foo.com/]| <--- newline
> [foo]]
>
> Also, it'd be great if there was a way to easily embed flash video
> content onto the pages, by using custom links, e.g.
>
> [[youtube:http://www.youtube.com/watch?v=fu8rAWciQNs]]
>
> Which would be expanded into the appropriate embeded object:
>
>  value="http://www.youtube.com/v/fu8rAWciQNs&rel=1";> name="wmode" value="transparent"> src="http://www.youtube.com/v/fu8rAWciQNs&rel=1";
> type="application/x-shockwave-flash" wmode="transparent" width="425"
> height="355">
>
> [EMAIL PROTECTED] wrote:
> >> thanks Bastien, but it still says,
> >
> > Yes, I made the mistake of using accentuated characters inside
> > the source, the file being encoded in utf-8.  I replaced this
> > with the integer representation of characters in 0.75c -- see
> > attached file.
> >
> > Sorry for the mess, but I'm writing from Nancy, was in Paris
> > this morning, and in London this night... :)
> >
> >
> >
> > 
> >
> > ___
> > Emacs-orgmode mailing list
> > Remember: use `Reply All' to send replies to the list.
> > Emacs-orgmode@gnu.org
> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
> --
> Rick Moynihan
> http://sourcesmouth.co.uk/blog/
>
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [BUG?] org-open-file cannot handle spaces in file name?

2008-01-29 Thread Phil Jackson
Phil Jackson <[EMAIL PROTECTED]> writes:

[...]

> I'll try with 22 tomorrow and see what I get.

22.1.50.1 (5.19a):

[[file:~/this is a file with space.pdf]]

 ,[ trace ]
 | Debugger entered--Lisp error: (args-out-of-range 34 35)
 |   replace-match("/home/pjackso1/this\\ is\\ a\\ file\\ with\\ space.pdf"
 |   t t "evince %s") (setq cmd (replace-match (shell-quote-argument file)
 |   t t cmd)) (while (string-match "%s" cmd) (setq cmd (replace-match
 |   ... t t cmd))) (cond ((and ... ...) (while ... ...) (while ... ...)
 |   (save-window-excursion ...)) ((or $ (let* ((file ...) (apps ...) (remp
 |   ...) (dirp ...) (dfile ...)  (old-buffer ...) (old-po$
 |   org-open-file("~/this is a file with space.pdf" nil nil nil) (if
 |   (string-match "[*?{]" (file-name-nondirectory path)) (dired path)
 |   (org-open-file pa$ (cond ((assoc type org-link-protocols) (funcall
 |   ... path)) ((equal type "mailto") (let $ (let (type path link line
 |   search (pos ...)) (catch (quote match) (save-excursion ... ..$ (if
 |   (org-at-timestamp-p t) (org-follow-timestamp-link) (let (type path
 |   link line search$ (catch (quote abort) (move-marker
 |   org-open-link-marker (point)) (setq org-window-config$
 |   org-open-at-point(nil) call-interactively(org-open-at-point)
 `


Cheers,
Phil
-- 
 Phil Jackson
 http://www.shellarchive.co.uk


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] blorg.el

2008-01-29 Thread Rick Moynihan

Hi,

I've been meaning to mention that blorg produces invalid XML for atom 
feeds (perhaps also RSS/HTML).  Most obviously it doesn't appear to 
entity escape characters the following characters properly '<', '>', 
'&', which should be rendered as > < and & respectively.


Also I think  tags aren't closed properly, i.e. they're rendered as



rather than the correct:



Another issue I have, is that sometimes when calling blorg-publish it 
doesn't render links properly, i.e. [[http://foo.com/][foo]] will be 
displayed in the HTML/XML rather than:


http://foo.com";>foo

This doesn't always happen, but seems to occur when either:

- you run blorg-publish without a C-u prefix argument.
- or, you have an orglink which runs across a line break, e.g.

[[http://foo.com/]| <--- newline
[foo]]

Also, it'd be great if there was a way to easily embed flash video 
content onto the pages, by using custom links, e.g.


[[youtube:http://www.youtube.com/watch?v=fu8rAWciQNs]]

Which would be expanded into the appropriate embeded object:

value="http://www.youtube.com/v/fu8rAWciQNs&rel=1";>name="wmode" value="transparent">src="http://www.youtube.com/v/fu8rAWciQNs&rel=1"; 
type="application/x-shockwave-flash" wmode="transparent" width="425" 
height="355">


[EMAIL PROTECTED] wrote:

thanks Bastien, but it still says,


Yes, I made the mistake of using accentuated characters inside
the source, the file being encoded in utf-8.  I replaced this
with the integer representation of characters in 0.75c -- see
attached file.

Sorry for the mess, but I'm writing from Nancy, was in Paris
this morning, and in London this night... :)





___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


--
Rick Moynihan
http://sourcesmouth.co.uk/blog/


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Agenda view of clocked items

2008-01-29 Thread Jurgen Defurne
I do not know if this is a bug or a feature, but given a drawer
with several clocked times for one item, I see that in the agenda
view + timeline, only the last (first in the list from top to bottom) clocked 
item for a certain day is displayed, even when there are more registries for 
the same day.

Otherwise, the best tool for organising and planning my daily work.

Regards,

Jurgen


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] FR: source code

2008-01-29 Thread Phil Jackson
Phil Jackson <[EMAIL PROTECTED]> writes:

> Carsten Dominik <[EMAIL PROTECTED]> writes:

[...]

>>> I *personally* still can't decide if this is within org's scope
>>> though, not to say I wouldn't find it very handy.

>> So then am confused what you initial message was about.  The feature
>> your are asking for is then an exporting feature, right?  Maybe you
>> need to restate what exactly you would like to see.

> Yes, I'm a confused young man. My final answer is: I would like to see
> syntax highlighted code in a HTML export :)

So what do you think Carsten? I would like to see the:

#+BEGIN_EXAMPLE lang:shell-script
#+END_EXAMPLE

That Bastien suggested. I would be willing to help out the exporter
people if need be.
-- 
 Phil Jackson
 http://www.shellarchive.co.uk


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] FR: source code

2008-01-29 Thread Russell Adams

> I'd like to see this too, primarily for HTML export (for syntax 
> highlighting etc) though it would be handy if you could also display the 
> syntax highlighting of the specified mode inside the block in Emacs.

Would it be practical to just specify the major mode to use with
htmlify in order to syntax highlight the block of code, as opposed to
keeping a table of which types equate to which modes?

If only I had the time to learn lisp. ;]

--
Russell Adams[EMAIL PROTECTED]

PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] FR: source code

2008-01-29 Thread Rick Moynihan

Phil Jackson wrote:

Phil Jackson <[EMAIL PROTECTED]> writes:


Carsten Dominik <[EMAIL PROTECTED]> writes:


[...]


I *personally* still can't decide if this is within org's scope
though, not to say I wouldn't find it very handy.



So then am confused what you initial message was about.  The feature
your are asking for is then an exporting feature, right?  Maybe you
need to restate what exactly you would like to see.



Yes, I'm a confused young man. My final answer is: I would like to see
syntax highlighted code in a HTML export :)


So what do you think Carsten? I would like to see the:

#+BEGIN_EXAMPLE lang:shell-script
#+END_EXAMPLE



I'd like to see this too, primarily for HTML export (for syntax 
highlighting etc) though it would be handy if you could also display the 
syntax highlighting of the specified mode inside the block in Emacs.


Also, Bastien...  In blorg.el is it possible to include HTML snippets as 
blocks of markup inside the posts?  For example embedding a video into a 
post?


e.g.

* TODO My post with embedded video

blah blah blah...

#+BEGIN_HTML
value="http://www.youtube.com/v/fu8rAWciQNs&rel=1";>name="wmode" value="transparent">src="http://www.youtube.com/v/fu8rAWciQNs&rel=1"; 
type="application/x-shockwave-flash" wmode="transparent" width="425" 
height="355">

#+END_HTML


R.


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] FR: source code

2008-01-29 Thread Phil Jackson
Russell Adams <[EMAIL PROTECTED]> writes:

>> I'd like to see this too, primarily for HTML export (for syntax 
>> highlighting etc) though it would be handy if you could also display the 
>> syntax highlighting of the specified mode inside the block in Emacs.

> Would it be practical to just specify the major mode to use with
> htmlify in order to syntax highlight the block of code, as opposed to
> keeping a table of which types equate to which modes?

I expect that's the plan.

Cheers,
Phil
-- 
 Phil Jackson
 http://www.shellarchive.co.uk


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] blorg.el

2008-01-29 Thread Dimitris Kapetanakis
Sadly, I still cannot make it work. Now it compiles ok but when I run the
M-x blorg-publish command on the file

--
#+TITLE: meltemi
#+BLOG_URL: http://localhost/blorg/
#+PUBLISH_DIR: g:/htdocs/BLORG/


* DONE This is my first entry :misc:
   CLOSED: [2008-01-30 Τετ]

 Hello world!
--

as described in the manual, It just says

 Wrong type argument: stringp, nil

and does nothing

sorry for bathering you again
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: blorg.el

2008-01-29 Thread Bastien Guerry
Hi Dimitris,

"Dimitris Kapetanakis" <[EMAIL PROTECTED]> writes:

> Sadly, I still cannot make it work. Now it compiles ok but when I run
> the M-x blorg-publish command on the file
>
> --
> #+TITLE: meltemi
> #+BLOG_URL: http://localhost/blorg/
> #+PUBLISH_DIR: g:/htdocs/BLORG/
>
> * DONE This is my first entry :misc:   
>CLOSED: [2008-01-30 Τετ]
> 
>  Hello world!
> --

1. Can you send me a complete backtrace?  See this section in Org's
   manual "How to create a useful backtrace":

   http://orgmode.org/manual/Feedback.html

2. Wild guesses: 1) is the "g:/htdocs/BLORG/" really an existing
   directory? 2) try with a timestamp in english, with no localized
   characters

> sorry for bathering you again

No problem.  It's just that blorg.el is quite old now, and the plan I
have is to rewrite it from scratch - so I don't want to spend to much
time trying to *improve* it.  But fixing bugs is okay, please send me
more information.

Note: keep me posted in private, as it might no be of interest for most
org-mode users.

Thanks,

-- 
Bastien


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] FR: source code

2008-01-29 Thread Bastien Guerry
Phil Jackson <[EMAIL PROTECTED]> writes:

> So what do you think Carsten? I would like to see the:
>
> #+BEGIN_EXAMPLE lang:shell-script
> #+END_EXAMPLE
>
> That Bastien suggested. I would be willing to help out the exporter
> people if need be.

For the record, the full suggestion is here:

  http://thread.gmane.org/gmane.emacs.orgmode/5053/focus=5057

-- 
Bastien


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] blorg.el

2008-01-29 Thread Bastien Guerry
Hi Rick,

Rick Moynihan <[EMAIL PROTECTED]> writes:

> I've been meaning to mention that blorg produces invalid XML for atom feeds
> (perhaps also RSS/HTML).  Most obviously it doesn't appear to entity escape
> characters the following characters properly '<', '>', '&', which should be
> rendered as > < and & respectively.

Trying to fix this is dangerous, it might break other things.  If the
issue is just XML validation, I won't do it for now - sorry.

> Also I think  tags aren't closed properly, i.e. they're rendered as
>
> 
>
> rather than the correct:
>
> 

Fixed in 0.75d.

> Another issue I have, is that sometimes when calling blorg-publish it
> doesn't render links properly, i.e. [[http://foo.com/][foo]] will be
> displayed in the HTML/XML rather than:
>
> http://foo.com";>foo
>
> This doesn't always happen, but seems to occur when either:
>
> - you run blorg-publish without a C-u prefix argument.
> - or, you have an orglink which runs across a line break, e.g.
>
> [[http://foo.com/]| <--- newline
> [foo]]

(Of course, blorg should use Org's HTML converter.  This is in the plan
for the next org-based blogging system, so I'm not willing to try fixing
this neither...)

> Also, it'd be great if there was a way to easily embed flash video content
> onto the pages, by using custom links, e.g.
>
> [[youtube:http://www.youtube.com/watch?v=fu8rAWciQNs]]
>
> Which would be expanded into the appropriate embeded object:
>
>  value="http://www.youtube.com/v/fu8rAWciQNs&rel=1";> name="wmode" value="transparent"> src="http://www.youtube.com/v/fu8rAWciQNs&rel=1";
> type="application/x-shockwave-flash" wmode="transparent" width="425"
> height="355">

What about a simple dynamic block ?

(defun org-dblock-write:youtube (params)
  "Insert a header from a file."
  (let ((url (plist-get params :url)))
(insert 
 (format "" url url

#+BEGIN: youtube :url "http://www.youtube.com/watch?v=fu8rAWciQNs";
#+END: 

Should expand in the correct block of text.

HTH,

-- 
Bastien


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] FR: source code

2008-01-29 Thread Bastien Guerry
Rick Moynihan <[EMAIL PROTECTED]> writes:

> Also, Bastien...  In blorg.el is it possible to include HTML snippets as
> blocks of markup inside the posts?  For example embedding a video into a
> post?

Sadly not - but keep the pressure, it motivates me to work harder on the
next org-based blogging tool :)

-- 
Bastien


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode