From 1aa956a1e24407519d24b4dd0ff91ac52c267f86 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Sat, 20 Dec 2008 07:20:32 +0000 Subject: [PATCH] (mode-line-eol-desc): Use assoc to query mode-line-eol-desc-cache. --- lisp/bindings.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/bindings.el b/lisp/bindings.el index 560df38e01d..245050dab71 100644 --- a/lisp/bindings.el +++ b/lisp/bindings.el @@ -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. -- 2.39.2