emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* linking to emacs info nodes? Multiline comments?
@ 2010-04-19 14:26 LanX
  2010-04-19 14:52 ` Dan Davison
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: LanX @ 2010-04-19 14:26 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 448 bytes --]

Hi

is there an easy way to insert links to the emacs info manuals?

the following works for commands only

[[elisp:(Info-goto-emacs-command-node "Info-goto-emacs-command-node")][Info
goto emacs command node]]

BTW: whats the recommended way to insert multi-line comments in elisp code?

ATM I'm assigning a string to a dummy variable, with the drawback that
doublequotes are forbidden:

(setq org "
  yadda yadda
")

Thanks for any help :)
  Rolf

[-- Attachment #1.2: Type: text/html, Size: 532 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: linking to emacs info nodes? Multiline comments?
  2010-04-19 14:26 linking to emacs info nodes? Multiline comments? LanX
@ 2010-04-19 14:52 ` Dan Davison
  2010-04-19 15:00 ` Nick Dokos
  2010-04-19 15:09 ` Sebastian Rose
  2 siblings, 0 replies; 7+ messages in thread
From: Dan Davison @ 2010-04-19 14:52 UTC (permalink / raw)
  To: LanX; +Cc: emacs-orgmode

LanX <lanx.perl@googlemail.com> writes:

> Hi
>
> is there an easy way to insert links to the emacs info manuals?
>
> the following works for commands only
>
> [[elisp:(Info-goto-emacs-command-node "Info-goto-emacs-command-node")][Info
> goto emacs command node]]


Hi Rolf,

Org has links to Info already. In an info buffer use org-store-link
(often bound to C-c l), then back in org use C-c C-l (org-insert-link).

>
> BTW: whats the recommended way to insert multi-line comments in elisp code?

elisp doesn't have any special mechanism other than ; at beginning of
line. But you know about M-; and M-q? Select a region of multiple lines,
M-; comments it all out (or uncomments if commented), M-q tidies it up,
keeping comment chars in correct place.

Dan

>
> ATM I'm assigning a string to a dummy variable, with the drawback that
> doublequotes are forbidden:
>
> (setq org "
>   yadda yadda
> ")
>
> Thanks for any help :)
>   Rolf
> _______________________________________________
> 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: linking to emacs info nodes? Multiline comments?
  2010-04-19 14:26 linking to emacs info nodes? Multiline comments? LanX
  2010-04-19 14:52 ` Dan Davison
@ 2010-04-19 15:00 ` Nick Dokos
  2010-04-19 15:09 ` Sebastian Rose
  2 siblings, 0 replies; 7+ messages in thread
From: Nick Dokos @ 2010-04-19 15:00 UTC (permalink / raw)
  To: LanX; +Cc: nicholas.dokos, emacs-orgmode

LanX <lanx.perl@googlemail.com> wrote:


> is there an easy way to insert links to the emacs info manuals?
> 
> the following works for commands only
> 
> [[elisp:(Info-goto-emacs-command-node "Info-goto-emacs-command-node")][Info
> goto emacs command node]]
> 

Assuming you have done the standard keybindings (C-c l for org-store-link everywhere
- see section 1.3, "Activation", in the Org manual for more details):

Visit the info node of interest, do C-c l to store the link, then visit an org
file and do C-c C-l to insert the link.

Here is an example of what was inserted, when I tried the above procedure
on the indicated Info node:

[[info:org:Processing%20LaTeX%20fragments][Processing LaTeX fragments]]



> BTW: whats the recommended way to insert multi-line comments in elisp code?
> 
> ATM I'm assigning a string to a dummy variable, with the drawback that
> doublequotes are forbidden:
> 
> (setq org "
>   yadda yadda
> ")
> 

I don't understand the context (why do you have to define a variable exactly?),
but you can include double quotes in a lisp string by escaping it with a backslash:

(setq org "
 yadda \"yadda\"
")

see section 2.3.8.1, "Syntax for Strings" in the Elisp manual.

HTH,
Nick

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: linking to emacs info nodes? Multiline comments?
  2010-04-19 14:26 linking to emacs info nodes? Multiline comments? LanX
  2010-04-19 14:52 ` Dan Davison
  2010-04-19 15:00 ` Nick Dokos
@ 2010-04-19 15:09 ` Sebastian Rose
  2010-04-19 15:22   ` LanX
  2 siblings, 1 reply; 7+ messages in thread
From: Sebastian Rose @ 2010-04-19 15:09 UTC (permalink / raw)
  To: LanX; +Cc: emacs-orgmode

LanX <lanx.perl@googlemail.com> writes:
> Hi
>
> is there an easy way to insert links to the emacs info manuals?

I do it this way:

1.  C-h i
2.  Navigate to the desirec node
3.  C-c l
4.  Switch to the Org-mode buffer I want to insert the info link in.
5.  C-c C-l UP RET RET


On my system
       `C-c l'   is bound to `org-store-link'
   and `C-c C-l' is bound to `org-insert-link'.

