1
0
Fork 0

Completed reorganization of actions

This commit is contained in:
Joris van der Hoeven 2013-11-14 13:33:16 +00:00
parent 652d764f1e
commit 24d0da921d
4 changed files with 33 additions and 20 deletions

View File

@ -1,6 +1,6 @@
<TeXmacs|1.0.7.1> <TeXmacs|1.0.7.21>
<style|tmdoc> <style|<tuple|tmdoc|german>>
<\body> <\body>
<tmdoc-title|Link-Konstrukte> <tmdoc-title|Link-Konstrukte>
@ -109,9 +109,13 @@
<|explain> <|explain>
Ein ausführbares <scheme>-Skript, <src-arg|script> einbinden, dass bei Ein ausführbares <scheme>-Skript, <src-arg|script> einbinden, dass bei
einem doppelten Mausklick auf <src-arg|content> ausgeführt wird. einem doppelten Mausklick auf <src-arg|content> ausgeführt wird.
Beispielsweise, wenn Sie auf <action|hier|(system "xterm &")> Beispielsweise, wenn Sie auf <action|hier|(lambda () (system "xterm &"))>
doppelklicken, erzeugen Sie ein neues <verbatim|xterm>. Der Code dafür doppelklicken, erzeugen Sie ein neues <verbatim|xterm>. Der Code dafür
ist <inactive*|<action|hier|(system "xterm &")>>. ist
<\tm-fragment>
<inactive*|<action|hier|(lambda () (system "xterm &"))>>
</tm-fragment>
Aus Sicherheitsgründen wird vom Nutzer normalerweise, wenn ausführbare Aus Sicherheitsgründen wird vom Nutzer normalerweise, wenn ausführbare
Skripte eingeleitet werden sollen, eine Bestätigung verlangt. Das Skripte eingeleitet werden sollen, eine Bestätigung verlangt. Das
@ -133,7 +137,6 @@
<\initial> <\initial>
<\collection> <\collection>
<associate|language|german>
<associate|preamble|false> <associate|preamble|false>
</collection> </collection>
</initial> </initial>

View File

@ -1,4 +1,4 @@
<TeXmacs|1.0.7.1> <TeXmacs|1.0.7.21>
<style|tmdoc> <style|tmdoc>
@ -98,9 +98,13 @@
to content> to content>
<|explain> <|explain>
Bind a <scheme> <src-arg|script> to a double mouse click on Bind a <scheme> <src-arg|script> to a double mouse click on
<src-arg|content>. For instance, when clicking <action|here|(system <src-arg|content>. For instance, when clicking <action|here|(lambda ()
"xterm &")>, you may launch an <verbatim|xterm>. This action is encoded (system "xterm &"))>, you may launch an <verbatim|xterm>. This action is
by <inactive*|<action|here|(system "xterm &")>>. encoded by
<\tm-fragment>
<inactive*|<action|here|(lambda () (system "xterm &"))>>
</tm-fragment>
When clicking on actions, the user is usually prompted for confirmation, When clicking on actions, the user is usually prompted for confirmation,
so as to avoid security problems. The user may control the desired level so as to avoid security problems. The user may control the desired level
@ -118,4 +122,7 @@
Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
Texts. A copy of the license is included in the section entitled "GNU Free Texts. A copy of the license is included in the section entitled "GNU Free
Documentation License".> Documentation License".>
</body> </body>
<initial|<\collection>
</collection>>

View File

@ -83,12 +83,12 @@
<markup|extern> and <markup|action> macros. For instance, the default <markup|extern> and <markup|action> macros. For instance, the default
implementation of the <markup|fold> tag allows the user to click on the implementation of the <markup|fold> tag allows the user to click on the
``<math|<op|\<circ\>>>'' before the folded text so as to unfold the tag. ``<math|<op|\<circ\>>>'' before the folded text so as to unfold the tag.
When doing this, the scheme script <scm|(mouse-unfold)> is launched. When doing this, the scheme script <scm|mouse-unfold> is launched.
However, for this to work, the <scm|mouse-unfold> function needs to be However, for this to work, the <scm|mouse-unfold> function needs to be
secure: secure:
<\scm-code> <\scm-code>
(tm-define (mouse-unfold) (tm-define mouse-unfold
\ \ (:secure #t) \ \ (:secure #t)

View File

@ -1,4 +1,4 @@
<TeXmacs|1.0.7.16> <TeXmacs|1.0.7.21>
<style|tmdoc> <style|tmdoc>
@ -239,8 +239,8 @@
<item*|<with|font-series|medium|<explain-macro|action|text|script>>>This <item*|<with|font-series|medium|<explain-macro|action|text|script>>>This
tag works like a hyperlink with body <src-arg|text>, but such that the tag works like a hyperlink with body <src-arg|text>, but such that the
<scheme> command <src-arg|script> is invoked when clicking on the <scheme> command <src-arg|script> is invoked when clicking on the
<src-arg|text>. For instance, when clicking <action|here|(system <src-arg|text>. For instance, when clicking <action|here|(lambda ()
"xterm")>, you will launch an<nbsp><verbatim|xterm>. (system "xterm"))>, you will launch an<nbsp><verbatim|xterm>.
<item*|<with|font-series|medium|<explain-macro|extern|fun|arg-1|...|arg-n>>>This <item*|<with|font-series|medium|<explain-macro|extern|fun|arg-1|...|arg-n>>>This
tag is used in order to implement macros whose body is written in tag is used in order to implement macros whose body is written in
@ -262,10 +262,10 @@
within documents carries as risk: an evil person might send you a document within documents carries as risk: an evil person might send you a document
with a script which attempts to erase your hard disk (for instance). For with a script which attempts to erase your hard disk (for instance). For
this reason, <TeXmacs> implements a way to test whether scripts can be this reason, <TeXmacs> implements a way to test whether scripts can be
considered secure or not. For instance, when clicking <action|here|(system considered secure or not. For instance, when clicking <action|here|(lambda
"xterm")> (so as to launch an <verbatim|xterm>), the editor will prompt you () (system "xterm"))> (so as to launch an <verbatim|xterm>), the editor
by default in order to confirm whether you wish to execute this script. The will prompt you by default in order to confirm whether you wish to execute
desired level of security can be specified in this script. The desired level of security can be specified in
<menu|Edit|Preferences|Security>. When writing your own <scheme> extensions <menu|Edit|Preferences|Security>. When writing your own <scheme> extensions
to <TeXmacs>, it is also possible to define routines as being secure. to <TeXmacs>, it is also possible to define routines as being secure.
@ -277,4 +277,7 @@
Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
Texts. A copy of the license is included in the section entitled "GNU Free Texts. A copy of the license is included in the section entitled "GNU Free
Documentation License".> Documentation License".>
</body> </body>
<initial|<\collection>
</collection>>