From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79655 Path: news.gmane.org!not-for-mail From: XeCycle Newsgroups: gmane.emacs.gnus.general Subject: Re: Your way to quickstart Gnus? Date: Tue, 16 Aug 2011 14:20:47 +0800 Message-ID: <874o1h98sg.fsf@gmail.com> References: <8762lyk8kt.fsf@gmail.com> <85fwl28zm1.fsf@news.eternal-september.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1313475732 7408 80.91.229.12 (16 Aug 2011 06:22:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 16 Aug 2011 06:22:12 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M27949@lists.math.uh.edu Tue Aug 16 08:22:08 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QtD2O-0007FQ-C9 for ding-account@gmane.org; Tue, 16 Aug 2011 08:22:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1QtD1X-0005pP-Vm; Tue, 16 Aug 2011 01:21:16 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1QtD1V-0005p8-TS for ding@lists.math.uh.edu; Tue, 16 Aug 2011 01:21:13 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1QtD1U-0007jN-H5 for ding@lists.math.uh.edu; Tue, 16 Aug 2011 01:21:13 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QtD1R-0006DN-M5 for ding@gnus.org; Tue, 16 Aug 2011 08:21:09 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QtD1R-0006ka-EA for ding@gnus.org; Tue, 16 Aug 2011 08:21:09 +0200 Original-Received: from 59.78.37.25 ([59.78.37.25]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Aug 2011 08:21:09 +0200 Original-Received: from xecycle by 59.78.37.25 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Aug 2011 08:21:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 51 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 59.78.37.25 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:gcMn/1lJUmcSOFOPMIm4yYtLgCo= X-Spam-Score: -3.8 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79655 Archived-At: Richard Riley writes: > XeCycle writes: > >> Hello, I want to know if you have a way to start Gnus quickly when using >> emacsclient. >> >> I bind a key (in my WM) to execute `emacsclient -c -e '(gnus)'`, however >> the *Group* buffer appeared read-only before I press a key --- for >> example when I started it and press "Enter", Emacs will beep, >> complaining this buffer read-only, then everything is fine. Another >> problem is that the splash image won't be shown. >> >> Well, these are all minor problems, but I'll be glad if I can solve it. >> What's your way? > > not tested, but I use to use this: > > ,---- > | (defun rgr/mailto (to) > | "Send an email to 'to' but prompting for a posting style if not configured. Starts Gnus if not already running." > | (unless gnus-active-hashtb (gnus)) ;; Better way?? > | (let ((gnus-newsgroup-name > | (if gnus-default-mailto-group gnus-default-mailto-group (completing-read "Use posting style of group: " > | gnus-active-hashtb nil > | (gnus-read-active-file-p))))) > | (compose-mail to))) > `---- > > > and a shell script > > ,---- > | mailto=$(printf '%s\n' "$1" | sed -e 's/[\"]/\\&/g') > | elisp_expr=$(printf '(rgr/mailto "%s")' "$mailto") > | > | emacsclient --alternate-editor="" -c -n \ > | --eval "$elisp_expr" \ > | --eval '(set-window-dedicated-p (selected-window) t)' > `---- > > maybe it will help you get started if it doesnt work. Thank you, but this is not exactly what I want --- I only need to start Gnus up, looking at the *Group* buffer. -- Carl Lei (XeCycle) Department of Physics, Shanghai Jiao Tong University OpenPGP public key: 7795E591 Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591