diff options
| author | Eli Zaretskii | 2023-09-15 10:17:30 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2023-09-15 10:17:30 +0300 |
| commit | 29055412f2d99efbce09447cf88fca567eeafc86 (patch) | |
| tree | 9adcbe63892f413d879de47c56f21c62c62ffe9c | |
| parent | 738d8543337ee01eaa889f26da473dc84f652b8a (diff) | |
| download | emacs-29055412f2d99efbce09447cf88fca567eeafc86.tar.gz emacs-29055412f2d99efbce09447cf88fca567eeafc86.zip | |
; Fix doc string of 'lsh'
* lisp/subr.el (lsh): Doc fix. Suggested by Richard Stallman
<rms@gnu.org>.
| -rw-r--r-- | lisp/subr.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index 426e8145cae..d5c461346cb 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -507,8 +507,10 @@ If COUNT is negative, shifting is actually to the right. | |||
| 507 | In this case, if VALUE is a negative fixnum treat it as unsigned, | 507 | In this case, if VALUE is a negative fixnum treat it as unsigned, |
| 508 | i.e., subtract 2 * `most-negative-fixnum' from VALUE before shifting it. | 508 | i.e., subtract 2 * `most-negative-fixnum' from VALUE before shifting it. |
| 509 | 509 | ||
| 510 | This function is provided for compatibility. In new code, use `ash' | 510 | Most uses of this function turn out to be mistakes. We recommend |
| 511 | instead." | 511 | to use `ash' instead, unless COUNT could ever be negative, and |
| 512 | if, when COUNT is negative, your program really needs the special | ||
| 513 | treatment of negative COUNT provided by this function." | ||
| 512 | (declare (compiler-macro | 514 | (declare (compiler-macro |
| 513 | (lambda (form) | 515 | (lambda (form) |
| 514 | (macroexp-warn-and-return "avoid `lsh'; use `ash' instead" | 516 | (macroexp-warn-and-return "avoid `lsh'; use `ash' instead" |