We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fe95a4 commit e527a8eCopy full SHA for e527a8e
show-eol.el
@@ -67,11 +67,11 @@
67
68
(defun show-eol-get-eol-mark-by-system ()
69
"Return the EOL mark string by system type."
70
- (let ((sys-mark nil))
71
- (cl-case (show-eol--get-current-system)
72
- ('dos (setq sys-mark show-eol-crlf-mark))
73
- ('mac (setq sys-mark show-eol-cr-mark))
74
- ('unix (setq sys-mark show-eol-lf-mark)))
+ (let ((sys-mark nil) (sys (show-eol--get-current-system)))
+ (cond ((eq sys 'dos) (setq sys-mark show-eol-crlf-mark))
+ ((eq sys 'mac) (setq sys-mark show-eol-cr-mark))
+ ((eq sys 'unix) (setq sys-mark show-eol-lf-mark))
+ (t (user-error "[WARNING] Unknown system type")))
75
sys-mark))
76
77
(defun show-eol-find-mark-in-list (mk-sym)
0 commit comments