aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/keymaps.texi2
-rw-r--r--doc/lispref/syntax.texi8
-rw-r--r--doc/misc/calc.texi6
-rw-r--r--doc/misc/cl.texi2
4 files changed, 9 insertions, 9 deletions
diff --git a/doc/lispref/keymaps.texi b/doc/lispref/keymaps.texi
index cc2e11e0b6d..38e89c6cfdd 100644
--- a/doc/lispref/keymaps.texi
+++ b/doc/lispref/keymaps.texi
@@ -1660,7 +1660,7 @@ to turn the character that follows into a Hyper character:
1660(defun hyperify (prompt) 1660(defun hyperify (prompt)
1661 (let ((e (read-event))) 1661 (let ((e (read-event)))
1662 (vector (if (numberp e) 1662 (vector (if (numberp e)
1663 (logior (lsh 1 24) e) 1663 (logior (ash 1 24) e)
1664 (if (memq 'hyper (event-modifiers e)) 1664 (if (memq 'hyper (event-modifiers e))
1665 e 1665 e
1666 (add-event-modifier "H-" e)))))) 1666 (add-event-modifier "H-" e))))))
diff --git a/doc/lispref/syntax.texi b/doc/lispref/syntax.texi
index 71c97fdae8c..dcfade3f67d 100644
--- a/doc/lispref/syntax.texi
+++ b/doc/lispref/syntax.texi
@@ -1014,13 +1014,13 @@ corresponds to each syntax flag.
1014@item 1014@item
1015@i{Prefix} @tab @i{Flag} @tab @i{Prefix} @tab @i{Flag} 1015@i{Prefix} @tab @i{Flag} @tab @i{Prefix} @tab @i{Flag}
1016@item 1016@item
1017@samp{1} @tab @code{(lsh 1 16)} @tab @samp{p} @tab @code{(lsh 1 20)} 1017@samp{1} @tab @code{(ash 1 16)} @tab @samp{p} @tab @code{(ash 1 20)}
1018@item 1018@item
1019@samp{2} @tab @code{(lsh 1 17)} @tab @samp{b} @tab @code{(lsh 1 21)} 1019@samp{2} @tab @code{(ash 1 17)} @tab @samp{b} @tab @code{(ash 1 21)}
1020@item 1020@item
1021@samp{3} @tab @code{(lsh 1 18)} @tab @samp{n} @tab @code{(lsh 1 22)} 1021@samp{3} @tab @code{(ash 1 18)} @tab @samp{n} @tab @code{(ash 1 22)}
1022@item 1022@item
1023@samp{4} @tab @code{(lsh 1 19)} @tab @samp{c} @tab @code{(lsh 1 23)} 1023@samp{4} @tab @code{(ash 1 19)} @tab @samp{c} @tab @code{(ash 1 23)}
1024@end multitable 1024@end multitable
1025 1025
1026@defun string-to-syntax desc 1026@defun string-to-syntax desc
diff --git a/doc/misc/calc.texi b/doc/misc/calc.texi
index b1b38620fff..98ef6daa2c1 100644
--- a/doc/misc/calc.texi
+++ b/doc/misc/calc.texi
@@ -32717,7 +32717,7 @@ create an intermediate set.
32717 (while (> n 0) 32717 (while (> n 0)
32718 (if (oddp n) 32718 (if (oddp n)
32719 (setq count (1+ count))) 32719 (setq count (1+ count)))
32720 (setq n (lsh n -1))) 32720 (setq n (ash n -1)))
32721 count)) 32721 count))
32722@end smallexample 32722@end smallexample
32723 32723
@@ -32761,7 +32761,7 @@ routines are especially fast when dividing by an integer less than
32761 (let ((count 0)) 32761 (let ((count 0))
32762 (while (> n 0) 32762 (while (> n 0)
32763 (setq count (+ count (logand n 1)) 32763 (setq count (+ count (logand n 1))
32764 n (lsh n -1))) 32764 n (ash n -1)))
32765 count)) 32765 count))
32766@end smallexample 32766@end smallexample
32767 32767
@@ -32774,7 +32774,7 @@ uses.
32774 32774
32775The @code{idivmod} function does an integer division, returning both 32775The @code{idivmod} function does an integer division, returning both
32776the quotient and the remainder at once. Again, note that while it 32776the quotient and the remainder at once. Again, note that while it
32777might seem that @samp{(logand n 511)} and @samp{(lsh n -9)} are 32777might seem that @samp{(logand n 511)} and @samp{(ash n -9)} are
32778more efficient ways to split off the bottom nine bits of @code{n}, 32778more efficient ways to split off the bottom nine bits of @code{n},
32779actually they are less efficient because each operation is really 32779actually they are less efficient because each operation is really
32780a division by 512 in disguise; @code{idivmod} allows us to do the 32780a division by 512 in disguise; @code{idivmod} allows us to do the
diff --git a/doc/misc/cl.texi b/doc/misc/cl.texi
index 77105d3364e..6985f194213 100644
--- a/doc/misc/cl.texi
+++ b/doc/misc/cl.texi
@@ -784,7 +784,7 @@ default. Some examples:
784(cl-deftype null () '(satisfies null)) ; predefined 784(cl-deftype null () '(satisfies null)) ; predefined
785(cl-deftype list () '(or null cons)) ; predefined 785(cl-deftype list () '(or null cons)) ; predefined
786(cl-deftype unsigned-byte (&optional bits) 786(cl-deftype unsigned-byte (&optional bits)
787 (list 'integer 0 (if (eq bits '*) bits (1- (lsh 1 bits))))) 787 (list 'integer 0 (if (eq bits '*) bits (1- (ash 1 bits)))))
788(unsigned-byte 8) @equiv{} (integer 0 255) 788(unsigned-byte 8) @equiv{} (integer 0 255)
789(unsigned-byte) @equiv{} (integer 0 *) 789(unsigned-byte) @equiv{} (integer 0 *)
790unsigned-byte @equiv{} (integer 0 *) 790unsigned-byte @equiv{} (integer 0 *)