emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jarmo Hurri <jarmo.hurri@syk.fi>
To: emacs-orgmode@gnu.org
Subject: [PATCH] Give possibility to start gnus with gnus-no-server
Date: Mon, 24 Sep 2012 16:57:28 +0300	[thread overview]
Message-ID: <87y5jzikvr.fsf@syk.fi> (raw)

[-- Attachment #1: Type: text/plain, Size: 224 bytes --]


I tried to use org today together with gnus, but was unable to access
gnus via org, because I always start gnus with gnus-no-server. The
attached patch enables this through a customizeable variable.



[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: gnus-no-server --]
[-- Type: text/x-patch, Size: 1222 bytes --]

From 02e2822e733122b94adbe622b6945c6bca516c3d Mon Sep 17 00:00:00 2001
From: Jarmo Hurri <jarmo.hurri@syk.fi>
Date: Mon, 24 Sep 2012 16:10:06 +0300
Subject: [PATCH] Give possibility to start gnus with gnus-no-server

* lisp/org-gnus.el: Added a new customizable boolean variable
  org-gnus-no-server and support for it in function
 lisp/org-gnus.el |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/lisp/org-gnus.el b/lisp/org-gnus.el
index 8ae41ee..2e0b5b7 100644
--- a/lisp/org-gnus.el
+++ b/lisp/org-gnus.el
@@ -66,6 +66,12 @@ this variable to `t'."
   :version "24.1"
   :type 'boolean)
+(defcustom org-gnus-no-server nil
+  "If non-nil, gnus is started in org using the function 'org-gnus-no-server'
+instead of 'gnus'."
+  :group 'org-gnus
+  :type 'boolean)
 ;; Install the link type
 (org-add-link-type "gnus" 'org-gnus-open)
@@ -287,7 +293,7 @@ If `org-store-link' was called with a prefix arg the meaning of
 (defun org-gnus-no-new-news ()
   "Like `M-x gnus' but doesn't check for new news."
-  (if (not (gnus-alive-p)) (gnus)))
+  (if (not (gnus-alive-p)) (if org-gnus-no-server (gnus-no-server) (gnus))))
 (provide 'org-gnus)

             reply	other threads:[~2012-09-24 13:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-24 13:57 Jarmo Hurri [this message]
2012-09-25  1:50 ` [PATCH] Give possibility to start gnus with gnus-no-server Bastien
2012-09-25  4:29   ` Jarmo Hurri
2012-09-25  9:57     ` Bastien
2012-09-26  8:02       ` Jarmo Hurri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y5jzikvr.fsf@syk.fi \
    --to=jarmo.hurri@syk.fi \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).