From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help,gmane.emacs.orgmode Subject: Re: desirability of boxquote-style snippets for helping new users Date: Fri, 16 Jan 2009 10:56:29 +0100 Message-ID: <878wpb8tgy.fsf@thinkpad.tsdh.de> References: <20524da70901151741n2ee14a3fta28b32b32d45b132@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1232099852 8734 80.91.229.12 (16 Jan 2009 09:57:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Jan 2009 09:57:32 +0000 (UTC) Cc: emacs-orgmode@gnu.org To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 16 10:58:44 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LNlTP-0005Xj-BD for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Jan 2009 10:58:43 +0100 Original-Received: from localhost ([127.0.0.1]:52297 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LNlS8-0001WB-PJ for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Jan 2009 04:57:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LNlRh-0001Vu-Q4 for help-gnu-emacs@gnu.org; Fri, 16 Jan 2009 04:56:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LNlRg-0001VC-C7 for help-gnu-emacs@gnu.org; Fri, 16 Jan 2009 04:56:57 -0500 Original-Received: from [199.232.76.173] (port=35630 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LNlRg-0001V8-26 for help-gnu-emacs@gnu.org; Fri, 16 Jan 2009 04:56:56 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:33496 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LNlRf-00072B-FH for help-gnu-emacs@gnu.org; Fri, 16 Jan 2009 04:56:55 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LNlRb-0005dz-5z for help-gnu-emacs@gnu.org; Fri, 16 Jan 2009 09:56:51 +0000 Original-Received: from p54af2767.dip0.t-ipconnect.de ([84.175.39.103]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 16 Jan 2009 09:56:51 +0000 Original-Received: from tassilo by p54af2767.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 16 Jan 2009 09:56:51 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Followup-To: gmane.emacs.help Original-Lines: 50 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p54af2767.dip0.t-ipconnect.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:BXuVKdBgcgCK8oG0aZXq8V52Pkk= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:61398 gmane.emacs.orgmode:10493 Archived-At: "Samuel Wales" writes: Hi Samuel, > While an experienced user can figure out rectangle commands or write a > command to unpack the quote, new users and users who can't type much > might skip using the code to avoid having to do that. And a very new > user could actually stick the whole thing in .emacs and wonder why it > doesn't work. It adds to the burden of fixing a problem or meeting a > need in emacs without providing much benefit. Even a few keystrokes > can do that. > > Perhaps quotes of code, in all packages like boxquote, could by > default get fancy only on the lines precediing and following. > > What do you think? I think the best you can do is: Use boxquote for citations of key/function/variable/info docs, but for code use --8<---------------cut here---------------start------------->8--- (defun foo (a b) (if (> a b) (* a b) (foo (foo (- b a) a) (- a b)))) --8<---------------cut here---------------end--------------->8--- which is ,----[ C-h k C-c M-m ] | C-c M-m runs the command message-mark-inserted-region, which is an interactive | compiled Lisp function in `message.el'. | | It is bound to C-c M-m, . | | (message-mark-inserted-region beg end &optional verbatim) | | Mark some region in the current article with enclosing tags. | See `message-mark-insert-begin' and `message-mark-insert-end'. | If verbatim, use slrn style verbatim marks ("#v+" and "#v-"). `---- That's highlighted by gnus (and some other readers), too, and you can simply copy & paste it somewhere. It even tells you where to cut! ;-) Bye, Tassilo -- In an average living room there are 1,242 objects RMS could use to write an OS, including the room itself.