emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals-release/activities 361837da67 2/4: Fix: (activities-lis


From: ELPA Syncer
Subject: [elpa] externals-release/activities 361837da67 2/4: Fix: (activities-list) Error if no activities defined
Date: Wed, 31 Jan 2024 06:57:22 -0500 (EST)

branch: externals-release/activities
commit 361837da676ab2b59234e9b846c50d431b9e3196
Author: Adam Porter <adam@alphapapa.net>
Commit: Adam Porter <adam@alphapapa.net>

    Fix: (activities-list) Error if no activities defined
    
    Fixes #11.
    
    Reported-by: Zhengyi <https://github.com/fuzy112>
---
 README.org         |  3 ++-
 activities-list.el |  2 ++
 activities.info    | 26 +++++++++++++++-----------
 3 files changed, 19 insertions(+), 12 deletions(-)

diff --git a/README.org b/README.org
index 0423fb896c..c543e66c29 100644
--- a/README.org
+++ b/README.org
@@ -134,7 +134,8 @@ When option ~activities-bookmark-store~ is enabled, an 
Emacs bookmark is stored
 
 ** v0.3.3-pre
 
-Nothing new yet.
+*Fixes*
++ Command ~activities-list~ shows a helpful message if no activities are 
defined.  ([[https://github.com/alphapapa/activities.el/issues/11][#11]].  
Thanks to [[https://github.com/fuzy112][fuzy112]] for reporting.)
 
 ** v0.3.2
 
diff --git a/activities-list.el b/activities-list.el
index 13b7c5eac2..6ae7b89463 100644
--- a/activities-list.el
+++ b/activities-list.el
@@ -48,6 +48,8 @@
 (defun activities-list ()
   "List activities."
   (interactive)
+  (unless activities-activities
+    (user-error (substitute-command-keys "No activities defined (to define 
one, type \"\\[activities-new]\")")))
   (with-current-buffer (get-buffer-create "*Activities*")
     (let ((inhibit-read-only t))
       (read-only-mode)
diff --git a/activities.info b/activities.info
index b2a16692c2..77463e22be 100644
--- a/activities.info
+++ b/activities.info
@@ -369,7 +369,11 @@ File: README.info,  Node: v033-pre,  Next: v032,  Up: 
Changelog
 5.1 v0.3.3-pre
 ==============
 
-Nothing new yet.
+*Fixes*
+   • Command ‘activities-list’ shows a helpful message if no activities
+     are defined.  (#11
+     (https://github.com/alphapapa/activities.el/issues/11).  Thanks to
+     fuzy112 (https://github.com/fuzy112) for reporting.)
 
 
 File: README.info,  Node: v032,  Next: v031,  Prev: v033-pre,  Up: Changelog
@@ -502,16 +506,16 @@ Node: Bookmarks9153
 Node: FAQ9505
 Node: Changelog12581
 Node: v033-pre12840
-Node: v03212956
-Node: v03113088
-Node: v0313418
-Node: v0213808
-Node: v01314300
-Node: v01214449
-Node: v01114626
-Node: v0114789
-Node: Development14888
-Node: Copyright assignment15160
+Node: v03213179
+Node: v03113311
+Node: v0313641
+Node: v0214031
+Node: v01314523
+Node: v01214672
+Node: v01114849
+Node: v0115012
+Node: Development15111
+Node: Copyright assignment15383
 
 End Tag Table
 



reply via email to

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