]> git.eshelyaron.com Git - emacs.git/commitdiff
Merge branch 'master' into feature/tramp-thread-safe
authorMichael Albinus <michael.albinus@gmx.de>
Wed, 29 Aug 2018 08:56:02 +0000 (10:56 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Wed, 29 Aug 2018 08:56:02 +0000 (10:56 +0200)
1  2 
doc/lispref/files.texi
etc/NEWS
lisp/net/tramp.el
lisp/net/trampver.el
lisp/simple.el
lisp/subr.el
test/lisp/net/tramp-tests.el

Simple merge
diff --cc etc/NEWS
Simple merge
Simple merge
Simple merge
diff --cc lisp/simple.el
Simple merge
diff --cc lisp/subr.el
index 7313d3b65ad3b5e7181c5f02b73d2c53a2021c8c,9e880bc880ef86dca71bf15a279c45b115706128..8d04da842f1f3656052725ae92b0facdbb4d1d35
@@@ -366,11 -366,27 +366,32 @@@ was called.
    (declare (compiler-macro (lambda (_) `(= 0 ,number))))
    (= 0 number))
  
+ (defun fixnump (object)
+   "Return t if OBJECT is a fixnum."
+   (and (integerp object)
+        (<= most-negative-fixnum object most-positive-fixnum)))
+ (defun bignump (object)
+   "Return t if OBJECT is a bignum."
+   (and (integerp object) (not (fixnump object))))
+ (defun lsh (value count)
+   "Return VALUE with its bits shifted left by COUNT.
+ If COUNT is negative, shifting is actually to the right.
+ In this case, if VALUE is a negative fixnum treat it as unsigned,
+ i.e., subtract 2 * most-negative-fixnum from VALUE before shifting it."
+   (when (and (< value 0) (< count 0))
+     (when (< value most-negative-fixnum)
+       (signal 'args-out-of-range (list value count)))
+     (setq value (logand (ash value -1) most-positive-fixnum))
+     (setq count (1+ count)))
+   (ash value count))
 +(defun xor (pred1 pred2)
 +  "Return the logical exclusive or of predicates PRED1 and PRED2."
 +  (and (or pred1 pred2)
 +       (not (and pred1 pred2))))
 +
  \f
  ;;;; List functions.
  
Simple merge