diff options
| -rw-r--r-- | lisp/gnus/nnir.el | 53 |
1 files changed, 26 insertions, 27 deletions
diff --git a/lisp/gnus/nnir.el b/lisp/gnus/nnir.el index df83f18c83c..e57b7d80c51 100644 --- a/lisp/gnus/nnir.el +++ b/lisp/gnus/nnir.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; nnir.el --- search mail with various search engines -*- coding: iso-8859-1 -*- | 1 | ;;; nnir.el --- search mail with various search engines -*- coding: iso-8859-1 -*- |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, | 3 | ;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, |
| 4 | ;; 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | 4 | ;; 2007, 2008 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Kai Großjohann <grossjohann@ls6.cs.uni-dortmund.de> | 6 | ;; Author: Kai Großjohann <grossjohann@ls6.cs.uni-dortmund.de> |
| 7 | ;; Swish-e and Swish++ backends by: | 7 | ;; Swish-e and Swish++ backends by: |
| @@ -11,6 +11,24 @@ | |||
| 11 | ;; IMAP search improved by Daniel Pittman <daniel@rimspace.net>. | 11 | ;; IMAP search improved by Daniel Pittman <daniel@rimspace.net>. |
| 12 | ;; nnmaildir support for Swish++ and Namazu backends by: | 12 | ;; nnmaildir support for Swish++ and Namazu backends by: |
| 13 | ;; Justus Piater <Justus <at> Piater.name> | 13 | ;; Justus Piater <Justus <at> Piater.name> |
| 14 | ;; Keywords: news mail searching ir | ||
| 15 | |||
| 16 | ;; This file is part of GNU Emacs. | ||
| 17 | |||
| 18 | ;; GNU Emacs is free software: you can redistribute it and/or modify | ||
| 19 | ;; it under the terms of the GNU General Public License as published by | ||
| 20 | ;; the Free Software Foundation, either version 3 of the License, or | ||
| 21 | ;; (at your option) any later version. | ||
| 22 | |||
| 23 | ;; GNU Emacs is distributed in the hope that it will be useful, | ||
| 24 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 25 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 26 | ;; GNU General Public License for more details. | ||
| 27 | |||
| 28 | ;; You should have received a copy of the GNU General Public License | ||
| 29 | ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. | ||
| 30 | |||
| 31 | ;;; Commentary: | ||
| 14 | 32 | ||
| 15 | ;; TODO: Documentation in the Gnus manual | 33 | ;; TODO: Documentation in the Gnus manual |
| 16 | 34 | ||
| @@ -32,26 +50,6 @@ | |||
| 32 | ;; `gnus-group-make-nnir-group' might be described in (info | 50 | ;; `gnus-group-make-nnir-group' might be described in (info |
| 33 | ;; "(gnus)Foreign Groups") as well. | 51 | ;; "(gnus)Foreign Groups") as well. |
| 34 | 52 | ||
| 35 | ;; Keywords: news mail searching ir | ||
| 36 | |||
| 37 | ;; This file is part of GNU Emacs. | ||
| 38 | |||
| 39 | ;; This is free software; you can redistribute it and/or modify | ||
| 40 | ;; it under the terms of the GNU General Public License as published by | ||
| 41 | ;; the Free Software Foundation; either version 3, or (at your option) | ||
| 42 | ;; any later version. | ||
| 43 | |||
| 44 | ;; GNU Emacs is distributed in the hope that it will be useful, | ||
| 45 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 46 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 47 | ;; GNU General Public License for more details. | ||
| 48 | |||
| 49 | ;; You should have received a copy of the GNU General Public License | ||
| 50 | ;; along with GNU Emacs; see the file COPYING. If not, write to the | ||
| 51 | ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
| 52 | ;; Boston, MA 02110-1301, USA. | ||
| 53 | |||
| 54 | ;;; Commentary: | ||
| 55 | 53 | ||
| 56 | ;; The most recent version of this can always be fetched from the Gnus | 54 | ;; The most recent version of this can always be fetched from the Gnus |
| 57 | ;; CVS repository. See http://www.gnus.org/ for more information. | 55 | ;; CVS repository. See http://www.gnus.org/ for more information. |
| @@ -366,7 +364,7 @@ | |||
| 366 | `((wais nnir-run-waissearch | 364 | `((wais nnir-run-waissearch |
| 367 | ()) | 365 | ()) |
| 368 | (imap nnir-run-imap | 366 | (imap nnir-run-imap |
| 369 | ((criteria | 367 | ((criteria |
| 370 | "Search in: " ; Prompt | 368 | "Search in: " ; Prompt |
| 371 | ,nnir-imap-search-arguments ; alist for completing | 369 | ,nnir-imap-search-arguments ; alist for completing |
| 372 | nil ; no filtering | 370 | nil ; no filtering |
| @@ -842,7 +840,7 @@ and show thread that contains this article." | |||
| 842 | 840 | ||
| 843 | 841 | ||
| 844 | (defmacro nnir-add-result (dirnam artno score prefix server artlist) | 842 | (defmacro nnir-add-result (dirnam artno score prefix server artlist) |
| 845 | "Ask `nnir-compose-result' to construct a result vector, | 843 | "Ask `nnir-compose-result' to construct a result vector, |
| 846 | and if it is non-nil, add it to artlist." | 844 | and if it is non-nil, add it to artlist." |
| 847 | `(let ((result (nnir-compose-result ,dirnam ,artno ,score ,prefix ,server))) | 845 | `(let ((result (nnir-compose-result ,dirnam ,artno ,score ,prefix ,server))) |
| 848 | (when (not (null result)) | 846 | (when (not (null result)) |
| @@ -977,7 +975,7 @@ This implements a little language designed to return the expected results | |||
| 977 | to an arbitrary query string to the end user. | 975 | to an arbitrary query string to the end user. |
| 978 | 976 | ||
| 979 | The search is always case-insensitive, as defined by RFC2060, and supports | 977 | The search is always case-insensitive, as defined by RFC2060, and supports |
| 980 | the following features (inspired by the Google search input language): | 978 | the following features (inspired by the Google search input language): |
| 981 | 979 | ||
| 982 | Automatic \"and\" queries | 980 | Automatic \"and\" queries |
| 983 | If you specify multiple words then they will be treated as an \"and\" | 981 | If you specify multiple words then they will be treated as an \"and\" |
| @@ -1138,7 +1136,7 @@ returning the one at the supplied position." | |||
| 1138 | "Are we at the end of input?" | 1136 | "Are we at the end of input?" |
| 1139 | (skip-chars-forward "[[:blank:]]") | 1137 | (skip-chars-forward "[[:blank:]]") |
| 1140 | (looking-at "$")) | 1138 | (looking-at "$")) |
| 1141 | 1139 | ||
| 1142 | 1140 | ||
| 1143 | ;; Swish++ interface. | 1141 | ;; Swish++ interface. |
| 1144 | ;; -cc- Todo | 1142 | ;; -cc- Todo |
| @@ -1663,4 +1661,5 @@ The Gnus backend/server information is added." | |||
| 1663 | ;; The end. | 1661 | ;; The end. |
| 1664 | (provide 'nnir) | 1662 | (provide 'nnir) |
| 1665 | 1663 | ||
| 1666 | ;;; arch-tag: 9b3fecf8-4397-4bbb-bf3c-6ac3cbbc6664 | 1664 | ;; arch-tag: 9b3fecf8-4397-4bbb-bf3c-6ac3cbbc6664 |
| 1665 | ;;; nnir.el ends here | ||