* lisp/calendar/todo-mode.el (todo-padded-string):
* lisp/emacs-lisp/gv.el (setf):
* lisp/emacs-lisp/macroexp.el (macroexp--expand-all):
* lisp/hexl.el (hexl-insert-hex-string):
* lisp/play/gamegrid.el (gamegrid-xbm):
* lisp/play/hanoi.el (hanoi-internal):
* lisp/progmodes/ebnf2ps.el (ebnf-end-of-string):
* lisp/progmodes/elisp-mode.el (elisp--highlight-function-argument):
* lisp/progmodes/ruby-mode.el (ruby-backward-sexp):
* lisp/ps-print.el (ps-print-page-p):
(ps-print-sheet-p): Prefer '(oddp A)' to '(= 1 (logand A 1))' and
variations thereof.
(cherry picked from commit
fd5dbea21b8982cff8d3ae774b0e68c077a4ec89)
(make-list (/ center-pixel-count 2) "01")
(list right-border)))))
(dotimes (row center-pixel-count)
- (gamegrid-insert-xbm-bits (if (eq (logand row 1) 1) odd-line even-line))
+ (gamegrid-insert-xbm-bits (if (oddp row) odd-line even-line))
(insert ", \n")))
(dotimes (row border-pixel-count)
(make-string (1- radius) (if vert ?\- ?\|))
(if vert ">" "v"))
for face =
- (if (eq (logand n 1) 1) ; oddp would require cl at runtime
+ (if (oddp n)
hanoi-odd-ring-face hanoi-even-ring-face)
do (hanoi-put-face 0 (length str) face str)
collect (cons str diameter)))
(defun ebnf-end-of-string ()
(let ((n 1))
- (while (> (logand n 1) 0)
+ (while (oddp n)
(skip-chars-forward "^\"" ebnf-limit)
(setq n (- (skip-chars-backward "\\\\")))
(goto-char (+ (point) n 1))))
(and (string-match-p "\\.\\.\\.\\'"
(substring args 1 (1- (length args))))
(= (length (remove "..." args-lst)) 2)
- (> index 1) (eq (logand index 1) 1)))
+ (> index 1) (oddp index)))
(setq index 0))
(t
(setq index (1- index))))))
((looking-at "\\s\"\\|\\\\\\S_")
(let ((c (char-to-string (char-before (match-end 0)))))
(while (and (search-backward c)
- (eq (logand (skip-chars-backward "\\\\") 1)
- 1))))
+ (oddp (skip-chars-backward "\\\\")))))
nil)
((looking-at "\\s.\\|\\s\\")
(if (ruby-special-char-p) (forward-char -1)))
(cond ((eq ps-even-or-odd-pages 'even-page)
(evenp ps-page-postscript))
((eq ps-even-or-odd-pages 'odd-page)
- (= (logand ps-page-postscript 1) 1))
- (t)
- ))))
+ (oddp ps-page-postscript))
+ (t)))))
(defsubst ps-print-sheet-p ()
(cond ((eq ps-even-or-odd-pages 'even-sheet)
(evenp ps-page-sheet))
((eq ps-even-or-odd-pages 'odd-sheet)
- (= (logand ps-page-sheet 1) 1))
- (t)
- )))
+ (oddp ps-page-sheet))
+ (t))))
(defun ps-output (&rest args)