aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Belaïche2025-07-10 16:46:25 +0200
committerVincent Belaïche2025-07-10 16:46:25 +0200
commit3c0f6584bf81846a1fe69c5ba352d45e08b50279 (patch)
treebc3aa8f6d226771c20191a5bec7f527fdb3d0333
parentb2e163ad98dcd0aa9df7eb3e3c8e43ef50cde9b8 (diff)
downloademacs-scratch/ses-dynamic-coordinate-bindings.tar.gz
emacs-scratch/ses-dynamic-coordinate-bindings.zip
Document ses--row and ses--col dynamic binding.scratch/ses-dynamic-coordinate-bindings
* doc/translations/fr/misc/ses-fr.texi (Local printer functions) * doc/misc/ses.texi (Local printer functions): Document `ses--row' and `ses--col' being dynamically bound to the cell coordinates. * doc/translations/fr/misc/ses-fr.texi (Nonrelocatable references): * doc/misc/ses.texi (Nonrelocatable references): `row' renamed to `ses--row', and so for `col' to `ses--col'.
-rw-r--r--doc/misc/ses.texi8
-rw-r--r--doc/translations/fr/misc/ses-fr.texi10
2 files changed, 14 insertions, 4 deletions
diff --git a/doc/misc/ses.texi b/doc/misc/ses.texi
index 6d580b07d04..63c8480203e 100644
--- a/doc/misc/ses.texi
+++ b/doc/misc/ses.texi
@@ -569,6 +569,10 @@ If you replace command @code{ses-define-local-printer} by function
569the definition will occur only if a local printer with the same name 569the definition will occur only if a local printer with the same name
570in not already defined. 570in not already defined.
571 571
572Variables @code{ses--row} and @code{ses--col} are dynamically set to the
573coordinates of the current cell, so that you may have the output depend
574not only of the cell's content, but as well of its position.
575
572 576
573@node Writing a lambda printer function 577@node Writing a lambda printer function
574@subsection Writing a lambda printer function 578@subsection Writing a lambda printer function
@@ -1290,8 +1294,8 @@ recorded as a dependency of this cell, so this cell will not be
1290updated automatically when @samp{B3} is changed, this is why using 1294updated automatically when @samp{B3} is changed, this is why using
1291@code{ses-rename-cell} is most of the time preferable. 1295@code{ses-rename-cell} is most of the time preferable.
1292 1296
1293The variables @code{row} and @code{col} are dynamically bound while a 1297The variables @code{ses--row} and @code{ses--col} are dynamically bound
1294cell formula is being evaluated. You can use 1298while a cell formula is being evaluated. You can use
1295@lisp 1299@lisp
1296(ses-cell-value row 0) 1300(ses-cell-value row 0)
1297@end lisp 1301@end lisp
diff --git a/doc/translations/fr/misc/ses-fr.texi b/doc/translations/fr/misc/ses-fr.texi
index 6790df8291c..46998ce2edd 100644
--- a/doc/translations/fr/misc/ses-fr.texi
+++ b/doc/translations/fr/misc/ses-fr.texi
@@ -640,6 +640,11 @@ fonction @code{ses-define-if-new-local-printer}
640la définition ne se produira que si aucune fonction d’impression de 640la définition ne se produira que si aucune fonction d’impression de
641même nom n’est déjà définie. 641même nom n’est déjà définie.
642 642
643Les variables @code{ses--row} et @code{ses--col} sont dynamiquement
644réglées aux coordonnées de la cellule courante pendant l'évaluation de
645la fonction d'impression, de sorte que vous pouvez faire dépendre la
646sortie non seulement du contenu de la cellule mais aussi de sa position.
647
643 648
644@node Writing a lambda printer function 649@node Writing a lambda printer function
645@subsection Écrire une fonctions d’impression lambda 650@subsection Écrire une fonctions d’impression lambda
@@ -1457,8 +1462,9 @@ cellule ne sera pas mise à jour automatiquement quand @samp{B3} est
1457modifiée, c’est pourquoi l’usage de @code{ses-rename-cell} est la 1462modifiée, c’est pourquoi l’usage de @code{ses-rename-cell} est la
1458plupart du temps préférable. 1463plupart du temps préférable.
1459 1464
1460Les variables @code{row} et @code{col} sont liées dynamiquement 1465Les variables @code{ses--row} et @code{ses--col} sont liées
1461pendant l’évaluation d’une formule de cellule. Vous pouvez utiliser 1466dynamiquement pendant l’évaluation d’une formule de cellule. Vous pouvez
1467utiliser
1462@lisp 1468@lisp
1463(ses-cell-value row 0) 1469(ses-cell-value row 0)
1464@end lisp 1470@end lisp