GNU bug report logs -
#17616
patch for svg-clock.el
Previous Next
Reported by: dieter <at> schoen.or.at
Date: Wed, 28 May 2014 15:31:02 UTC
Severity: normal
Done: Stefan Monnier <monnier <at> iro.umontreal.ca>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> 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
This bug report was last modified 11 years and 53 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.