diff options
| author | Lars Ingebrigtsen | 2016-02-06 14:08:10 +1100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2016-02-06 14:08:26 +1100 |
| commit | 8d88dbdf9a6f5a85707d6923407b9041f7f0460b (patch) | |
| tree | b917daee21cb0b616e36bcb33151a395485a0a20 | |
| parent | c6d4b63f25fd44f22c5de4c8f5017812b7017ff6 (diff) | |
| download | emacs-8d88dbdf9a6f5a85707d6923407b9041f7f0460b.tar.gz emacs-8d88dbdf9a6f5a85707d6923407b9041f7f0460b.zip | |
Use underline on all terminals that support it
* lisp/subr.el (read-multiple-choice): Use
display-supports-face-attributes-p instead of
display-graphic-p to determine whether we can use underlining.
| -rw-r--r-- | lisp/subr.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index 8e430bf98f5..f70f3edd028 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -2268,7 +2268,8 @@ Usage example: | |||
| 2268 | (format "[%c] %s" (car elem) name)) | 2268 | (format "[%c] %s" (car elem) name)) |
| 2269 | ;; The prompt character is in the name, so highlight | 2269 | ;; The prompt character is in the name, so highlight |
| 2270 | ;; it on graphical terminals... | 2270 | ;; it on graphical terminals... |
| 2271 | ((display-graphic-p) | 2271 | ((display-supports-face-attributes-p |
| 2272 | '(:underline t) (window-frame)) | ||
| 2272 | (setq name (copy-sequence name)) | 2273 | (setq name (copy-sequence name)) |
| 2273 | (put-text-property pos (1+ pos) | 2274 | (put-text-property pos (1+ pos) |
| 2274 | 'face 'read-multiple-choice-face | 2275 | 'face 'read-multiple-choice-face |