Re: Need help with function

[email protected] Fri, 16 Jul 2004 12:00:17 +0200
Newsgroups gmane.emacs.xemacs.general
Message-ID <[email protected]>
Hello Glynn,

Your function quite hits the spot:

>(defun mg-copy-position ()
>  "Copy a string of the form filename:linenumber into the clipboard"
>  (interactive)
>  (own-clipboard (format "%s:%d"
>                                                 (or 
(file-name-nondirectory buffer-file-name) "")
>                                                 (line-number))))

But there is still a problem: It seems "own-clipboard" uses the wrong 
clipboard: I can paste the desired string with "yank-clipboard-selection", 
but not with the middle mouse button. I'll have to find another function 
to fill the clipboard...

Mit freundlichen Grüßen

Markus Grunwald
Softwareentwicklung

PRÜFTECHNIK Condition Monitoring GmbH
Oskar-Messter-Straße 19-21
85737 Ismaning
www.pruftechnik.com
Tel: +49 (0)89 99616177
Fax: +49 (0)89 99616200