From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tassilo Horn 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 To: help-gnu-emacs@gnu.org Cc: emacs-orgmode@gnu.org List-Id: emacs-orgmode.gnu.org "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.