Gnus development mailing list
 help / color / mirror / Atom feed
From: Kan-Ru Chen <kanru@kanru.info>
To: ding@gnus.org
Cc: Lars Magne Ingebrigtsen <larsi@gnus.org>,
	Andrew Cohen <cohen@andy.bu.edu>, Kan-Ru Chen <kanru@0xlab.org>
Subject: [PATCH] nnir.el (nnir-read-server-parm): Use default value
Date: Fri,  8 Jul 2011 01:19:26 +0800	[thread overview]
Message-ID: <1310059166-22939-1-git-send-email-kanru@kanru.info> (raw)

From: Kan-Ru Chen <kanru@0xlab.org>

Use default value from global variable.  Without this the default
search engine parameters aren't used at all.
---
 lisp/ChangeLog |    6 ++++++
 lisp/nnir.el   |    1 +
 2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 7f12314..47fa6c3 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
+2011-07-07  Kan-Ru Chen  <kanru@kanru.info>
+
+	* nnir.el (nnir-read-server-parm): Use default value from global
+	variable.  Without this the default search engine parameters aren't
+	used at all.
+
 2011-07-06  Glenn Morris  <rgm@gnu.org>
 
 	* gnus-group.el (gnus-read-ephemeral-emacs-bug-group): Silence compiler.
diff --git a/lisp/nnir.el b/lisp/nnir.el
index 8099cc2..3f140ef 100644
--- a/lisp/nnir.el
+++ b/lisp/nnir.el
@@ -1640,6 +1640,7 @@ server is of form 'backend:name'."
   (let ((method (gnus-server-to-method server)))
     (cond ((and method (assq key (cddr method)))
     	   (nth 1 (assq key (cddr method))))
+	  ((boundp key) (symbol-value key))
     	  (t nil))))
 
 (defun nnir-possibly-change-server (server)
-- 
1.7.5.4




             reply	other threads:[~2011-07-07 17:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-07 17:19 Kan-Ru Chen [this message]
2011-07-17  4:50 ` Kan-Ru Chen
2011-07-19 16:46 ` Lars Magne Ingebrigtsen

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=1310059166-22939-1-git-send-email-kanru@kanru.info \
    --to=kanru@kanru.info \
    --cc=cohen@andy.bu.edu \
    --cc=ding@gnus.org \
    --cc=kanru@0xlab.org \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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.
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 NNTP newsgroup(s).