summaryrefslogtreecommitdiff
path: root/lisp/term/news.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/term/news.el')
-rw-r--r--lisp/term/news.el8
1 files changed, 3 insertions, 5 deletions
diff --git a/lisp/term/news.el b/lisp/term/news.el
index 5b7e904b477..5f7195ca984 100644
--- a/lisp/term/news.el
+++ b/lisp/term/news.el
@@ -31,10 +31,8 @@
(defun terminal-init-news ()
"Terminal initialization function for news."
- (if (boundp 'news-fkey-prefix)
- nil
- ;; The terminal initialization should already have set up some keys
- (setq news-fkey-prefix (lookup-key function-key-map "\eO"))
+ ;; The terminal initialization should already have set up some keys
+ (let ((news-fkey-prefix (lookup-key input-decode-map "\eO")))
(if (not (keymapp news-fkey-prefix))
(error "What? Your news termcap/terminfo has no keycaps in it"))
@@ -73,5 +71,5 @@
(define-key news-fkey-prefix "x" [kp-8])
))
-;;; arch-tag: bfe141a0-623b-4b42-b753-5d9353776c5e
+;; arch-tag: bfe141a0-623b-4b42-b753-5d9353776c5e
;;; news.el ends here