diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2020-08-12 19:41:24 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2020-08-12 19:54:48 +0200 |
commit | b8062be48873189eeca707363ede84d0e7c45198 (patch) | |
tree | 524c59e80d97bf49571a66fe52a34f83b265c632 /lisp/net/eudc-bob.el | |
parent | b02bd6d0bb752d518ade9c1e78d02a7f5ed942bd (diff) | |
download | emacs-b8062be48873189eeca707363ede84d0e7c45198.tar.gz |
Remove some compat code from eudc-bob.el
* lisp/net/eudc-bob.el (eudc-bob-save-object)
(eudc-bob-pipe-object-to-external-program): Remove checks for
functions that are always defined in Emacs.
Diffstat (limited to 'lisp/net/eudc-bob.el')
-rw-r--r-- | lisp/net/eudc-bob.el | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lisp/net/eudc-bob.el b/lisp/net/eudc-bob.el index b248c88d49d..56ea033a963 100644 --- a/lisp/net/eudc-bob.el +++ b/lisp/net/eudc-bob.el @@ -214,8 +214,7 @@ display a button." (let ((data (eudc-bob-get-overlay-prop 'object-data)) (buffer (generate-new-buffer "*eudc-tmp*"))) (save-excursion - (if (fboundp 'set-buffer-file-coding-system) - (set-buffer-file-coding-system 'binary)) + (set-buffer-file-coding-system 'binary) (set-buffer buffer) (set-buffer-multibyte nil) (insert data) @@ -231,8 +230,7 @@ display a button." viewer) (condition-case nil (save-excursion - (if (fboundp 'set-buffer-file-coding-system) - (set-buffer-file-coding-system 'binary)) + (set-buffer-file-coding-system 'binary) (set-buffer buffer) (insert data) (setq program (completing-read "Viewer: " eudc-external-viewers)) |