Mercurial > emacs
comparison lisp/mh-e/mh-limit.el @ 68529:7daec5f4a289
* mh-alias.el (mh-alias-gecos-name): Use mh-replace-regexp-in-string
instead of replace-regexp-in-string.
(crm, multi-prompt): Use mh-require instead of require.
(mh-goto-address-find-address-at-point): Use
mh-line-beginning-position and mh-line-end-position instead of
line-beginning-position and line-end-position. Use
mh-match-string-no-properties instead of match-string-no-properties.
* mh-comp.el (mh-modify-header-field): Use mh-line-beginning-position
and mh-line-end-position instead of line-beginning-position and
line-end-position.
* mh-compat.el (mailabbrev): Use mh-require instead of require.
(mh-assoc-string, mh-display-completion-list, mh-face-foreground)
(mh-face-background): Make docstring consistent.
(mh-require, mh-cancel-timer, mh-display-color-cells)
(mh-line-beginning-position, mh-line-end-position)
(mh-match-string-no-properties, mh-replace-regexp-in-string)
(mh-view-mode-enter): Move definition here from mh-xemacs.el and add
mh- prefix since compatibility functions should have our package
prefix (mh-) by Emacs convention and to avoid messing up checks for
the same functions in other packages.
* mh-e.el (mh-compiling-flag): Move mh-xemacs-compiling-flag here from
mh-xemacs.el and rename.
(mh-xargs): Use mh-line-beginning-position and mh-line-end-position
instead of line-beginning-position and line-end-position.
(mh-defface-compat): Use mh-display-color-cells instead of
display-color-cells.
* mh-folder.el (which-func): Use mh-require instead of require.
* mh-funcs.el (mh-list-folders): Use mh-view-mode-enter instead of
view-mode-enter.
* mh-gnus.el (gnus-util, mm-bodies, mm-decode, mm-view, mml): Use
mh-require instead of require.
* mh-letter.el (mh-letter-header-end, mh-letter-mode)
(mh-letter-next-header-field): Use mh-line-beginning-position and
mh-line-end-position instead of line-beginning-position and
line-end-position.
* mh-limit.el (mh-subject-to-sequence-unthreaded): Use
mh-match-string-no-properties instead of match-string-no-properties.
(mh-narrow-to-header-field): Use mh-line-beginning-position and
mh-line-end-position instead of line-beginning-position and
line-end-position.
* mh-mime.el (mh-mime-inline-part, mh-mm-display-part)
(mh-mh-quote-unescaped-sharp, mh-mh-directive-present-p): Use
mh-line-beginning-position and mh-line-end-position instead of
line-beginning-position and line-end-position.
* mh-search.el (which-func): Use mh-require instead of require.
(mh-make-pick-template, mh-index-visit-folder)
(mh-pick-parse-search-buffer, mh-swish-next-result)
(mh-mairix-next-result, mh-namazu-next-result)
(mh-pick-next-result, mh-grep-next-result)
(mh-index-create-imenu-index, mh-index-match-checksum)
(mh-md5sum-parser, mh-openssl-parser, mh-index-update-maps): Use
mh-line-beginning-position and mh-line-end-position instead of
line-beginning-position and line-end-position.
* mh-seq.el (mh-list-sequences): Use mh-view-mode-enter instead of
view-mode-enter.
(mh-folder-size-flist, mh-parse-flist-output-line)
(mh-add-sequence-notation): Use mh-line-beginning-position and
mh-line-end-position instead of line-beginning-position and
line-end-position.
* mh-show.el (mh-show-addr): Use mh-require instead of require.
* mh-speed.el (mh-folder-speedbar-menu-items, mh-speed-toggle)
(mh-speed-view, mh-folder-speedbar-buttons)
(mh-speed-highlight, mh-speed-goto-folder)
(mh-speed-add-buttons, mh-speed-parse-flists-output)
(mh-speed-invalidate-map, mh-speedbar-change-expand-button-char)
(mh-speed-add-folder): Use mh-line-beginning-position and
mh-line-end-position instead of line-beginning-position and
line-end-position.
(mh-speed-flists): Use mh-cancel-timer instead of cancel-timer.
* mh-thread.el (mh-thread-find-children)
(mh-thread-parse-scan-line, mh-thread-generate): Use
mh-line-beginning-position and mh-line-end-position instead of
line-beginning-position and line-end-position.
* mh-utils.el (mh-colors-available-p): Use mh-display-color-cells
instead of display-color-cells.
(mh-folder-list): Use mh-replace-regexp-in-string instead of
replace-regexp-in-string.
(mh-sub-folders-actual, mh-letter-toggle-header-field-display): Use
mh-line-beginning-position and mh-line-end-position instead of
line-beginning-position and line-end-position.
* mh-comp.el (mh-send-sub): Don't find components file in current
directory--this seems to have been a side-effect of commenting out the
use of an old mh-etc variable. Improve error message.
author | Bill Wohler <wohler@newt.com> |
---|---|
date | Wed, 01 Feb 2006 23:24:34 +0000 |
parents | 4bd450a8dbe2 |
children | 7db1bc48b98c |
comparison
equal
deleted
inserted
replaced
68528:bd5e46db392c | 68529:7daec5f4a289 |
---|---|
209 (if (or (not (looking-at mh-scan-subject-regexp)) | 209 (if (or (not (looking-at mh-scan-subject-regexp)) |
210 (not (match-string 3)) | 210 (not (match-string 3)) |
211 (string-equal "" (match-string 3))) | 211 (string-equal "" (match-string 3))) |
212 (progn (message "No subject line") | 212 (progn (message "No subject line") |
213 nil) | 213 nil) |
214 (let ((subject (match-string-no-properties 3)) | 214 (let ((subject (mh-match-string-no-properties 3)) |
215 (list)) | 215 (list)) |
216 (if (> (length subject) mh-limit-max-subject-size) | 216 (if (> (length subject) mh-limit-max-subject-size) |
217 (setq subject (substring subject 0 mh-limit-max-subject-size))) | 217 (setq subject (substring subject 0 mh-limit-max-subject-size))) |
218 (save-excursion | 218 (save-excursion |
219 (if all | 219 (if all |
220 (goto-char (point-min))) | 220 (goto-char (point-min))) |
221 (while (re-search-forward mh-scan-subject-regexp nil t) | 221 (while (re-search-forward mh-scan-subject-regexp nil t) |
222 (let ((this-subject (match-string-no-properties 3))) | 222 (let ((this-subject (mh-match-string-no-properties 3))) |
223 (if (> (length this-subject) mh-limit-max-subject-size) | 223 (if (> (length this-subject) mh-limit-max-subject-size) |
224 (setq this-subject (substring this-subject | 224 (setq this-subject (substring this-subject |
225 0 mh-limit-max-subject-size))) | 225 0 mh-limit-max-subject-size))) |
226 (if (string-equal this-subject subject) | 226 (if (string-equal this-subject subject) |
227 (setq list (cons (mh-get-msg-num t) list)))))) | 227 (setq list (cons (mh-get-msg-num t) list)))))) |
308 (append original (list "-list") pick-expr)) | 308 (append original (list "-list") pick-expr)) |
309 (goto-char (point-min)) | 309 (goto-char (point-min)) |
310 (while (not (eobp)) | 310 (while (not (eobp)) |
311 (let ((num (ignore-errors | 311 (let ((num (ignore-errors |
312 (string-to-number | 312 (string-to-number |
313 (buffer-substring (point) (line-end-position)))))) | 313 (buffer-substring (point) (mh-line-end-position)))))) |
314 (when num (push num msg-list)) | 314 (when num (push num msg-list)) |
315 (forward-line)))) | 315 (forward-line)))) |
316 (if (null msg-list) | 316 (if (null msg-list) |
317 (message "No matches") | 317 (message "No matches") |
318 (when (assoc 'header mh-seq-list) (mh-delete-seq 'header)) | 318 (when (assoc 'header mh-seq-list) (mh-delete-seq 'header)) |