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>
<tmdoc-title|Link-Konstrukte>
@ -109,9 +109,13 @@
<|explain>
Ein ausführbares <scheme>-Skript, <src-arg|script> einbinden, dass bei
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
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
Skripte eingeleitet werden sollen, eine Bestätigung verlangt. Das
@ -133,7 +137,6 @@
<\initial>
<\collection>
<associate|language|german>
<associate|preamble|false>
</collection>
</initial>

View File

@ -1,4 +1,4 @@
<TeXmacs|1.0.7.1>
<TeXmacs|1.0.7.21>
<style|tmdoc>
@ -98,9 +98,13 @@
to content>
<|explain>
Bind a <scheme> <src-arg|script> to a double mouse click on
<src-arg|content>. For instance, when clicking <action|here|(system
"xterm &")>, you may launch an <verbatim|xterm>. This action is encoded
by <inactive*|<action|here|(system "xterm &")>>.
<src-arg|content>. For instance, when clicking <action|here|(lambda ()
(system "xterm &"))>, you may launch an <verbatim|xterm>. This action is
encoded by
<\tm-fragment>
<inactive*|<action|here|(lambda () (system "xterm &"))>>
</tm-fragment>
When clicking on actions, the user is usually prompted for confirmation,
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
Texts. A copy of the license is included in the section entitled "GNU Free
Documentation License".>
</body>
</body>
<initial|<\collection>
</collection>>

View File

@ -83,12 +83,12 @@
<markup|extern> and <markup|action> macros. For instance, the default
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.
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
secure:
<\scm-code>
(tm-define (mouse-unfold)
(tm-define mouse-unfold
\ \ (:secure #t)

View File

@ -1,4 +1,4 @@
<TeXmacs|1.0.7.16>
<TeXmacs|1.0.7.21>
<style|tmdoc>
@ -239,8 +239,8 @@
<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
<scheme> command <src-arg|script> is invoked when clicking on the
<src-arg|text>. For instance, when clicking <action|here|(system
"xterm")>, you will launch an<nbsp><verbatim|xterm>.
<src-arg|text>. For instance, when clicking <action|here|(lambda ()
(system "xterm"))>, you will launch an<nbsp><verbatim|xterm>.
<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
@ -262,10 +262,10 @@
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
this reason, <TeXmacs> implements a way to test whether scripts can be
considered secure or not. For instance, when clicking <action|here|(system
"xterm")> (so as to launch an <verbatim|xterm>), the editor will prompt you
by default in order to confirm whether you wish to execute this script. The
desired level of security can be specified in
considered secure or not. For instance, when clicking <action|here|(lambda
() (system "xterm"))> (so as to launch an <verbatim|xterm>), the editor
will prompt you by default in order to confirm whether you wish to execute
this script. The desired level of security can be specified in
<menu|Edit|Preferences|Security>. When writing your own <scheme> extensions
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
Texts. A copy of the license is included in the section entitled "GNU Free
Documentation License".>
</body>
</body>
<initial|<\collection>
</collection>>