aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* doc: Document ‘git-email-rewrite-header’.Xinglu Chen2021-06-211-0/+22
| | | | | | | * doc/git-email.texi (git-email-format-patch): Add paragraphs for how ‘git-email-rewrite-header’ might be useful. Signed-off-by: Xinglu Chen <public@yoctocell.xyz>
* git-email: Support appending to header.Xinglu Chen2021-06-211-5/+12
| | | | | | | | | | | | | | Sometimes it is useful to append something to the value of a header instead of overwriting it. For example, one might have already Cc’d someone, but now wants to Cc yet another person, by appending, they don’t have to re-write the Email address of the first person they Cc’d. * git-email.el (git-email--rewrite-header-in-buffer): Add ‘append’ argument. (git-email-rewrite-header): Add optional prefix argument ‘append’. Signed-off-by: Xinglu Chen <public@yoctocell.xyz>
* git-email: Support re-writing if header doesn’t already exist.Xinglu Chen2021-06-211-3/+7
| | | | | | | * git-email.el (git-email--rewrite-header-in-buffer): Check if header is found before re-writing. Signed-off-by: Xinglu Chen <public@yoctocell.xyz>
* git-email: Add ablitiy to re-write header.Xinglu Chen2021-06-211-0/+29
| | | | | | | * git-email.el (git-email--rewrite-header-in-buffer): New function. (git-email-rewrite-header): Likewise. Signed-off-by: Xinglu Chen <public@yoctocell.xyz>
* git-email-gnus: Fix typo.Xinglu Chen2021-06-211-1/+1
| | | | | | * git-email-gnus.el: Fix typo. Signed-off-by: Xinglu Chen <public@yoctocell.xyz>
* git-email-piem: Add TODO for using ‘piem-merged-inboxes’.Xinglu Chen2021-06-101-0/+2
| | | | | | | * git-email-piem.el: Add TODO for using ‘piem-merged-inboxes’ intead of ‘piem-inboxes’. Thanks Kyle for the heads up! Signed-off-by: Xinglu Chen <public@yoctocell.xyz>
* git-email-piem: Remove superfluous ‘progn’ form.Xinglu Chen2021-06-101-3/+2
| | | | | | * git-email-piem.el (git-email-piem-mode): Remove ‘progn’ form. Signed-off-by: Xinglu Chen <public@yoctocell.xyz>
* git-email-gnus: Remove superfluous ‘progn’ form.Xinglu Chen2021-06-091-2/+1
| | | | | | | * git-email-gnus.el (git-email-gnus-mode): Remove superfluous ‘progn’ form. Signed-off-by: Xinglu Chen <public@yoctocell.xyz>
* git-email-gnus: Require ‘gnus-msg’.Xinglu Chen2021-06-091-0/+1
| | | | | | * git-email-gnus.el: Require ‘gnus-msg’ library. Signed-off-by: Xinglu Chen <public@yoctocell.xyz>
* git-email: Fix typos.Xinglu Chen2021-06-094-4/+4
| | | | | | | | | * git-email-gnus.el (git-email-gnus-mode): Fix typo in docstring. * git-email-mu4e.el (git-email-mu4e-mode): Likewise. * git-email-notmuch.el (git-email-notmuch-mode): Likewise. * git-email-piem.el (git-email-piem-mode): Likewise. Signed-off-by: Xinglu Chen <public@yoctocell.xyz>
* git-email-notmuch: Require ‘notmuch-mua’.Xinglu Chen2021-06-091-0/+1
| | | | | | * git-email-notmuch.el: Require ‘notmuch-mua’ library Signed-off-by: Xinglu Chen <public@yoctocell.xyz>
* git-email-mu4e: Capitalize ‘mu4e’.Xinglu Chen2021-06-091-1/+1
| | | | | | * git-email-mu4e.el: Capitalize ‘mu4e’ in the header. Signed-off-by: Xinglu Chen <public@yoctocell.xyz>
* git-email-mu4e: Add ‘mu4e’ to ‘Package-Requires’ header.Xinglu Chen2021-06-091-1/+1
| | | | | | | * git-email-mu4e.el: Add ‘mu4e’ to ‘Package-Requires’ header. I don’t know what version is needed, maybe I will try to to find it later. Signed-off-by: Xinglu Chen <public@yoctocell.xyz>
* git-email: Add function to extract multi-line subjects.Xinglu Chen2021-06-091-6/+31
| | | | | | | | | | | | | | | ‘git-format-patch’ adds a newline in the subject if it is too long, if we just use ‘git-email--extract-header’, part of the subject is going to be cut off. Subject: [PATCH] services: configuration: Show default value when it is a package. * git-email.el (git-email-subject-regexp): New variable. (git-email--extract-subject): New function. (git-email--extract-header): Use it. Signed-off-by: Xinglu Chen <public@yoctocell.xyz>
* guix: Add ‘emacs-mu4e’ to ‘propagated-inputs’.Xinglu Chen2021-06-021-1/+2
| | | | | | * guix.scm (git-email-dev): Add ‘emacs-mu4e’ to ‘propagated-inputs’. Signed-off-by: Xinglu Chen <public@yoctocell.xyz>
* Add git-email-mu4e.elReily Siegel2021-06-022-3/+61
| | | | | | | * git-email-mu4e.el: New file. * doc/git-email.texi (Miscellaneous): Mention integration with Mu4e. Signed-off-by: Xinglu Chen <public@yoctocell.xyz>
* doc: Add paragraph about commit message format.Xinglu Chen2021-05-311-0/+4
| | | | | | | * git-email.texi (Contributing): Add paragraph about formatting commit messages in the ChangeLog format. Signed-off-by: Xinglu Chen <public@yoctocell.xyz>
* doc: Fix Texinfo formattingXinglu Chen2021-05-251-2/+2
| | | | | | * doc/git-email.texi (Acknowledgements): Use ‘---’ for em dash. Signed-off-by: Xinglu Chen <public@yoctocell.xyz>
* Rewrite Guix package definitionXinglu Chen2021-05-253-105/+100
| | | | | | | | | | | | * git-email.scm: Rename to ... * guix.scm: ... this, and remove the package for the stable release. I will hopefully get around to package it in Guix proper someday... * doc/git-email.texi (Installation): Add node for installing with Guix. (Contributing): Add instructions for creating a development environment with Guix. Signed-off-by: Xinglu Chen <public@yoctocell.xyz>
* git-email: Fix indentation.Xinglu Chen2021-05-251-1/+1
| | | | | | * git-email.el (git-email-format-patch-default-args): Fix indentation. Signed-off-by: Xinglu Chen <public@yoctocell.xyz>
* git-email: Use ‘user-error’ instead of ‘error’.Xinglu Chen2021-05-171-1/+1
| | | | | | * git-email.el (git-email--check-file): Use ‘user-error’ instead of ‘error’ since this is an error caused by the user not picking a proper patch.
* git-email: Remove unnecessary ‘print’ statement.Xinglu Chen2021-05-171-1/+0
| | | | | * git-email.el (git-email--compose-email): Remove unnecessary ‘print’ statement.
* git-email: Fix list of arguments for ‘git format-patch’.Xinglu Chen2021-05-171-2/+2
| | | | | * git-email.el (git-email-format-patch-extra-args): Use the correct CLI options, see git-format-patch(1) for more details.
* git-email: Reverse the comparison for sorting message buffers.Xinglu Chen2021-04-241-1/+1
| | | | | | Oops, wrong order. * git-email.el (git-email-message-buffer-greaterp): Use ‘>’ instead of ‘<’.
* git-email: Bind unused variable to _.Xinglu Chen2021-04-241-4/+4
| | | | | | | | This will fix the compiler warning. git-email.el:327:54: Warning: Unused lexical variable `body' * git-email.el (git-email--compose-email): rename ‘body’ to ‘_’.
* git-email: Fix sorting function for message buffers.Xinglu Chen2021-04-241-1/+13
| | | | | | | | | | ‘string-greaterp’ would mess up the order if the buffer names container more-than-one digit numbers. ‘git-email-message-buffer-greaterp’ just compares the numbers in the buffer names. * git-email.el (git-email-message-buffer-greaterp): New function. (git-email-send-all): Use it.
* git-email-magit: Escape string with with whitespace.Xinglu Chen2021-04-241-1/+7
| | | | | | | | Without this strings with whitespaces would cause ‘git format-patch’ to fail. * git-email-magit.el (git-email--escape-string): New function. (git-email-magit-patch-send): Use it.
* Untabify all files.Xinglu Chen2021-04-034-57/+57
| | | | | | | | | Spaces >> tabs. * git-email.el: Untabify. * git-email-gnus.el: Likewise. * git-email-magit.el: Likewise. * git-email-notmuch.el: Likewise.
* git-email: Don't insert 'to' address if already there.Xinglu Chen2021-04-031-12/+19
| | | | | | * git-email.el (git-email--compose-email): Don't insert a 'to' address if one is already found in the patch. This makes it possible to override the result of 'git-email-get-to-address-functions'.
* git-email: Use alists in 'git-email--extract-headers'.Xinglu Chen2021-04-031-5/+5
| | | | | | * git-email.el (git-email--extract-headers): Return an association list. (git-email--compose-email): Adapt to alists.
* README: Remove duplicate info.Xinglu Chen2021-03-241-22/+1
| | | | | | The same thing can be found in the Texinfo manual. * README.md: Remove Installation section.
* Revert "git-email: Remove redundant let binding."Xinglu Chen2021-03-151-3/+4
| | | | This reverts commit 49571ab4c2ddd07db68aac300bdbc9c6bfd31b0b.
* Add Guix package definition.Xinglu Chen2021-03-131-0/+103
| | | | * git-email.scm: New file.
* Add Makefile.Xinglu Chen2021-03-131-0/+40
|
* doc: Write manual in Texinfo.Xinglu Chen2021-03-135-1439/+866
|
* git-email: Remove redundant let binding.Xinglu Chen2021-03-131-4/+3
| | | | | * git-email.el (git-email--compose-email): Remove redundant let binding.
* piem: Provide library.Xinglu Chen2021-03-131-0/+3
| | | | | * git-email-piem.el (git-email-piem): Provide `git-email-piem' library.
* Make regexp stricter for matching signed messagesXinglu Chen2021-02-161-1/+1
| | | | | | | | | | This should fix the problem seen in <87sg5wxo0q.fsf@protesilaos.com> * git-email.el (git-email--compose-email): Match the beginning and end of line. Reported-by: Protesilaos Stavrou <info@protesilaos.com> Signed-off-by: Xinglu Chen <public@yoctocell.xyz>
* Use mail-header-separator instead of stringXinglu Chen2021-02-161-1/+1
| | | | | | | Applied manually from <https://lists.sr.ht/~yoctocell/git-email-devel/%3Ce281e4b3513b5629de0108176c660aa1714b5604.1613471364.git.info%40protesilaos.com%3E> Signed-off-by: Xinglu Chen <public@yoctocell.xyz>
* Add doc string to helper fontify functionProtesilaos Stavrou2021-02-161-0/+1
|
* Placate the compiler about projectile-project-rootProtesilaos Stavrou2021-02-161-0/+2
|
* Rewrite 'default-directory' as a variableProtesilaos Stavrou2021-02-161-1/+1
|
* Update docs for `git-email-headers`Xinglu Chen2021-02-161-3/+2
| | | | | | | | | | There is now a `git-email-get-to-address-functions` variable that determines the "to" address. * git-email.el (git-email-headers): Refer to users to the relevant variable. Signed-off-by: Xinglu Chen <public@yoctocell.xyz>
* Don't insert extra newline in message bodyXinglu Chen2021-02-161-1/+0
| | | | | | | | | | | | | | | | | | | | | When inserting the diff into the message body a newline is already included. Previously it would insert an additional newline at the beginning of the body. This removes the extra newline Before: --text follows this line-- body starts here After: --text follows this line-- body starts here * git-email.el (git-email--compose-email): Don't go forward a character. Signed-off-by: Xinglu Chen <public@yoctocell.xyz>
* Release 0.2.0Xinglu Chen2021-02-123-3/+49
| | | | Signed-off-by: Xinglu Chen <public@yoctocell.xyz>
* Minor spelling fixXinglu Chen2021-02-091-1/+1
| | | | Signed-off-by: Xinglu Chen <public@yoctocell.xyz>
* Update copyright headerXinglu Chen2021-02-095-10/+10
| | | | | | Use "all contributors" rather than a name. Signed-off-by: Xinglu Chen <public@yoctocell.xyz>
* Add `:package-version` to all defcustomsXinglu Chen2021-02-091-14/+28
| | | | Signed-off-by: Xinglu Chen <public@yoctocell.xyz>
* Handle error if no "to" address is foundXinglu Chen2021-02-071-3/+5
| | | | | | | | | Previously `substring` would give an error if the "to" address from "git config --list" was empty. This meant that no message would be created. This patch fixes this and instead returns an empty string if to "to" address was found. Signed-off-by: Xinglu Chen <public@yoctocell.xyz>
* git-email-headers: Add "cc" fieldXinglu Chen2021-02-061-1/+1
| | | | * git-email.el (git-email-headers):