From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/852 Path: news.gmane.org!not-for-mail From: Ronald Fischer Newsgroups: gmane.emacs.gnus.user Subject: Re: Gnus can not connect to server Date: 01 Aug 2002 08:36:27 +0200 Organization: Customer of SpaceNet GmbH Message-ID: References: <219750c.0207250320.4b5232d5@posting.google.com> <219750c.0207252238.1566045d@posting.google.com> <219750c.0207270618.3ab5238e@posting.google.com> Reply-To: rovf@feriasonline.pt NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138667743 8688 80.91.229.2 (31 Jan 2006 00:35:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:35:43 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:28:12 2006 Original-Path: quimby.gnus.org!lackawana.kippona.com!news.teledanmark.no!newspeer.clara.net!news.clara.net!newsfeed.freenet.de!newsfeed.r-kom.de!newsfeed.completel.de!news.space.net!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Sender: 7@karfiol.glp.de Original-NNTP-Posting-Host: host-816.i-dial.de Original-X-Trace: news.space.net 1028183788 90479 193.149.52.9 (1 Aug 2002 06:36:28 GMT) Original-X-Complaints-To: usenet@news.space.net Original-NNTP-Posting-Date: Thu, 1 Aug 2002 06:36:28 +0000 (UTC) X-Home-Page: http://www.fusshuhn.de/ X-Attribution: Ronny User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.3 Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:992 Original-Lines: 37 X-Gnus-Article-Number: 992 Tue Jan 17 17:28:12 2006 Xref: news.gmane.org gmane.emacs.gnus.user:852 Archived-At: Ronald Fischer writes: > For example, how could I create the server buffer automatically > when gnus starts? > > (defun (conf-gnus) "gnus with server buffer" > ; ???? what to put here????) > > (add-hook 'gnus-started-hook 'conf-gnus) Sorry, I should have taken more care about correct syntax here. Well, let's rephrase: So far, I came to the solution to put into .gnus a function (defun mk-gnus-server-buffer () "Add *Server* buffer to gnus" (interactive) (save-excursion (gnus-group-enter-server-mode)) ) The idea is that this function could create a server-buffer if automatically. I could then put it into gnus-started-hook to have the server buffer created. Interestingly, the save-excursion does not work as expected. From the documentation, I concluded that it should save the current buffer, and restore it in the end; but when mk-gnus-server-buffer is executed, Gnus switches to the server buffer and stays there, and I have to switch back manually. Ronald -- To reduce spam in my inbox, the address given in the Reply-To: header is not guaranteed to live longer than 1 month after the article was posted. My permanent address is (after deleting the XXX): Ronald Otto Valentin Fischer