Gnus development mailing list
 help / color / mirror / Atom feed
From: "Jochen Küpper" <jochen=W2i0oK7yYu0+t3nig+EZI7NAH6kLmebB@public.gmane.org>
Subject: Re: Slow nnimap expiry with expiry-target
Date: Tue, 23 Sep 2003 22:41:18 +0200	[thread overview]
Message-ID: <86r827i6fl.fsf@doze.rijnh.nl> (raw)
In-Reply-To: <iluk77z5l94.fsf@latte.josefsson.org> (Simon Josefsson's message of "Tue, 23 Sep 2003 21:59:35 +0200")

On Tue, 23 Sep 2003 21:59:35 +0200 Simon Josefsson wrote:

Simon> Or <info:Gnus/Asynchronous+Article+Fetching> maybe?  

(info "(gnus)Asynchronous Fetching")

Simon> What are people using to generate info URLs? 

Reiner Steib posted his solution a while ago, this is my copy of it:
,----
| ;;
| ;; The following functions to insert info-links into a buffer were originaly
| ;; posted on gnu.emacs.gnus by Reiner Steib, August 2003.
| ;; Message-ID: <v9smo83rof.fsf_-_=WZbs9ZYJ0ya4nSHvGpykACzlmkwuQ7VwhC4ANOJQIlc@public.gmane.org>
| ;;
| (defvar jk/info-goto-node-string "info" ; "Info-goto-node"
|   ;; Stefan Monnier suggested to use `info' instead of `Info-goto-node', but
|   ;; this doesn't work for XEmacs.  OTOH, Reiner says he submitted a patch for
|   ;; XEmacs, so "info" should be okay.
|   "Command string to insert with `jk/insert-current-info-node'")
| 
| (defun jk/current-info-node (&optional arg)
|   "Insert reference to current Info node in buffer.
| 
| If ARG is...
| - nil:	Insert `\(info \"\(file\)node\"\)'.
| - 4 (\\[universal-argument]):	Add a note about `C-x C-e', too.
| - 16 (2 \\[universal-argument]'s):	Insert `<info://file/node>'
| - the symbol `string':	Only return the string, don't insert.
| 
| In emacs-lisp-mode a custom link is inserted."
|   (interactive "p")
|   (let ((what
| 	 (cond
| 	  ((eq major-mode 'emacs-lisp-mode)
| 	   'lisp)
| 	  ((numberp arg)
| 	   (cond
| 	    ((= arg 4) 'gnus-url)
| 	    ((= arg (* 4 4)) 'info-press)
| 	    (t 'info)))
| 	  ((eq arg 'string)
| 	   'string)
| 	  (t 'info)))
| 	(buffer (buffer-name))
| 	(ret ""))
|     ;; The next lines are borrowed from Karl Pflaesterer's code in
|     ;; <m3eli7tgp0.fsf=I0+XGIwFrHi1NNnFew4Tsd10ftHNP/Qe@public.gmane.org>.
|     (set-buffer "*info*")
|     (let* ((node Info-current-node)
| 	   (nodeurl (jk/replace-in-string node " " "+"))
| 	   (file Info-current-file)
| 	   (fileurl (file-name-nondirectory file))
| 	   (fileurl (jk/replace-in-string fileurl "\\.gz$" ""))
| 	   (fileurl (jk/replace-in-string fileurl "\\.info$" "")))
|       (set-buffer buffer)
|       (setq ret
| 	    (cond
| 	     ((eq what 'lisp)
| 	      (beginning-of-line)
| 	      (insert ":link '(custom-manual \"(" fileurl ")" node "\")")
| 	      (lisp-indent-line)
| 	      (newline))
| 	     ((eq what 'gnus-url)
| 	      (concat "<info://" fileurl "/" nodeurl ">"))
| 	     (t ;; (or (eq what 'info) (eq what 'info-press))
| 	      (concat "(" jk/info-goto-node-string
| 		      " \"(" fileurl ")" node "\")"
| 		      (if (eq what 'info-press)
| 			  "; <== Press C-x C-e here!"
| 			"")))))
|       (if (or (eq what 'string) (eq what 'lisp))
| 	  ret
| 	(insert ret)))))
| 
| (defun jk/boxquote-info ()
|   "Boxquote current yank-buffer and put current info node in title"
|   (interactive)
|   (boxquote-yank)
|   (boxquote-title (jk/current-info-node 'string)))
`----




Greetings,
Jochen
-- 
Einigkeit und Recht und Freiheit                http://www.Jochen-Kuepper.de
    Liberté, Égalité, Fraternité                GnuPG key: CC1B0B4D
        Sex, drugs and rock-n-roll




  reply	other threads:[~2003-09-23 20:41 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-23 12:34 Bjørn Mork
2003-09-23 14:59 ` Simon Josefsson
2003-09-23 17:37   ` Zack Weinberg
2003-09-23 18:11     ` Simon Josefsson
2003-09-23 19:41       ` Zack Weinberg
2003-09-23 19:56         ` Simon Josefsson
2003-09-23 19:59           ` Simon Josefsson
2003-09-23 20:41             ` Jochen Küpper [this message]
2003-09-23 20:56               ` Simon Josefsson
2003-09-24 10:42               ` Ted Zlatanov
2003-09-25 14:40                 ` Reiner Steib
2003-09-25 17:54                   ` Simon Josefsson
2003-09-26  2:57                     ` Jesper Harder
2003-10-04 22:10           ` Adding "move" operation to Gnus backends (Was: Slow nnimap...) Steinar Bang
2003-10-10  3:05             ` Adding "move" operation to Gnus backends Jesper Harder
2003-10-06 12:11   ` Slow nnimap expiry with expiry-target Bjørn Mork
2003-10-06 17:58     ` Simon Josefsson

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=86r827i6fl.fsf@doze.rijnh.nl \
    --to=jochen=w2i0ok7yyu0+t3nig+ezi7nah6klmebb@public.gmane.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).