Re: [O] Porting Apple Calendars to org-mode

2019-04-25 Thread Mohamed Wael Khobalatte
Thanks, I actually got .org-mac-iCal working, and even changed it to be
able to load non-Apple calendars if present in the local calendar app. I
will try and push the modified version to github or send a patch.

On Thu, Apr 25, 2019 at 11:34 PM David Masterson 
wrote:

> Mohamed Wael Khobalatte  writes:
>
> > Hi guys, I posted a question to the Emacs StackExchange
> > (
> https://emacs.stackexchange.com/questions/50137/show-apple-calendar-events-in-org-mode
> ),
> > but I believe it's better asked here. Does anyone know how I can get
> > my Apple calendar to show up in org-mode as readonly (preferably)?
> >
> > I had no luck with org-mac-iCal. Only one calendar (the Birthdays
> > calendar) shows up, eventhough all other calendars are *checked*, as
> > the documentation from that package requires. It is also rather old,
> > so not sure if it works anymore?
>
> A suggestion is to look at https://github.com/pimutils/vdirsyncer.  I
> don't know anything more, but it looks promising.
>
> --
> David
>
-- 
Wael Khobalatte


Re: [O] Porting Apple Calendars to org-mode

2019-04-24 Thread Mohamed Wael Khobalatte
Thanks Ken, I'll check them out. If none works then I might try to code up
something.

On Wed, Apr 24, 2019 at 10:31 PM Ken Mankoff  wrote:

>
> On 2019-04-24 at 21:56 +0200, Mohamed Wael Khobalatte <
> wael.khobala...@gmail.com> wrote...
> > The file(s) you linked to usually assume a generated list of ics files
> > no?
>
> I didn't link to any files. There are *many* ical2org packages, many
> different ones. The one I currently use does expect an ICS file. If you use
> iCloud you have access to these. If your calendar is 100% local, then try
> this ical2org code: https://github.com/mankoff/ical2org  I used to
> maintain that fork, and used it many years ago with an only-local iCal
> setup that did not have ICS files, just some weird Apple folder structure
> in ~/Library/.
>
> Sorry I can't help more. The code is old and I'm going offline for the
> next 5 weeks. But if you look at these two different ical2org, the ruby
> implementation, the Perl implementation, etc. one of them might do what you
> want.
>
>   -k.
>
>

-- 
Wael Khobalatte


Re: [O] Porting Apple Calendars to org-mode

2019-04-24 Thread Mohamed Wael Khobalatte
See for instance
https://www.reddit.com/r/orgmode/comments/7vidfd/has_anyone_gotten_orgmacical_to_work/,
which describes the same problem (although I *do* see some events, namely
holidays, so I am closer to a solution).

On Wed, Apr 24, 2019 at 3:56 PM Mohamed Wael Khobalatte <
wael.khobala...@gmail.com> wrote:

> Hi Ken,
>
> Thanks for your response. The file(s) you linked to usually assume a
> generated list of ics files no? My problem right now is that I do not want
> to generate those manually from my Mac (could be done of course, but this
> search is for something that does that).
>
> The one that comes close is org-mac-iCal, but again my problem with that
> one is that it does not work for all the calendars, even personal one that
> is not networked. Surprisingly, it works with the holidays calendar (sorry
> I said birthdays before, but it's the holidays one that comes by default).
> I do not know what's special about that one, but my guess is that perhaps
> the formats or locations have changed for the others, although that would
> be..surprising.
>
> On Wed, Apr 24, 2019 at 3:42 PM Ken Mankoff  wrote:
>
>> Hi Mohamed,
>>
>> On 2019-04-24 at 21:32 +0200, Mohamed Wael Khobalatte
>>  wrote...
>> org-mode),
>> > Does anyone know how I can get my Apple calendar to show up in
>> > org-mode as readonly (preferably)? I had no luck with org-mac-iCal.
>>
>> There are several tools named ical2org - different languages,
>> implementations, and/or forks. I used to use one of them when I was on OS X
>> and it worked well for me.
>>
>> I'm not on OS X anymore but use something called "ical2orgpy" that
>> downloads ICS files from Google and Outlook (and could from iCloud I
>> think?) and converts them to read-only Org buffers. The top line is
>>
>> -*- eval: (eval (progn (auto-revert-mode 1) (read-only-mode 1))); -*-
>>
>> So they are read-only and Emacs updates them when the buffer gets changed
>> on disk w/o any questions.
>>
>>   -k.
>>
>>
>
> --
> Wael Khobalatte
>
>

