]> git.eshelyaron.com Git - emacs.git/commitdiff
(mode-line-eol-desc): Use assoc to query mode-line-eol-desc-cache.
authorChong Yidong <cyd@stupidchicken.com>
Sat, 20 Dec 2008 07:20:32 +0000 (07:20 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 20 Dec 2008 07:20:32 +0000 (07:20 +0000)
lisp/bindings.el

index 560df38e01d46669c7688a53d2472aa07eaecbba..245050dab710073dae4f8b1d3e3bd01831290128 100644 (file)
@@ -146,7 +146,7 @@ corresponding to the mode line clicked."
 (defun mode-line-eol-desc ()
   (let* ((eol (coding-system-eol-type buffer-file-coding-system))
         (mnemonic (coding-system-eol-type-mnemonic buffer-file-coding-system))
-        (desc (assq eol mode-line-eol-desc-cache)))
+        (desc (assoc eol mode-line-eol-desc-cache)))
     (if (and desc (eq (cadr desc) mnemonic))
        (cddr desc)
       (if desc (setq mode-line-eol-desc-cache nil)) ;Flush the cache if stale.