I think those are the defaults, but you might need to set `C-c l'
globally to make it work in any mode.


> BTW: whats the recommended way to insert multi-line comments in elisp code?

There no special multiline comments.


> ATM I'm assigning a string to a dummy variable, with the drawback that
> doublequotes are forbidden:
>
> (setq org "
>   yadda yadda
> ")


 (setq org "\n   yadda yadda\n ")




HTH

  Sebastian

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: linking to emacs info nodes? Multiline comments?
  2010-04-19 15:09 ` Sebastian Rose
@ 2010-04-19 15:22   ` LanX
  2010-04-20 16:12     ` Nick Dokos
  0 siblings, 1 reply; 7+ messages in thread
From: LanX @ 2010-04-19 15:22 UTC (permalink / raw)
  To: Sebastian Rose; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 419 bytes --]

Thanx, linking works! :)

Anyway this Link-To-Info syntax doesn't seem to be documented on the web
page...

http://orgmode.org/manual/External-links.html#External-links


> I don't understand the context (why do you have to define a variable
exactly?),
> but you can include double quotes in a lisp string by escaping it with a
backslash:

I was trying to embed org-mode (and other) syntax in lisp-code.

cheers
  Rolf

[-- Attachment #1.2: Type: text/html, Size: 583 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: linking to emacs info nodes? Multiline comments?
  2010-04-19 15:22   ` LanX
@ 2010-04-20 16:12     ` Nick Dokos
  2010-04-20 18:04       ` Carsten Dominik
  0 siblings, 1 reply; 7+ messages in thread
From: Nick Dokos @ 2010-04-20 16:12 UTC (permalink / raw)
  To: LanX; +Cc: nicholas.dokos, emacs-orgmode

LanX <lanx.perl@googlemail.com> wrote:

> Thanx, linking works! :)
> 
> Anyway this Link-To-Info syntax doesn't seem to be documented on the web page...
> 
> http://orgmode.org/manual/External-links.html#External-links
> 

Here's a patch:

diff --git a/doc/org.texi b/doc/org.texi
index ead8372..0fc2635 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -2826,6 +2826,7 @@ gnus:group                                @r{Gnus group link}
 gnus:group#id                             @r{Gnus article link}
 bbdb:R.*Stallman                          @r{BBDB link (with regexp)}
 irc:/irc.com/#emacs/bob                   @r{IRC link}
+info:org:External%20links                 @r{Info node link (with encoded space)}
 shell:ls *.org                            @r{A shell command}
 elisp:org-agenda                          @r{Interactive Elisp command}
 elisp:(find-file-other-frame "Elisp.org") @r{Elisp form to evaluate}

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: linking to emacs info nodes? Multiline comments?
  2010-04-20 16:12     ` Nick Dokos
@ 2010-04-20 18:04       ` Carsten Dominik
  0 siblings, 0 replies; 7+ messages in thread
From: Carsten Dominik @ 2010-04-20 18:04 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: LanX, emacs-orgmode

Thanks a lot, the patch is applied.

- Carsten

On Apr 20, 2010, at 6:12 PM, Nick Dokos wrote:

> LanX <lanx.perl@googlemail.com> wrote:
>
>> Thanx, linking works! :)
>>
>> Anyway this Link-To-Info syntax doesn't seem to be documented on  
>> the web page...
>>
>> http://orgmode.org/manual/External-links.html#External-links
>>
>
> Here's a patch:
>
> diff --git a/doc/org.texi b/doc/org.texi
> index ead8372..0fc2635 100644
> --- a/doc/org.texi
> +++ b/doc/org.texi
> @@ -2826,6 +2826,7 @@ gnus:group                                 
> @r{Gnus group link}
> gnus:group#id                             @r{Gnus article link}
> bbdb:R.*Stallman                          @r{BBDB link (with regexp)}
> irc:/irc.com/#emacs/bob                   @r{IRC link}
> +info:org:External%20links                 @r{Info node link (with  
> encoded space)}
> shell:ls *.org                            @r{A shell command}
> elisp:org-agenda                          @r{Interactive Elisp  
> command}
> elisp:(find-file-other-frame "Elisp.org") @r{Elisp form to evaluate}
>
>
>
> _______________________________________________
> 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

- Carsten

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-04-20 18:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-19 14:26 linking to emacs info nodes? Multiline comments? LanX
2010-04-19 14:52 ` Dan Davison
2010-04-19 15:00 ` Nick Dokos
2010-04-19 15:09 ` Sebastian Rose
2010-04-19 15:22   ` LanX
2010-04-20 16:12     ` Nick Dokos
2010-04-20 18:04       ` Carsten Dominik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).