apply-mode-line-format.el 1.4

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

apply-mode-line-format.el 1.4

Kevin Rodgers
Changes since version 1.2:
* Implement the Emacs 21 (:eval FORM) and (:KEYWORD ...) constructs;
   handle unbound symbols in SYMBOL and (SYMBOL THEN [ELSE]) constructs;
   use (cadr ...) instead of (car (cdr ...)).

;;; Commentary:

;; Emacs 22 provides the format-mode-line function, which obsoletes
;; this package.

;; But Emacs 21 doesn't provide distinct functions for (1) generating
;; a string from `mode-line-format' and (2) displaying it in the mode
;; line.  In src/xdisp.c, display_mode_element() does both, and it
;; doesn't have a Lisp binding.  apply-mode-line-format.el defines an
;; eponymous Lisp function that returns any `mode-line-format' template
;; as a string.

This is also available at

Kevin Rodgers

Gnu-emacs-sources mailing list
[hidden email]

apply-mode-line-format.el (11K) Download Attachment