Mercurial > emacs
comparison lispintro/emacs-lisp-intro.texi @ 50621:0e3a9e34f995
Thanks to Hugo Gayosso, fix minor typos.
author | Robert J. Chassell <bob@rattlesnake.com> |
---|---|
date | Thu, 17 Apr 2003 14:56:24 +0000 |
parents | 894ad3892c16 |
children | aef53887e0ed |
comparison
equal
deleted
inserted
replaced
50620:c76e37ef3b10 | 50621:0e3a9e34f995 |
---|---|
5679 and false if its argument is true. So if @code{(bufferp buffer)} | 5679 and false if its argument is true. So if @code{(bufferp buffer)} |
5680 returns true, the @code{not} expression returns false and vice-versa: | 5680 returns true, the @code{not} expression returns false and vice-versa: |
5681 what is ``not true'' is false and what is ``not false'' is true. | 5681 what is ``not true'' is false and what is ``not false'' is true. |
5682 | 5682 |
5683 Using this test, the @code{if} expression works as follows: when the | 5683 Using this test, the @code{if} expression works as follows: when the |
5684 value of the variable @code{buffer} is actually a buffer rather then | 5684 value of the variable @code{buffer} is actually a buffer rather than |
5685 its name, the true-or-false-test returns false and the @code{if} | 5685 its name, the true-or-false-test returns false and the @code{if} |
5686 expression does not evaluate the then-part. This is fine, since we do | 5686 expression does not evaluate the then-part. This is fine, since we do |
5687 not need to do anything to the variable @code{buffer} if it really is | 5687 not need to do anything to the variable @code{buffer} if it really is |
5688 a buffer. | 5688 a buffer. |
5689 | 5689 |
8335 @code{kill-append}. When the @code{kill-append} function is | 8335 @code{kill-append}. When the @code{kill-append} function is |
8336 evaluated, it is bound to the value returned by evaluating the actual | 8336 evaluated, it is bound to the value returned by evaluating the actual |
8337 argument. In this case, this is the expression @code{(< end beg)}. | 8337 argument. In this case, this is the expression @code{(< end beg)}. |
8338 This expression does not directly determine whether the killed text in | 8338 This expression does not directly determine whether the killed text in |
8339 this command is located before or after the kill text of the last | 8339 this command is located before or after the kill text of the last |
8340 command; what is does is determine whether the value of the variable | 8340 command; what it does is determine whether the value of the variable |
8341 @code{end} is less than the value of the variable @code{beg}. If it | 8341 @code{end} is less than the value of the variable @code{beg}. If it |
8342 is, it means that the user is most likely heading towards the | 8342 is, it means that the user is most likely heading towards the |
8343 beginning of the buffer. Also, the result of evaluating the predicate | 8343 beginning of the buffer. Also, the result of evaluating the predicate |
8344 expression, @code{(< end beg)}, will be true and the text will be | 8344 expression, @code{(< end beg)}, will be true and the text will be |
8345 prepended before the previous text. On the other hand, if the value of | 8345 prepended before the previous text. On the other hand, if the value of |