-- 
Wael Khobalatte


Re: [O] Porting Apple Calendars to org-mode

2019-04-24 Thread Mohamed Wael Khobalatte
Hi Ken,

Thanks for your response. The file(s) you linked to usually assume a
generated list of ics files no? My problem right now is that I do not want
to generate those manually from my Mac (could be done of course, but this
search is for something that does that).

The one that comes close is org-mac-iCal, but again my problem with that
one is that it does not work for all the calendars, even personal one that
is not networked. Surprisingly, it works with the holidays calendar (sorry
I said birthdays before, but it's the holidays one that comes by default).
I do not know what's special about that one, but my guess is that perhaps
the formats or locations have changed for the others, although that would
be..surprising.

On Wed, Apr 24, 2019 at 3:42 PM Ken Mankoff  wrote:

> Hi Mohamed,
>
> On 2019-04-24 at 21:32 +0200, Mohamed Wael Khobalatte
>  wrote...
> org-mode),
> > Does anyone know how I can get my Apple calendar to show up in
> > org-mode as readonly (preferably)? I had no luck with org-mac-iCal.
>
> There are several tools named ical2org - different languages,
> implementations, and/or forks. I used to use one of them when I was on OS X
> and it worked well for me.
>
> I'm not on OS X anymore but use something called "ical2orgpy" that
> downloads ICS files from Google and Outlook (and could from iCloud I
> think?) and converts them to read-only Org buffers. The top line is
>
> -*- eval: (eval (progn (auto-revert-mode 1) (read-only-mode 1))); -*-
>
> So they are read-only and Emacs updates them when the buffer gets changed
> on disk w/o any questions.
>
>   -k.
>
>

-- 
Wael Khobalatte


[O] Porting Apple Calendars to org-mode

