From: Alan Mackenzie Date: Sat, 20 Aug 2016 20:46:39 +0000 (+0000) Subject: * lisp/progmodes/cc-defs.el (c-safe-scan-lists): Resolve overelaborate "nil" X-Git-Tag: emacs-26.0.90~1715 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f0ee3ca5a92d5503268da7f9e0d71a1a58893c8a;p=emacs.git * lisp/progmodes/cc-defs.el (c-safe-scan-lists): Resolve overelaborate "nil" --- diff --git a/lisp/progmodes/cc-defs.el b/lisp/progmodes/cc-defs.el index ba9f1b69c50..ab4baa247b9 100644 --- a/lisp/progmodes/cc-defs.el +++ b/lisp/progmodes/cc-defs.el @@ -640,7 +640,7 @@ right side of it." (let ((res (if (featurep 'xemacs) `(scan-lists ,from ,count ,depth nil t) `(c-safe (scan-lists ,from ,count ,depth))))) - (if (and limit (not (eq limit nil))) + (if limit `(save-restriction (when ,limit ,(if (numberp count)