]> code.delx.au - gnu-emacs/blobdiff - lisp/rot13.el
* net/network-stream.el (network-stream-open-starttls): Don't add
[gnu-emacs] / lisp / rot13.el
index 44b27d26ce2637a82ab9cfe5e30ec46ef2daa62d..1b61855f2dce01ae5846c2a3b9a74339f0989ed6 100644 (file)
@@ -1,6 +1,6 @@
 ;;; rot13.el --- display a buffer in ROT13
 
-;; Copyright (C) 1988, 2001-2012 Free Software Foundation, Inc.
+;; Copyright (C) 1988, 2001-2013 Free Software Foundation, Inc.
 
 ;; Author: Howard Gayle
 ;; Maintainer: FSF
@@ -101,9 +101,9 @@ See also `toggle-rot13-mode'."
 (defun toggle-rot13-mode ()
   "Toggle the use of ROT13 encoding for the current window."
   (interactive)
-  (if (eq (window-display-table (selected-window)) rot13-display-table)
+  (if (eq (window-display-table) rot13-display-table)
       (set-window-display-table (selected-window) nil)
-    (if (null (window-display-table (selected-window)))
+    (if (null (window-display-table))
        (set-window-display-table (selected-window) rot13-display-table))))
 
 (provide 'rot13)