diff options
| author | Lars Ingebrigtsen | 2019-12-24 17:50:24 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-12-24 17:50:24 +0100 |
| commit | ca6a53d3bc91d6fef9aa872495ab74298ce91bee (patch) | |
| tree | 88eb1dbcef2006ad426700c4e95b3b0fd0af7956 | |
| parent | dbf4b5b2d00e4383d275fe18343a65c857a77206 (diff) | |
| download | emacs-ca6a53d3bc91d6fef9aa872495ab74298ce91bee.tar.gz emacs-ca6a53d3bc91d6fef9aa872495ab74298ce91bee.zip | |
Don't default to showing X-Faces externally in Gnus
* lisp/gnus/gnus-art.el (gnus-article-x-face-command): It's seldom
useful to display the face in an external command, so don't ever
default to that. This also fixes the problem of Emacs running as
a server in mixed graphical/non-graphical environments.
| -rw-r--r-- | lisp/gnus/gnus-art.el | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index 5745bf12bde..a937e232ff4 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -268,21 +268,15 @@ This can also be a list of the above values." | |||
| 268 | :type 'plist | 268 | :type 'plist |
| 269 | :group 'gnus-article-hiding) | 269 | :group 'gnus-article-hiding) |
| 270 | 270 | ||
| 271 | ;; Fixme: This isn't the right thing for mixed graphical and non-graphical | 271 | (defcustom gnus-article-x-face-command (and (gnus-image-type-available-p 'pbm) |
| 272 | ;; frames in a session. | 272 | 'gnus-display-x-face-in-from) |
| 273 | (defcustom gnus-article-x-face-command | ||
| 274 | (if (gnus-image-type-available-p 'pbm) | ||
| 275 | 'gnus-display-x-face-in-from | ||
| 276 | "{ echo \ | ||
| 277 | '/* Format_version=1, Width=48, Height=48, Depth=1, Valid_bits_per_item=16 */'\ | ||
| 278 | ; uncompface; } | icontopbm | display -") | ||
| 279 | "String or function to be executed to display an X-Face header. | 273 | "String or function to be executed to display an X-Face header. |
| 280 | If it is a string, the command will be executed in a sub-shell | 274 | If it is a string, the command will be executed in a sub-shell |
| 281 | asynchronously. The compressed face will be piped to this command." | 275 | asynchronously. The compressed face will be piped to this command." |
| 282 | :type '(choice string | 276 | :type '(choice string |
| 283 | (function-item gnus-display-x-face-in-from) | 277 | (function-item gnus-display-x-face-in-from) |
| 284 | function) | 278 | function) |
| 285 | :version "21.1" | 279 | :version "27.1" |
| 286 | :group 'gnus-picon | 280 | :group 'gnus-picon |
| 287 | :group 'gnus-article-washing) | 281 | :group 'gnus-article-washing) |
| 288 | 282 | ||