2019-04-24 Thread Mohamed Wael Khobalatte
Hi guys, I posted a question to the Emacs StackExchange (
https://emacs.stackexchange.com/questions/50137/show-apple-calendar-events-in-org-mode),
but I believe it's better asked here. Does anyone know how I can get my
Apple calendar to show up in org-mode as readonly (preferably)?

I had no luck with org-mac-iCal. Only one calendar (the Birthdays calendar)
shows up, eventhough all other calendars are *checked*, as the
documentation from that package requires. It is also rather old, so not
sure if it works anymore?


[O] Fwd: Org mode latex export with "Letter" Class

2017-11-12 Thread Mohamed Zaki
Hi

I am trying to export an org file to latex using the org-mode version
9.1.2. The input file structure is:
#+LaTeX_CLASS: LTR
* letter{}
.
.
.
\closing{Thank you,}

Unfortunately, the compilation fails to generate the proper tex file
The body of the tex file is missing. The output tex file is:
\documentclass{letter}
...
\begin{document}

\begin{letter}
letter\{\}
\end{document}

It seems that the exporter does not recognize the letter environment.

I use auctex-11.89.5 and the .emacs file includes the following lines

(require 'ox-latex)
(with-eval-after-load 'ox-latex
(add-to-list 'org-latex-classes '("LTR" "\\documentclass{letter}"
("\\begin{letter}" "\\end{letter}" "\\begin{letter}" "\\end{letter}"

I've been using an older version of org-mode 7.x for many years and never
had this problem. But i understand that the export code has changed.
I appreciate your help
M.Zaki


Re: [O] beamer export org 8.0.2

2014-02-15 Thread Mohamed
Achim Gratz Stromeko at nexgo.de writes:

 
 Mohamed writes:
  I have a problem with beamer export.
  (Org-mode version 8.0.2 (8.0.2-dist  at 
/home/user/.emacs.d/elpa/org-20140127/)
 
 You have a problem with your installation.  You are apparently running a
 mixed installation between Org from a tarball and Org ELPA.  Fix that
 first, please, then try Beamer export again.
 
 Regards,
 Achim.


Thank you for the answers,
It was fixed by customizing org-export-backends. I added beamer but it
didn't work the first time I evaluated the expression within the session. I
had to start a ne emacs session.
Regards,
Mohamed







[O] beamer export org 8.0.2

2014-02-14 Thread Mohamed
Dear All,
I have a problem with beamer export.
(Org-mode version 8.0.2 (8.0.2-dist @ /home/user/.emacs.d/elpa/org-20140127/)
when trying to export a small file I got the following message:

org-beamer-export-to-pdf: Wrong number of arguments: (lambda (backend file
optional subtreep visible-only body-only ext-plist) Call `org-export-as'
with output to a specified file.

BACKEND is the back-end used for transcoding, as a symbol.  FILE
is the name of the output file, as a string.

Optional arguments SUBTREEP, VISIBLE-ONLY, BODY-ONLY and
EXT-PLIST are similar to those used in `org-export-as', which
see.

Depending on `org-export-copy-to-kill-ring', add file contents
to kill ring.  Return output file's name. (if (file-writable-p file) nil
(error Output file not writable)) (let ((out (org-export-as backend
subtreep visible-only body-only ext-plist))) (let ((temp-buffer
(generate-new-buffer  *temp*))) (save-current-buffer (set-buffer
temp-buffer) (unwind-protect (progn (insert out) (let
((coding-system-for-write org-export-coding-system)) (write-file file)))
(and (buffer-name temp-buffer) (kill-buffer temp-buffer) (if (and
(org-export--copy-to-kill-ring-p) (org-string-nw-p out)) (progn
(org-kill-new out file), 8


Any help is welcome.
Thanks




Re: [O] Org agenda and recent files list....

2014-02-03 Thread mohamed
Robert Goldman rpgoldman at sift.info writes:

 
 On 8/10/12 Aug 10 -2:21 AM, Bastien wrote:
  Robert Goldman rpgoldman at sift.info writes:
  
 
;;;---
  ;;; Agenda files shouldn't get entries in the recentf-list
 
;;;---
  
  Knowing about `recentf-exclude' will certainly help many users, 
  not only for excluding Org files.
  
  Thanks,
  
 
 For what it's worth, a more fine-grained alternative would be to get
 inside org-get-agenda-file-buffer and inhibit the recentf caching while
 calling find-file inside there.
 
 That would allow you to have an agenda file appear in the recent files
 list IF it was opened through a manual use of find-file, but NOT if it
 was opened as a side effect of loading an agenda.
 
 This more fine-grained approach was a little more work than I wanted to
 do, and didn't necessarily provide me a lot more value, so I didn't
 bother with it.  But someone else might find it worth coding up.  Chacun
 à son org configuration!
 
 Cheers,
 r
 
 

It seems that absolute paths are needed in the definition of org files.
If org-agenda-files is defined using ~/org/.. this may not work since
recentf uses absolute paths.

Cheers,
Mohamed   







[O] org-babel and compilation log

2013-05-10 Thread Mohamed
Dear all,
I'm managing my dotEmacs in an org file which is tangled and byte-compiled 
using a small function

--
(defun mh-generate-dot-and-byte-comp ()
(interactive)
Tangle current buffer and generate the dot emacs which is byte compiled
(with-current-buffer dotEmacs.org (org-babel-tangle))
(byte-compile-file ~/.emacs.el))


I'm asking is there any way to switch, in case of error or warning,  from
the Compilation Log file to the original org-mode file (dotEmacs.org)
instead of .emacs.el. 

Thanks,
Mohamed 







Re: [O] org-babel and compilation log

2013-05-10 Thread Mohamed

Eric Schulte schulte.eric at gmail.com writes:

 You may want to use `org-babel-load-file', unless you prefer to run this
 manually.


Hello Eric,
Thank you for this swift reply.



I didn't know this before. But my point here is to byte compile my .emacs.el
for the next session. (I have dotEmacs.org - .emacs.elc)

 




 Look at the `org-babel-tangle-jump-to-org' function, for it to work you
 may need to tangle with the :comments header argument set to link.

Great this is really what I'm looking for.

Thanks a lot !!

Mohamed





Re: [O] Exporting an article to a (very) specific formatting template

2013-04-29 Thread mohamed
James Harkins jamshark70 at gmail.com writes:

 
 Actually, let me take a few steps back from my specific question about
 the title command. There are some other workflow questions that might
 make that question redundant.
 
 This journal (for some reason unknown to me) has designed the
 publication format in MS Word, and there are some specific
 requirements. So I have a couple of choices:
 
 - Export to LaTeX, and try to reproduce their layout (likely with a
   new document class based on article). That's a chunk of work, but
   they also confirmed that I could send PDF as long as it follows the
   style guidelines.
 
 - Export to ODT. This is probably simpler for setup -- I'd probably
   just need to change some of the names of paragraph or character
   styles in their template so that org can find them for section
   headings, abstract etc. But... there is more risk of the formatting
   breaking. If I send .odt, MS Word might choke on it, or similar
   if I resave my .odt as .docx. (The word online is that LibreOffice
   does not do well saving docx.)
 
 Or, export to ODT and let LibreOffice turn that into a PDF. I hesitate
 to do this, when LaTeX is a far superior typesetter. (But, tweaking
 all the formatting details in LaTeX is quite likely to give me some
 more gray hairs...)
 
 Advice? Thanks --
 hjh
 
 

I used both aproaches :
- Usually I customize the org options (latex templates) to meet the
requirements of the final document. It is convenient for me to stay in
emacs. For the gray hairs, you do it once and thus you have minor
modifications. 

- But sometimes when I work with other colleagues I need to have something
more common, odt seems fine but as you mentioned you may have to add a final
manual toutch to be sure your document can be modified by the others.

 
Regards,






Re: [O] Bibtex export

2012-12-20 Thread mohamed

Myles,
Thank you for this answer. 
I tried it with 
---
(add-to-list 'org-export-preprocess-hook
'my-export-delete-headlines-tagged-noheading)
---


But I got some errors when exporting

-
Exporting to LaTeX...  run-hooks: Wrong number of
arguments: (lambda (backend) (dolist (hl (nreverse (org-element-map
(org-element-parse-buffer (quote headline)) (quote headline) (quote identity
(when (member noheading (org-element-property :tags hl)) (goto-char
(org-element-property :begin hl)) (delete-region (point) (progn (forward-line)
(point)), 0 (my-export-delete-headlines-tagged-noheading)
-


I guess I have to use it in another way. My knowledge of lisp programming is
very limited.

Regards,
Mohamed




Re: [O] Bibtex export

2012-12-20 Thread Mohamed HIBTI
Thanks Myles,
This is realy what I want. I have just to fix something (may be my
org-version).
The variable org-export-before-processing-hook seems missing.
I have org-version 7.8.10 (with emacs 24.2.1)
Regards,
Mohame

2012/12/20 Myles English mylesengl...@gmail.com


 mohamed writes:

  Myles,
  Thank you for this answer.
  I tried it with
  ---
  (add-to-list 'org-export-preprocess-hook
  'my-export-delete-headlines-tagged-noheading)
  ---

 Sorry, I should have said: add it to org-export-before-processing-hook,
 so you use it like this:

 #+begin_src emacs-lisp
 (defun my-export-delete-headlines-tagged-noheading (backend)
   (dolist (hl (nreverse (org-element-map (org-element-parse-buffer
 'headline)
  'headline
  'identity)))
 (when (member noheading (org-element-property :tags hl))
   (goto-char (org-element-property :begin hl))
   (delete-region (point) (progn (forward-line) (point))

 (add-to-list 'org-export-before-processing-hook
  'my-export-delete-headlines-tagged-noheading)
 #+end_src

 Myles

 
 
  But I got some errors when exporting
 
  -
  Exporting to LaTeX...  run-hooks: Wrong number of
  arguments: (lambda (backend) (dolist (hl (nreverse (org-element-map
  (org-element-parse-buffer (quote headline)) (quote headline) (quote
 identity
  (when (member noheading (org-element-property :tags hl)) (goto-char
  (org-element-property :begin hl)) (delete-region (point) (progn
 (forward-line)
  (point)), 0 (my-export-delete-headlines-tagged-noheading)
  -
 
 
  I guess I have to use it in another way. My knowledge of lisp
 programming is
  very limited.
 
  Regards,
  Mohamed




Re: [O] Bibtex export

2012-12-20 Thread Mohamed HIBTI
I got it thank you guys !!


2012/12/20 Myles English mylesengl...@gmail.com


 Mohamed HIBTI writes:

  Thanks Myles,
  This is realy what I want. I have just to fix something (may be my
  org-version).
  The variable org-export-before-processing-hook seems missing.
  I have org-version 7.8.10 (with emacs 24.2.1)
  Regards,
  Mohame

 Sorry again, I should have said that I am using this with the git
 version and the new exporter.

 I don't know if there is anything that will work for you on version
 7.8.10.  I can recommend the git version though it is quite stable and
 rarely causes problems, once set up it is very easy to update, see the
 worg page for details.

 Myles

  2012/12/20 Myles English mylesengl...@gmail.com
 
 
  mohamed writes:
 
   Myles,
   Thank you for this answer.
   I tried it with
   ---
   (add-to-list 'org-export-preprocess-hook
   'my-export-delete-headlines-tagged-noheading)
   ---
 
  Sorry, I should have said: add it to org-export-before-processing-hook,
  so you use it like this:
 
  #+begin_src emacs-lisp
  (defun my-export-delete-headlines-tagged-noheading (backend)
(dolist (hl (nreverse (org-element-map (org-element-parse-buffer
  'headline)
   'headline
   'identity)))
  (when (member noheading (org-element-property :tags hl))
(goto-char (org-element-property :begin hl))
(delete-region (point) (progn (forward-line) (point))
 
  (add-to-list 'org-export-before-processing-hook
   'my-export-delete-headlines-tagged-noheading)
  #+end_src
 
  Myles
 
  
  
   But I got some errors when exporting
  
   -
   Exporting to LaTeX...  run-hooks: Wrong number of
   arguments: (lambda (backend) (dolist (hl (nreverse (org-element-map
   (org-element-parse-buffer (quote headline)) (quote headline) (quote
  identity
   (when (member noheading (org-element-property :tags hl)) (goto-char
   (org-element-property :begin hl)) (delete-region (point) (progn
  (forward-line)
   (point)), 0 (my-export-delete-headlines-tagged-noheading)
   -
  
  
   I guess I have to use it in another way. My knowledge of lisp
  programming is
   very limited.
  
   Regards,
   Mohamed
 
 




Re: [O] Bibtex export

2012-12-18 Thread mohamed

Bastien bzg at altern.org writes:

 I'm not sure I understand.  In what condition does deleting 
 * Section a will delete * Bibliography ?
 



Hi Bastien,
Thank you for answering.

Usually I write
---
* Section a

 ...

\clearpage
\bibliographystyle{acm}
\bibliography{biblio.bib}

---
However, sometimes I decide to delete the section section a
and then the lines including the bibliography specifications are also lost
in the overview mode. 

Therefore, I need something to protect the bibliography lines and make them
accessible in a dedicated section.

Regards,
Mohamed





[O] Bibtex export

2012-12-17 Thread mohamed
Hi,

Is there any way to use something like :

* Section a

...

* Bibliography  [with some specific tag]
\clearpage
\bibliographystyle{acm}
\bibliography{biblio.bib}



My point is to avoid deleting the bibliography lines when deleting the previous
section (section a).

Thanks,










Re: [O] org-babel (org-babel-detangle)

2011-04-15 Thread Mohamed HIBTI
Eric Schulte schulte.eric at gmail.com writes:
 
 Hi Mohamed,
 
 The comment prompt you mentioned actually isn't babel specific but is
 raised by the `comment-region' function which is used by babel to
 comment out links.  Look at the documentation for `comment-region'
 (below) which has information on variables to set to avoid the comment
 syntax prompt in xml documents.
 
 Best -- Eric
 
 ,[C-h f comment-region]
 | comment-region is an interactive compiled Lisp function in
 | `newcomment.el'.
 | 
 | It is bound to C-c r.
 | 
 | (comment-region BEG END optional ARG)
 | 
 | Comment or uncomment each line in the region.
 | With just C-u prefix arg, uncomment each line in region BEG .. END.
 | Numeric prefix ARG means use ARG comment characters.
 | If ARG is negative, delete that many comment characters instead.
 | 
 | The strings used as comment starts are built from `comment-start'
 | and `comment-padding'; the strings used as comment ends are built
 | from `comment-end' and `comment-padding'.
 | 
 | By default, the `comment-start' markers are inserted at the
 | current indentation of the region, and comments are terminated on
 | each line (even for syntaxes in which newline does not end the
 | comment and blank lines do not get comments).  This can be
 | changed with `comment-style'.
 `
 
 Mohamed HIBTI mohamed.hibti at gmail.com writes:
 
  Eric Schulte schulte.eric at gmail.com writes:
 
  Hi Eric,
  I tried it, it worked quite well but I have a trouble with the syntax 
comment
  (No comment syntax is defined.  Use: ) Since I have too many blocks, is 
there 
  any way to set it as a local variable ?
 
  Regards,
  Mohamed
 
 
 
  P.S. 
  I tried without success
 
  #+ Local Variables :
  #+ org-babel-tangle-comment-format-beg: !--[[%link][source-name]]
  #+ org-babel-tangle-comment-format-end: source-name ends here--
  #+ End:
 
  and 
 
  # Local Variables :
  # org-babel-tangle-comment-format-beg: !--[[%link][source-name]]
  # org-babel-tangle-comment-format-end: source-name ends here--
  # End:
 
 
 
 
 
 
 
 
 

Thanks for this answer.
You are right ! 
In the line

 #+BEGIN_SRC XML :tangle ./sample04.xml :comment yes

XML (with capitals) is not identified with the xml-mode where the variables 
`comment-begin' and `comment-end' are well defined.
I changed to  

 #+BEGIN_SRC xml :tangle ./sample04.xml :comment yes

and it worked !

Best regards,
Mohamed
Thanks for this answer.
You are right ! 


In the line

 #+BEGIN_SRC XML :tangle ./sample04.xml :comment yes

XML (with capitals) is not identified with the xml-mode where the variables 
`comment-begin' and `comment-end' are well defined.
I changed to  

 #+BEGIN_SRC xml :tangle ./sample04.xml :comment yes

and it worked !

Best regards,
Mohamed




Re: [O] org-babel (org-babel-detangle)

2011-04-15 Thread Mohamed HIBTI
Eric Schulte schulte.e...@gmail.com writes:

Thanks for this answer.
I got it.




 Hi Mohamed,

 The comment prompt you mentioned actually isn't babel specific but is
 raised by the `comment-region' function which is used by babel to
 comment out links.  Look at the documentation for `comment-region'
 (below) which has information on variables to set to avoid the comment
 syntax prompt in xml documents.

 Best -- Eric

 ,[C-h f comment-region]
 | comment-region is an interactive compiled Lisp function in
 | `newcomment.el'.
 | 
 | It is bound to C-c r.
 | 
 | (comment-region BEG END optional ARG)
 | 
 | Comment or uncomment each line in the region.
 | With just C-u prefix arg, uncomment each line in region BEG .. END.
 | Numeric prefix ARG means use ARG comment characters.
 | If ARG is negative, delete that many comment characters instead.
 | 
 | The strings used as comment starts are built from `comment-start'
 | and `comment-padding'; the strings used as comment ends are built
 | from `comment-end' and `comment-padding'.
 | 
 | By default, the `comment-start' markers are inserted at the
 | current indentation of the region, and comments are terminated on
 | each line (even for syntaxes in which newline does not end the
 | comment and blank lines do not get comments).  This can be
 | changed with `comment-style'.
 `

 Mohamed HIBTI mohamed.hi...@gmail.com writes:

 Eric Schulte schulte.eric at gmail.com writes:

 Hi Eric,
 I tried it, it worked quite well but I have a trouble with the syntax comment
 (No comment syntax is defined.  Use: ) Since I have too many blocks, is 
 there 
 any way to set it as a local variable ?

 Regards,
 Mohamed



 P.S. 
 I tried without success

 #+ Local Variables :
 #+ org-babel-tangle-comment-format-beg: !--[[%link][source-name]]
 #+ org-babel-tangle-comment-format-end: source-name ends here--
 #+ End:

 and 

 # Local Variables :
 # org-babel-tangle-comment-format-beg: !--[[%link][source-name]]
 # org-babel-tangle-comment-format-end: source-name ends here--
 # End:











Re: [O] org-babel (org-babel-detangle)

2011-04-14 Thread Mohamed HIBTI
Eric Schulte schulte.eric at gmail.com writes:

Hi Eric,
I tried it, it worked quite well but I have a trouble with the syntax comment
(No comment syntax is defined.  Use: ) Since I have too many blocks, is there 
any way to set it as a local variable ?

Regards,
Mohamed



P.S. 
I tried without success

#+ Local Variables :
#+ org-babel-tangle-comment-format-beg: !--[[%link][source-name]]
#+ org-babel-tangle-comment-format-end: source-name ends here--
#+ End:

and 

# Local Variables :
# org-babel-tangle-comment-format-beg: !--[[%link][source-name]]
# org-babel-tangle-comment-format-end: source-name ends here--
# End:









[O] org-babel (org-babel-detangle)

2011-04-13 Thread Mohamed HIBTI
Dear all,
I have a problem with detangling org-babel fragments. 
May be this is because XML is not a supported feature/or I use it in a wrong 
way.
Any help is welcome.

My org-file is below. I can tangle this file to obtain the XML file but 
when I try to jump to org I get the message not in tangled code.

*** TODO Question that needs validation
:PROPERTIES:
:ID:   2788f65d-5613-40c1-80ae-ae966f4bb398
:END: 
#+BEGIN_SRC XML :tangle ./sample04.xml :comment yes 
define-fault-tree name=ACP-2
  !-- Le problème de cette question --
  !
labelAC Power System Bus 2/label
define-gate name=@ACP-2-1 code:calctype=Q
labelAC Power System Bus 2 fails/label
and
gate name=@ACP-2-2/
gate name=@ACP-2-3/
/and
/define-gate
/define-fault-tree
#+END_SRC

Best regards,

Mohamed




Re: [O] org-babel (org-babel-detangle)

2011-04-13 Thread Mohamed HIBTI
Eric Schulte schulte.e...@gmail.com writes:
Hi Eric,
Thanks for this swift reply. I will try :)
Best regards,
Mohamed
 Hi Mohamed,

 You have a small typo in your header arguments, :comment should be
 :comments.  After that change then code block should be tangled
 wrapped in comments, and then Babel can use these comments to jump back
 to the original org-mode file.

 That said, the detangle mechanisms are in need of some work,
 specifically regarding their use of the Org-mode's link resolution,
 which doesn't currently make it possible to programmatically jump to the
 results of a link.  So, until some time is spent fixing up the
 detangling machinery inside of Babel, you may not find detangling to be
 extremely robust.

 Best -- Eric

 Mohamed HIBTI mohamed.hi...@gmail.com writes:

 Dear all,
 I have a problem with detangling org-babel fragments. 
 May be this is because XML is not a supported feature/or I use it in a wrong 
 way.
 Any help is welcome.

 My org-file is below. I can tangle this file to obtain the XML file but 
 when I try to jump to org I get the message not in tangled code.

 *** TODO Question that needs validation
 :PROPERTIES:
 :ID:   2788f65d-5613-40c1-80ae-ae966f4bb398
 :END: 
 #+BEGIN_SRC XML :tangle ./sample04.xml :comment yes  
 define-fault-tree name=ACP-2
   !-- Le problme de cette question --
   !
 labelAC Power System Bus 2/label
 define-gate name=@ACP-2-1 code:calctype=Q
 labelAC Power System Bus 2 fails/label
 and
 gate name=@ACP-2-2/
 gate name=@ACP-2-3/
 /and
 /define-gate
 /define-fault-tree
 #+END_SRC

 Best regards,

 Mohamed







[O] How to cite org-mode in a publication

2011-03-30 Thread Mohamed HIBTI
Dear all,
I would like to cite org-mode in a publication. 
what would be the correct record ?

Thanks in advance,
Mohamed




[Orgmode] A mail client that is org-mode compatible

2011-02-16 Thread Mohamed HIBTI
Hi every one,
I would like to move to an emacs mail client that may be org-mode and MIME  
compatible. Have you any idea ? 




Regards,
Mohamed
P.S. any configuration stuff is welcome





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


[Orgmode] Re: A mail client that is org-mode compatible

2011-02-16 Thread Mohamed HIBTI
Manuel Hermenegildo herme at fi.upm.es writes:

 
 
 VM has pretty reasonable integration with org (make sure you use a
 recent version, i.e., 8.1.xx or later). --Manuel
 


I tried VM version 8.1.0. But I didn't succeed to set it correctly.

Mohamed


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


[Orgmode] Re: A mail client that is org-mode compatible

2011-02-16 Thread Mohamed HIBTI


Thanks Dan,
I don't know the functions developed by Eric Schulte.
But if you could share any configuration template it would be helpful.
Regards,
Mohamed





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


[Orgmode] Re: A mail client that is org-mode compatible

2011-02-16 Thread Mohamed HIBTI
Carl Bolduc carlbolduc at gmail.com writes:

 
  gnus is an obvious candidate. It can be a bit of a steep learning curve
  initially. I use it to interact with two different gmail accounts via
  imap, as well as a few nntp groups, like this one. I'm finding the
  development version of gnus a pleasure to use for this: it is fast, and
  there's a very nice search facility both for imap and for nntp
  groups. (E.g. I used to find it hard to reply in an old thread, but not
  any longer)
 
 Hi Dan,
 
 Could you share some details of your gnus implementation with GMail? I
 have been trying to setup this based on various sites and I never
 succeded.
 
 I would love to use gnus with gmail and Org-Mode.
 
 Carl
 
 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode at gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode
 
 

Thank you all for this information.

I will try all these alternatives
By the way I tried VM but I had an error message with POP over SSL.
I have to try to fix that.
  
with Rmail I couldn't read correctly MIME  and the org-store-link produced an 
error with org-remove-angle-brackets(nil)

Mohamed



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