(defun calendar-islamic-leap-year-p (year)
"Return t if YEAR is a leap year on the Islamic calendar."
- (memq (% year 30)
- (list 2 5 7 10 13 16 18 21 24 26 29)))
+ (and (memq (% year 30)
+ (list 2 5 7 10 13 16 18 21 24 26 29))
+ t))
(defun calendar-islamic-last-day-of-month (month year)
"The last day in MONTH during YEAR on the Islamic calendar."
(defun ido-ignore-item-p (name re-list &optional ignore-ext)
"Return t if the buffer or file NAME should be ignored."
- (or (member name ido-ignore-item-temp-list)
+ (or (and (member name ido-ignore-item-temp-list) t)
(and
ido-process-ignore-lists re-list
(save-match-data
;; (a default of "text/plain; charset=US-ASCII" is assumed) or
;; the base content type is either text or message.
(or (not content-type-header)
- (string-match text-regexp content-type-header)))))
+ (and (string-match text-regexp content-type-header) t)))))
(defcustom rmail-show-message-verbose-min 200000
"Message size at which to show progress messages for displaying it."
(set-buffer mh-show-buffer))
(let ((from-header (mh-extract-from-header-value)))
(and from-header
- (mh-alias-address-to-alias from-header))))))
+ (mh-alias-address-to-alias from-header)
+ t)))))
(defun mh-alias-add-alias-to-file (alias address &optional file)
"Add ALIAS for ADDRESS in alias FILE without alias check or prompts.
"Return t if FLAG can be permanently saved on articles.
MAILBOX specifies a mailbox on the server in BUFFER."
(with-current-buffer (or buffer (current-buffer))
- (or (member "\\*" (imap-mailbox-get 'permanentflags mailbox))
- (member flag (imap-mailbox-get 'permanentflags mailbox)))))
+ (and (or (member "\\*" (imap-mailbox-get 'permanentflags mailbox))
+ (member flag (imap-mailbox-get 'permanentflags mailbox)))
+ t)))
(defun imap-message-flags-set (articles flags &optional silent buffer)
(when (and articles flags)
(t
(memq (preceding-char) '(?\; ?{ ?\[))))))
-;; FIXME doesn't actually return t. See last case.
(defun tcl-real-comment-p ()
"Return t if point is just after the `#' beginning a real comment.
Does not check to see if previous char is actually `#'.
semicolon, opening brace, or opening bracket on the same line."
(save-excursion
(backward-char)
- (tcl-real-command-p)))
+ (and (tcl-real-command-p) t)))
(defun tcl-hairy-scan-for-comment (state end always-stop)
"Determine if point is in a comment.
For some commands, it may be appropriate to ignore the value of
`use-empty-active-region'; in that case, use `region-active-p'."
(and (region-active-p)
- (or use-empty-active-region (> (region-end) (region-beginning)))))
+ (or use-empty-active-region (> (region-end) (region-beginning)))
+ t))
(defun region-active-p ()
"Return non-nil if Transient Mark mode is enabled and the mark is active.
(save-excursion
(goto-char location)
(table--probe-cell))
- (table--probe-cell))))
+ (table--probe-cell))
+ t))
(defun table--region-in-cell-p (beg end)
"Return t when location BEG and END are in a valid table cell in the current buffer."
(memq 'space-after-tab::space whitespace-active-style)
(memq 'space-before-tab whitespace-active-style)
(memq 'space-before-tab::tab whitespace-active-style)
- (memq 'space-before-tab::space whitespace-active-style))))
+ (memq 'space-before-tab::space whitespace-active-style))
+ t))
(defun whitespace-color-on ()
(defun whitespace-style-mark-p ()
"Return t if there is some visualization via display table."
- (or (memq 'tab-mark whitespace-active-style)
- (memq 'space-mark whitespace-active-style)
- (memq 'newline-mark whitespace-active-style)))
+ (and (or (memq 'tab-mark whitespace-active-style)
+ (memq 'space-mark whitespace-active-style)
+ (memq 'newline-mark whitespace-active-style))
+ t))
(defsubst whitespace-char-valid-p (char)