Changeset 6694


Ignore:
Timestamp:
Jun 12, 2007, 12:08:43 AM (17 years ago)
Author:
Gary Byers
Message:

Don't show (redundant) buffer-name, pathname in modeline.
Do show line termination/character encoding info.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ide-1.0/ccl/hemlock/src/modeline.lisp

    r865 r6694  
    106106other than :DEFAULT"
    107107               (declare (ignore window))
    108                (let* ((external-format (buffer-external-format buffer)))
    109                  (case external-format
    110                    ((:unix nil))
    111                    (:macos "[CR] ")
    112                    (:cp/m "[CRLF] ")))))
     108               (let* ((line-termination-string
     109                       (case (buffer-line-termination buffer)
     110                         ((:unix nil))
     111                         (:macos "CR")
     112                         (:cp/m "CRLF")))
     113                      (doc (buffer-document buffer))
     114                      (encoding-name (if doc
     115                                       (document-encoding-name doc)
     116                                       "Default")))
     117                 (format nil "[~a~@[ ~a~]] "
     118                         encoding-name line-termination-string))))
    113119
    114120
     
    211217        "")))
    212218
     219
     220
    213221(make-modeline-field
    214222 :name :buffer-pathname
    215223 :function 'buffer-pathname-ml-field-fun)
     224
     225
    216226
    217227(make-modeline-field
     
    230240        (modeline-field :external-format)
    231241        (modeline-field :package)
    232         (modeline-field :modes)
    233         (modeline-field :buffer-name)
    234         (modeline-field :buffer-pathname))
     242        (modeline-field :modes))
    235243  "This is the default value for \"Default Modeline Fields\".")
    236244
Note: See TracChangeset for help on using the changeset viewer.