bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#17616: patch for svg-clock.el


From: Stefan Monnier
Subject: bug#17616: patch for svg-clock.el
Date: Sat, 31 May 2014 22:04:45 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

> I found that because svg-clock calls (image-mode) every second, the message
> "Type C-c C-c to view the image as an image." is displayed at the bottom of
[...]
> --- a/packages/svg-clock/svg-clock.el
> +++ b/packages/svg-clock/svg-clock.el
> @@ -186,7 +186,7 @@ TIME must have the form (SECOND MINUTE HOUR ...), 
> asreturned by `decode-time'."
>        (svg-clock-replace "%SIZE%" (format "%d" svg-clock--actual-size))
>        (svg-clock-replace "%SCALE%"
>                           (format "%f" (/ svg-clock--actual-size 100.0)))
> -      (image-mode)
> -      (image-toggle-display-image))))
> +      (when (derived-mode-p 'image-mode)
> +        (image-toggle-display-image)))))
>  (defun svg-clock-update ()
>    "Update the clock."
> @@ -245,4 +245,5 @@ Optionally PERFORM-UPDATE immediately."
>      (setq svg-clock-timer
>            (run-with-timer 0 1 'svg-clock-update))
>      (svg-clock-mode)
> +    (image-mode)
>      (message "Clock started")))

Your patch was quite mangled, please try to use software that does mess
it up so badly next time.  In any case I installed it into the `elpa'
branch, thank you.


        Stefan





reply via email to

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