From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79410 Path: news.gmane.org!not-for-mail From: Kan-Ru Chen Newsgroups: gmane.emacs.gnus.general Subject: [PATCH] nnir.el (nnir-read-server-parm): Use default value Date: Fri, 8 Jul 2011 01:19:26 +0800 Message-ID: <1310059166-22939-1-git-send-email-kanru@kanru.info> NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1310059234 13900 80.91.229.12 (7 Jul 2011 17:20:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 7 Jul 2011 17:20:34 +0000 (UTC) Cc: Lars Magne Ingebrigtsen , Andrew Cohen , Kan-Ru Chen To: ding@gnus.org Original-X-From: ding-owner+M27706@lists.math.uh.edu Thu Jul 07 19:20:30 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QesFV-0004Os-AH for ding-account@gmane.org; Thu, 07 Jul 2011 19:20:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1QesEr-000101-Pr; Thu, 07 Jul 2011 12:19:45 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1QesEo-0000zg-VL for ding@lists.math.uh.edu; Thu, 07 Jul 2011 12:19:42 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1QesEn-0005VS-9U for ding@lists.math.uh.edu; Thu, 07 Jul 2011 12:19:42 -0500 Original-Received: from mail-vw0-f44.google.com ([209.85.212.44]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QesEl-0004YJ-IS; Thu, 07 Jul 2011 19:19:39 +0200 Original-Received: by vws12 with SMTP id 12so1407295vws.17 for ; Thu, 07 Jul 2011 10:19:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer; bh=8xYvBiN+qKoe+P8XdqKRvqWm+7ZKsrTdpHqgkdzUp8Q=; b=amSoTf/26fi89ZcAXbk77LGKvB5mYZISZl2EEVClcJPyHMnBPFAFjXBPQpAoLj5FGW vSoSpbObujx25OCcTfoQDL+VBWC4r6AcpuG/ZQqzhckgRXSo/cP8aUWeN/IlKMBBfkXI b47+/LGuoXlbuZgbl01ZX9jFZLzWDJGnKyjtM= Original-Received: by 10.220.147.201 with SMTP id m9mr356049vcv.264.1310059173215; Thu, 07 Jul 2011 10:19:33 -0700 (PDT) Original-Received: from isil.kanru.info ([61.57.131.211]) by mx.google.com with ESMTPS id w16sm1563505vco.29.2011.07.07.10.19.29 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 07 Jul 2011 10:19:31 -0700 (PDT) Original-Received: from kanru by isil.kanru.info with local (Exim 4.76) (envelope-from ) id 1QesEZ-0005yX-CJ; Fri, 08 Jul 2011 01:19:27 +0800 X-Mailer: git-send-email 1.7.5.4 X-Spam-Score: -2.9 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79410 Archived-At: From: Kan-Ru Chen 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 + + * 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 * 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