emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Doc View Page Problems


From: Stefan Monnier
Subject: Re: Doc View Page Problems
Date: Sat, 19 Apr 2014 22:47:58 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

>        One more thing that I noticed is that image-mode itself doesn't
>        setup the default window configuration, so I've included a patch
>        that will do this.

Not sure if that's the right way to do it.
How 'bout the patch below instead?


        Stefan


=== modified file 'lisp/image-mode.el'
--- lisp/image-mode.el  2014-04-17 03:58:25 +0000
+++ lisp/image-mode.el  2014-04-20 02:46:54 +0000
@@ -90,9 +90,8 @@
 
 (defun image-mode-window-put (prop val &optional winprops)
   (unless (consp winprops) (setq winprops (image-mode-winprops winprops)))
-  (setcdr (assq t image-mode-winprops-alist)
-          (cons (cons prop val)
-                (delq (assq prop (cdr winprops)) (cdr winprops))))
+  (unless (eq t (car winprops))
+    (image-mode-window-put prop val t))
   (setcdr winprops (cons (cons prop val)
                          (delq (assq prop (cdr winprops)) (cdr winprops)))))
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]