From: shuhei-k Date: Sat, 22 May 1999 13:29:23 +0000 (+0000) Subject: (mailcap-look-at-qchar): Use `char-after'. X-Git-Tag: flim-1_12_7~34 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=5aa732333427ea8cfd86682ebd6d97bf8e088c30;p=elisp%2Fflim.git (mailcap-look-at-qchar): Use `char-after'. --- diff --git a/mailcap.el b/mailcap.el index 12eee88..b3b7d90 100644 --- a/mailcap.el +++ b/mailcap.el @@ -95,18 +95,17 @@ (forward-char))))) (defsubst mailcap-look-at-qchar () - (let ((chr (char-after (point)))) - (when (eq chr ?\\) - (forward-char 2) - (char-before (point)) - ))) + (when (eq (char-after (point)) ?\\) + (prog2 + (forward-char) + (char-after (point)) + (forward-char)))) (defsubst mailcap-look-at-mtext () (let ((beg (point))) (while (or (mailcap-look-at-qchar) (mailcap-look-at-schar))) - (buffer-substring beg (point)) - )) + (buffer-substring beg (point)))) ;;; @ field