diff options
| author | Vincent Belaïche | 2025-07-10 16:46:25 +0200 |
|---|---|---|
| committer | Vincent Belaïche | 2025-07-10 16:46:25 +0200 |
| commit | 3c0f6584bf81846a1fe69c5ba352d45e08b50279 (patch) | |
| tree | bc3aa8f6d226771c20191a5bec7f527fdb3d0333 | |
| parent | b2e163ad98dcd0aa9df7eb3e3c8e43ef50cde9b8 (diff) | |
| download | emacs-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.texi | 8 | ||||
| -rw-r--r-- | doc/translations/fr/misc/ses-fr.texi | 10 |
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 | |||
| 569 | the definition will occur only if a local printer with the same name | 569 | the definition will occur only if a local printer with the same name |
| 570 | in not already defined. | 570 | in not already defined. |
| 571 | 571 | ||
| 572 | Variables @code{ses--row} and @code{ses--col} are dynamically set to the | ||
| 573 | coordinates of the current cell, so that you may have the output depend | ||
| 574 | not 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 | |||
| 1290 | updated automatically when @samp{B3} is changed, this is why using | 1294 | updated 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 | ||
| 1293 | The variables @code{row} and @code{col} are dynamically bound while a | 1297 | The variables @code{ses--row} and @code{ses--col} are dynamically bound |
| 1294 | cell formula is being evaluated. You can use | 1298 | while 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} | |||
| 640 | la définition ne se produira que si aucune fonction d’impression de | 640 | la définition ne se produira que si aucune fonction d’impression de |
| 641 | même nom n’est déjà définie. | 641 | même nom n’est déjà définie. |
| 642 | 642 | ||
| 643 | Les variables @code{ses--row} et @code{ses--col} sont dynamiquement | ||
| 644 | réglées aux coordonnées de la cellule courante pendant l'évaluation de | ||
| 645 | la fonction d'impression, de sorte que vous pouvez faire dépendre la | ||
| 646 | sortie 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 | |||
| 1457 | modifiée, c’est pourquoi l’usage de @code{ses-rename-cell} est la | 1462 | modifiée, c’est pourquoi l’usage de @code{ses-rename-cell} est la |
| 1458 | plupart du temps préférable. | 1463 | plupart du temps préférable. |
| 1459 | 1464 | ||
| 1460 | Les variables @code{row} et @code{col} sont liées dynamiquement | 1465 | Les variables @code{ses--row} et @code{ses--col} sont liées |
| 1461 | pendant l’évaluation d’une formule de cellule. Vous pouvez utiliser | 1466 | dynamiquement pendant l’évaluation d’une formule de cellule. Vous pouvez |
| 1467 | utiliser | ||
| 1462 | @lisp | 1468 | @lisp |
| 1463 | (ses-cell-value row 0) | 1469 | (ses-cell-value row 0) |
| 1464 | @end lisp | 1470 | @end lisp |