Commit graph

16 commits

Author SHA1 Message Date
Juanma Barranquero
32226619c5 Use called-interactively-p' instead of interactive-p'. 2009-10-02 03:48:36 +00:00
Glenn Morris
ae940284fa Add 2009 to copyright years. 2009-01-05 03:18:22 +00:00
Glenn Morris
f0e35aeb62 (dbus-get-unique-name, dbus-debug): Declare. 2008-10-29 06:52:05 +00:00
Michael Albinus
30fe660ede * net/xesam.el (xesam-kill-buffer-function): Wrap code by
`ignore-errors' (the function must succeed always).
2008-08-28 20:35:42 +00:00
Michael Albinus
1766890345 * net/xesam.el (xesam-minor-mode): New minor mode.
(xesam-highlight-buffer): Remove.  Code moved to
`xesam-minor-mode'.
(xesam-refresh-entry): Use `xesam-minor-mode'.
2008-08-22 19:32:26 +00:00
Michael Albinus
f7a17e30c8 * net/xesam.el (xesam-highlight-string): Precise doc string.
(xesam-highlight-buffer): New defun.
(xesam-refresh-entry): Use it.  Better check for sourceModified.
2008-08-20 20:08:50 +00:00
Michael Albinus
96038f8157 * net/xesam.el (xesam-vendor, xesam-notify-function): New local
variables.
(xesam-mode): Extend docstring.  Initialize `xesam-notify-function'.
(xesam-refresh-entry): Use `xesam-notify-function' if set.  Remove
Debbugs specific code; it shall be enabled via `xesam-mode-hooks'.
(xesam-new-search): Initialize `xesam-vendor'.
2008-08-17 20:03:05 +00:00
Michael Albinus
c7041c350e * net/xesam.el (xesam-refresh-entry): Use `save-excursion' in the
notify function of the URL.
(xesam-new-search): Encode special characters in the query string.
2008-08-14 05:03:18 +00:00
Michael Albinus
3cf235ebe6 * net/xesam.el (xesam-search-engines): Add Debbugs hit fields.
(xesam-refresh-entry): Add Debbugs handling.  Insert a widget
"DONE", when all hits are retrieved.
(xesam-search): autoload it.
2008-08-10 19:36:12 +00:00
Glenn Morris
5d4cc4581a Standardize license layout. 2008-08-10 00:32:57 +00:00
Michael Albinus
4edefb46c0 * net/xesam.el (top): Require `wid-edit' always.
(xesam-mode-line, xesam-highlight): New deffaces.
(xesam-objects): New local variable.
(xesam-search-engines): Fix error in field list.
(xesam-mode): Use `xesam-mode-line' instead of
`font-lock-type-face'.  Apply `xesam-mode' to a temp buffer, for
proper initiatilzaion (why?).
(xesam-highlight-string, xesam-get-hits)
(xesam-kill-buffer-function): New defuns.
(xesam-refresh-entry): Move code to `xesam-get-hits'.  Check
result of "hit.fields", it isn't a string only.  Wrap an error of
the strigi search engine ("xesam:size" is returned as string).
Highlight search items.
(xesam-refresh-search-buffer): Make logic of counters more simple.
Prefetch next hits.
(xesam-signal-handler): Use `xesam-mode-line' instead of
`font-lock-type-face'.
(xesam-new-search): Add `xesam-kill-buffer-function' to
`kill-buffer-hook'.
2008-08-05 19:49:17 +00:00
Michael Albinus
818f12ceb9 * net/xesam.el (xesam-all-fields): Remove source and content
identifiers.
(xesam-dbus-unique-names): New defvar.
(xesam-dbus-call-method): New defun.  Replace all calls of
`dbus-call-method' by `xesam-dbus-call-method'.
(xesam-get-cached-property, xesam-set-cached-property): New
defuns.
(xesam-get-property, xesam-set-property, xesam-refresh-entry)
(xesam-new-search, xesam-search): Apply
`xesam-get-cached-property'.
(xesam-search-engines): Make it an association list.  Take changed
layout into account in the corresponding function.
(xesam-delete-search-engine): Remove check for consistency of
`xesam-search-engines', not needed anymore.
(xesam-mode): Show XML query string only in the debug case.
2008-08-01 18:56:08 +00:00
Michael Albinus
5dd3307831 * net/xesam.el (xesam-type, xesam-query, xesam-xml-string): New
defvar.
(xesam-mode): Rework implementation.
(xesam-new-search): Additional parameter TYPE.
(xesam-search): Adapt call of `xesam-new-search'.
2008-07-31 19:30:14 +00:00
Michael Albinus
de8bb89eb2 * net/xesam.el (xesam-from): Remove defvar.
(xesam-mode): Derive from `special-mode'.  Extend `xesam-mode-map'
and `mode-line-position'.
(xesam-refresh-entry): Remove argument `hit-number'.  Add debug
information to the widgets.  Don't set `mode-line-position'.
(xesam-refresh-search-buffer): Correct hit number computing.
Don't set `mode-line-position'.
(xesam-new-search): Add debug information to the mode line.
2008-07-26 18:55:02 +00:00
Miles Bader
2bbcd618ef Add arch tagline 2008-07-24 23:46:50 +00:00
Michael Albinus
24008bc4f3 * net/xesam.el: New file. 2008-07-24 21:45:01 +00:00