[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-jami-bot 2a95b6aa9d 15/22: style changes
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-jami-bot 2a95b6aa9d 15/22: style changes |
Date: |
Sun, 4 Feb 2024 09:58:51 -0500 (EST) |
branch: externals/org-jami-bot
commit 2a95b6aa9deebdb562bcd3ab7afea00d49b75c03
Author: Hanno Perrey <hanno@hoowl.se>
Commit: Hanno Perrey <hanno@hoowl.se>
style changes
Applies suggestions by Stefan Kangas.
---
org-jami-bot.el | 66 ++++++++++++++++++++++++++++-----------------------------
1 file changed, 32 insertions(+), 34 deletions(-)
diff --git a/org-jami-bot.el b/org-jami-bot.el
index 9cee94f723..de97d21580 100644
--- a/org-jami-bot.el
+++ b/org-jami-bot.el
@@ -1,7 +1,7 @@
;;; org-jami-bot.el --- Capture GNU Jami messages as notes and todos in Org
mode -*- lexical-binding: t; -*-
-;;
+
;; Copyright (C) 2023 Free Software Foundation, Inc.
-;;
+
;; Author: Hanno Perrey <http://gitlab.com/hperrey>
;; Maintainer: Hanno Perrey <hanno@hoowl.se>
;; Created: April 16, 2023
@@ -10,36 +10,36 @@
;; Keywords: comm, outlines, org-capture, jami
;; Homepage: https://gitlab.com/hperrey/org-jami-bot
;; Package-Requires: ((emacs "28.1") (jami-bot "0.0.1"))
-;;
+
;; This file is not part of GNU Emacs.
;;
-;; This program is free software: you can redistribute it and/or modify
-;; it under the terms of the GNU General Public License as published by
-;; the Free Software Foundation, either version 3 of the License, or
-;; (at your option) any later version.
+;; This program is free software: you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published by
+;; the Free Software Foundation, either version 3 of the License, or
+;; (at your option) any later version.
;;
-;; This program is distributed in the hope that it will be useful,
-;; but WITHOUT ANY WARRANTY; without even the implied warranty of
-;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-;; GNU General Public License for more details.
-;;
-;; You should have received a copy of the GNU General Public License
-;; along with this program. If not, see <https://www.gnu.org/licenses/>.
+;; This program is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+;; GNU General Public License for more details.
;;
+;; You should have received a copy of the GNU General Public License
+;; along with this program. If not, see <https://www.gnu.org/licenses/>.
+
;;; Commentary:
;;
;; `org-jami-bot' builds upon `jami-bot' and extends it with Org mode capture
-;; functionality for text messages and images. It allows to schedule agenda
+;; functionality for text messages and images. It allows to schedule agenda
;; items at specific dates, compose multi-measure captures and capture images
--
;; all by sending a message via the GNU Jami messenger.
;;
;; `org-jami-bot' provides multi-message capture from within the Jami messenger
;; app -- that is, a capture process that consists of several messages and can
-;; include even images and other files. The process is started by sending the
+;; include even images and other files. The process is started by sending the
;; command "!start" followed by the title of the capture and finished by
sending
-;; "!done". Once the multi-message capture session is started, every following
-;; message is simply added. This includes images which will be downloaded and
-;; stored locally. A reference in the form of a link will be included in the
+;; "!done". Once the multi-message capture session is started, every following
+;; message is simply added. This includes images which will be downloaded and
+;; stored locally. A reference in the form of a link will be included in the
;; notes.
;;
;; Every command consists of an exclamation mark and a single word, for
example:
@@ -48,8 +48,8 @@
;; treated as a normal message (and captured verbatim).
;;
;; Files sent separately as a single message are captured as links to the
-;; locally downloaded file and tagged as =FILE=. In principle, further
automatic
-;; processing (e.g. OCR) could easily be integrated. Any received file will
also
+;; locally downloaded file and tagged as =FILE=. In principle, further
automatic
+;; processing (e.g. OCR) could easily be integrated. Any received file will
also
;; be added to the variable =org-stored-links= and can then be easily inserted
;; as link in any Org mode document using =C-c C-l=.
;;
@@ -113,8 +113,8 @@ CONVERSATION and ACCOUNT.
Further plain text messages processed by
`org-jami-bot--capture-plain-messsage' or files received by
`org-jami-bot--capture-file' will be added to this capture
-buffer. The actual capture needs to happen through a separate
-function, e.g. `org-jami-bot--command-function-done'. Return a
+buffer. The actual capture needs to happen through a separate
+function, e.g. `org-jami-bot--command-function-done'. Return a
reply string informing correspondent about how to finish capture
by sending '!done'."
(let* ((buf (format "*jami-capture-%s-%s*" account conversation))
@@ -133,9 +133,8 @@ by sending '!done'."
(defun org-jami-bot--command-function-done (account conversation _msg)
"Finish multi-message capture and return a confirmation string.
- Requires a capture buffer set up for CONVERSATION and
- ACCOUNT, for example through
- `org-jami-bot--command-function-start'."
+Requires a capture buffer set up for CONVERSATION and ACCOUNT,
+for example through `org-jami-bot--command-function-start'."
(let* ((buf (format "*jami-capture-%s-%s*" account conversation))
(continue (get-buffer buf)))
(if continue
@@ -203,8 +202,8 @@ CONVERSATION for jami ACCOUNT."
(defun org-jami-bot--command-function-today (_account _conversation msg)
"Capture body of message as todo entry scheduled today.
- Returns a reply string as confirmation. MSG is the full message
- in CONVERSATION id for ACCOUNT id."
+Returns a reply string as confirmation. MSG is the full message
+in CONVERSATION id for ACCOUNT id."
(let* ((body (cadr (assoc-string "body" msg)))
(lines (string-lines body))
;; use inactive timestamps
@@ -223,10 +222,10 @@ CONVERSATION for jami ACCOUNT."
"Capture body as todo entry and schedule it on the date given after the
command.
The entry will be scheduled according to the first line of the
-MSG body immediately following the command string. The date will
+MSG body immediately following the command string. The date will
be parsed through `org-read-date' and supports the same
-string-to-date conversations. Returns a reply string as
-confirmation. ACCOUNT and CONVERSATION are not used."
+string-to-date conversations. Returns a reply string as
+confirmation. ACCOUNT and CONVERSATION are not used."
(let* ((body (cadr (assoc-string "body" msg)))
(lines (string-lines body))
(swhen (org-read-date nil nil (car lines)))
@@ -245,9 +244,8 @@ confirmation. ACCOUNT and CONVERSATION are not used."
(defun org-jami-bot-default-setup ()
"Set up `org-jami-bot' with default values.
- Create a capture template, extend `jami-bot' commands via
- `jami-bot-command-function-alist' and add hooks to
- `jami-bot'."
+Create a capture template, extend `jami-bot' commands via
+`jami-bot-command-function-alist' and add hooks to `jami-bot'."
(if (assoc org-jami-bot-capture-key org-capture-templates)
(message "Capture template referred to by \"%s\" key already defined!"
org-jami-bot-capture-key)
- [elpa] externals/org-jami-bot c51dd81660 02/22: adds gitignore, (continued)
- [elpa] externals/org-jami-bot c51dd81660 02/22: adds gitignore, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot 99358b11e4 10/22: fix relative file links by specifying ref dir, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot 9417d2814d 18/22: make capture key variable customizable, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot aecf06f8f8 03/22: adds missing defvar, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot be3d5fdd91 05/22: fixes flycheck warnings, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot 76d6d76871 06/22: fixes typo in package description, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot 36ab0cb49f 08/22: sharp-quote function names, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot 4403a1a2d4 11/22: fix time stamp format, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot 6d80549e9a 13/22: bump version string, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot 70a063515a 14/22: assign copyright to FSF, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot 2a95b6aa9d 15/22: style changes,
ELPA Syncer <=
- [elpa] externals/org-jami-bot b1a780605f 16/22: add .elpaignore, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot 544bcdf40a 17/22: fix indentation, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot 020b03f299 21/22: extend documentation, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot dba915182c 22/22: add NEWS file, ELPA Syncer, 2024/02/04