[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/excorporate fd9a7bb 25/93: excorporate-calfw.el: Enable
From: |
Stefan Monnier |
Subject: |
[elpa] externals/excorporate fd9a7bb 25/93: excorporate-calfw.el: Enable clean byte-compiling in GNU ELPA |
Date: |
Sun, 29 Nov 2020 15:43:01 -0500 (EST) |
branch: externals/excorporate
commit fd9a7bbdd58d7cf44fb857fb001bf9302007447f
Author: Thomas Fitzsimmons <fitzsim@fitzsim.org>
Commit: Thomas Fitzsimmons <fitzsim@fitzsim.org>
excorporate-calfw.el: Enable clean byte-compiling in GNU ELPA
* excorporate/excorporate-calfw.el: Specify NOERROR when
require'ing calfw.
(cfw:component-model, cfw:cp-add-selection-change-hook)
(cfw:cp-get-contents-sources)
(cfw:create-calendar-component-buffer, cfw:cursor-to-nearest-date)
(cfw:date, cfw:model-set-contents-sources)
(cfw:refresh-calendar-buffer, make-cfw:event, make-cfw:source):
Declare functions.
(cfw:component): Declare variable.
(cfw:cp-set-contents-sources): Override to fix a bug.
* excorporate/excorporate-calfw.el (exco-calfw-add-meetings)
(exco-calfw-finalize-buffer): Do not declare cfw:component
special.
* copyright_exceptions: Add exception for description of calfw's
copyright situation in excorporate-calfw.el.
---
excorporate-calfw.el | 29 ++++++++++++++++++++++++++---
1 file changed, 26 insertions(+), 3 deletions(-)
diff --git a/excorporate-calfw.el b/excorporate-calfw.el
index 11bdfe8..5eda6e4 100644
--- a/excorporate-calfw.el
+++ b/excorporate-calfw.el
@@ -31,7 +31,32 @@
;;; Code:
-(require 'calfw)
+;; calfw is not FSF-assigned yet so it is not in GNU ELPA. The
+;; following workarounds allow excorporate-calfw.elc to be built
+;; regardless.
+(require 'calfw nil t)
+
+(declare-function cfw:component-model "ext:calfw" t)
+(declare-function cfw:cp-add-selection-change-hook "ext:calfw" t)
+(declare-function cfw:cp-get-contents-sources "ext:calfw" t)
+(declare-function cfw:create-calendar-component-buffer "ext:calfw" t)
+(declare-function cfw:cursor-to-nearest-date "ext:calfw" t)
+(declare-function cfw:date "ext:calfw" t)
+(declare-function cfw:model-set-contents-sources "ext:calfw" t)
+(declare-function cfw:refresh-calendar-buffer "ext:calfw" t)
+(declare-function make-cfw:event "ext:calfw" t)
+(declare-function make-cfw:source "ext:calfw" t)
+
+(defvar cfw:component)
+
+;; Fix a bad bug in calfw. See:
+;; https://github.com/kiwanami/emacs-calfw/pull/79
+(defun cfw:cp-set-contents-sources (component sources)
+ "Set content SOURCES for COMPONENT.
+SOURCES is a list of content sources."
+ (cfw:model-set-contents-sources
+ sources (cfw:component-model component)))
+
(require 'excorporate)
(defvar excorporate-calfw-buffer-name "*Excorporate*"
@@ -85,7 +110,6 @@ are the requested participants."
(let ((event-list (exco-calendar-item-iterate response
#'exco-calfw-add-meeting)))
(with-current-buffer (get-buffer-create excorporate-calfw-buffer-name)
- (declare (special cfw:component))
(let* ((new-source (make-cfw:source
:name (format "%S (as of %s)"
identifier
@@ -99,7 +123,6 @@ are the requested participants."
(defun exco-calfw-finalize-buffer ()
"Finalize the Calfw widget after retrievals have completed."
(with-current-buffer (get-buffer-create excorporate-calfw-buffer-name)
- (declare (special cfw:component))
(let ((sources (cfw:cp-get-contents-sources cfw:component))
(status-source (make-cfw:source :name "Done."
:data (lambda (_b _e) nil))))
- [elpa] externals/excorporate 64f8d30 03/93: packages/excorporate/excorporate.el: Bump version to 0.7.1, (continued)
- [elpa] externals/excorporate 64f8d30 03/93: packages/excorporate/excorporate.el: Bump version to 0.7.1, Stefan Monnier, 2020/11/29
- [elpa] externals/excorporate 2a55a64 04/93: packages/excorporate: Handle nil list of main invitees, Stefan Monnier, 2020/11/29
- [elpa] externals/excorporate bff9b00 07/93: packages/excorporate: Change server version lookup, Stefan Monnier, 2020/11/29
- [elpa] externals/excorporate 37b25ff 09/93: packages/excorporate: Acknowledge Erik Hetzner, Stefan Monnier, 2020/11/29
- [elpa] externals/excorporate fae1f5e 05/93: packages/excorporate: Update manual, Stefan Monnier, 2020/11/29
- [elpa] externals/excorporate 9cc18b1 10/93: packages/excorporate: Require soap-client 3.1.1, Stefan Monnier, 2020/11/29
- [elpa] externals/excorporate 09f998e 11/93: packages/excorporate: Bump version to 0.7.2, Stefan Monnier, 2020/11/29
- [elpa] externals/excorporate f35c2f1 13/93: packages/excorporate/excorporate-org.el: Allow quitting window, Stefan Monnier, 2020/11/29
- [elpa] externals/excorporate e6cb302 15/93: packages/excorporate: Interoperate with LaTeX preview, Stefan Monnier, 2020/11/29
- [elpa] externals/excorporate bdf9d5a 16/93: packages/excorporate: Bump version to 0.7.4, Stefan Monnier, 2020/11/29
- [elpa] externals/excorporate fd9a7bb 25/93: excorporate-calfw.el: Enable clean byte-compiling in GNU ELPA,
Stefan Monnier <=
- [elpa] externals/excorporate 12f3501 28/93: packages/excorporate: Extend exco-connection-iterate, Stefan Monnier, 2020/11/29
- [elpa] externals/excorporate de3ad68 46/93: Excorporate: Document new configuration wizard, Stefan Monnier, 2020/11/29
- [elpa] externals/excorporate cd392a1 40/93: excorporate-diary: Escape literal percent signs, Stefan Monnier, 2020/11/29
- [elpa] externals/excorporate acbc123 22/93: excorporate.texi: Increase authentication success likelihood, Stefan Monnier, 2020/11/29
- [elpa] externals/excorporate a1ec101 26/93: excorporate.el: Require org for org-trim, Stefan Monnier, 2020/11/29
- [elpa] externals/excorporate 836db8c 35/93: packages/excorporate: Bump version to 0.8.1, Stefan Monnier, 2020/11/29
- [elpa] externals/excorporate 0d20739 41/93: excorporate-diary: Fix documentation string, Stefan Monnier, 2020/11/29
- [elpa] externals/excorporate 6d8fa65 19/93: packages/excorporate: Acknowledge Fabio Leimgruber, Stefan Monnier, 2020/11/29
- [elpa] externals/excorporate 3e13cee 24/93: excorporate-calfw.el: Rename from excorporate-calfw.el.txt, Stefan Monnier, 2020/11/29
- [elpa] externals/excorporate 33ee501 31/93: packages/excorporate: Update documentation for Diary support, Stefan Monnier, 2020/11/29