X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/d76bf86f438d4f5f9fe493ab76f02ffc78f3ae2e..da5ecfa9b951691fc8bbf17f24fc8626216a706b:/lisp/rot13.el diff --git a/lisp/rot13.el b/lisp/rot13.el index 03beed3a85..955c51f53d 100644 --- a/lisp/rot13.el +++ b/lisp/rot13.el @@ -1,6 +1,6 @@ ;;; rot13.el --- display a buffer in ROT13 -;; Copyright (C) 1988, 2001-2013 Free Software Foundation, Inc. +;; Copyright (C) 1988, 2001-2014 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)