From 0fe31d66180383895218c69e01569e4202262c0c Mon Sep 17 00:00:00 2001 From: Joris van der Hoeven Date: Wed, 21 Mar 2012 14:40:12 +0000 Subject: [PATCH] Replace no_name predicate by buffer_has_name --- devel/scheme/overview/overview-start.en.tm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/devel/scheme/overview/overview-start.en.tm b/devel/scheme/overview/overview-start.en.tm index 2074613..8e9f49e 100644 --- a/devel/scheme/overview/overview-start.en.tm +++ b/devel/scheme/overview/overview-start.en.tm @@ -76,7 +76,7 @@ automatically select a certain style when starting a new document: <\scm-code> - (if (no-name?) + (if (not (buffer-has-name? (current-buffer))) \ \ \ \ (begin @@ -85,11 +85,11 @@ \ \ \ \ \ \ (buffer-pretend-saved (current-buffer)))) - Notice that the check is important: when omitted, the - styles of existing documents would also be changed to . - The function is used in order to avoid - to complain about unsaved documents when leaving without changing - the document. + Notice that the ``no name'' check is important: when omitted, the styles of + existing documents would also be changed to . The function + is used in order to avoid to complain + about unsaved documents when leaving without changing the + document. Another typical use of is when you mainly want to use as a front-end to another system. For instance, the @@ -97,7 +97,7 @@ session for every newly opened document: <\scm-code> - (if (no-name?) + (if (not (buffer-has-name? (current-buffer))) \ \ \ \ (make-session "maxima" (url-\string (current-buffer))))