From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84640 Path: news.gmane.org!not-for-mail From: Thorsten Jolitz Newsgroups: gmane.emacs.gnus.general Subject: Re: Fancy citing Date: Wed, 18 Jun 2014 09:04:07 +0200 Message-ID: <87bntq1yxk.fsf@gmail.com> References: <8761jzxv8b.fsf@skimble.plus.com> <87zjhb5rg4.fsf@topper.koldfront.dk> <87vbryeoel.fsf_-_@denkblock.local> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1403196874 28883 80.91.229.3 (19 Jun 2014 16:54:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Jun 2014 16:54:34 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M32881@lists.math.uh.edu Thu Jun 19 18:54:26 2014 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WxfbO-0007pU-8B for ding-account@gmane.org; Thu, 19 Jun 2014 18:54:18 +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 1Wxfaj-0006hu-TN; Thu, 19 Jun 2014 11:53:37 -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 1WxBKt-0006eD-Et for ding@lists.math.uh.edu; Wed, 18 Jun 2014 03:35:15 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1WxBKi-0006or-UA for ding@lists.math.uh.edu; Wed, 18 Jun 2014 03:35:15 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1WxBKh-00046R-Ht for ding@gnus.org; Wed, 18 Jun 2014 10:35:03 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WxBKh-00074w-4H for ding@gnus.org; Wed, 18 Jun 2014 10:35:03 +0200 Original-Received: from e178189070.adsl.alicedsl.de ([85.178.189.70]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 Jun 2014 10:35:03 +0200 Original-Received: from tjolitz by e178189070.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 Jun 2014 10:35:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 374 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: e178189070.adsl.alicedsl.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:8501awSyTXOjnrl8m/DdyGprnlk= X-Spam-Score: -2.0 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84640 Archived-At: Elias Oltmanns writes: > (2014-06-17) asjo@koldfront.dk (Adam Sjøgren) wrote: > [...] >> See mail-source-delete-incoming: >> >> ,----[ C-h v mail-source-delete-incoming RET ] >> | mail-source-delete-incoming is a variable defined in `mail-source.el'. >> | Its value is 10 >> | >> | Documentation: >> | If non-nil, delete incoming files after handling. >> | If t, delete immediately, if nil, never delete. If a positive >> | number, delete >> | files older than number of days. >> | >> | Removing of old files happens in `mail-source-callback', i.e. no >> | old incoming files will be deleted unless you receive new mail. >> | You may also set this variable to nil and call >> | `mail-source-delete-old-incoming' interactively. >> `---- >> > > May I ask how to insert citations in that style into a message buffer? I > have been wondering about that before since it pops up on this list > rather frequently. So far I only know about message-mark-inserted-region > which generally suits my purposes very well but I'm still curious to > learn about „that other way“. Not sure about that particular style (might be a vim user), but in Emacs you can use e.g. rebox2.el with the following templates: ,--------------------------------------------------------------------- | (defconst rebox-templates | | ;; Generic programming language templates. Adding 300 replaces | ;; `?' by `/', for C++ style comments. Adding 400 replaces `?' by | ;; `#', for scripting languages. Adding 500 replaces `?' by ';', | ;; for LISP and assembler. Adding 600 replaces `?' by `%', for | ;; TeX and PostScript. | | '((10 114 | "?box123456") | | (11 115 | "? box123456") | | (12 215 | "? box123456 ?" | "? --------- ?") | | (13 315 | "? --------- ?" | "? box123456 ?" | "? --------- ?") | | (14 415 | "? box123456 ?" | "?????????????") | | (15 515 | "?????????????" | "? box123456 ?" | "?????????????") | | (20 124 | "??box123456") | | (21 125 | "?? box123456") | | (22 225 | "?? box123456 ??" | "?? --------- ??") | | (23 325 | "?? --------- ??" | "?? box123456 ??" | "?? --------- ??") | | (24 425 | "?? box123456 ??" | "???????????????") | | (25 525 | "???????????????" | "?? box123456 ??" | "???????????????") | | (30 134 | "???box123456") | | (31 135 | "??? box123456") | | (32 235 | "??? box123456 ???" | "??? --------- ???") | | (33 335 | "??? --------- ???" | "??? box123456 ???" | "??? --------- ???") | | (34 435 | "??? box123456 ???" | "?????????????????") | | (35 535 | "?????????????????" | "??? box123456 ???" | "?????????????????") | | (40 144 | "????box123456") | | (41 145 | "???? box123456") | | (42 245 | "???? box123456 ????" | "???? --------- ????") | | (43 345 | "???? --------- ????" | "???? box123456 ????" | "???? --------- ????") | | (44 445 | "???? box123456 ????" | "???????????????????") | | (45 545 | "???????????????????" | "???? box123456 ????" | "???????????????????") | | (50 154 | "?????box123456") | | (51 155 | "????? box123456") | | (60 164 | "??????box123456") | | (61 165 | "?????? box123456") | | ;;,---- | ;;| boxquote style for comments | ;;`---- | | (16 126 | "?,----" | "?| box123456" | "?`----") | | (17 226 | "?,----------" | "?| box123456" | "?`----------") | | (26 126 | "??,----" | "??| box123456" | "??`----") | | (27 226 | "??,----------" | "??| box123456" | "??`----------") | | | ;;; Text mode (non programming) templates. | | (111 113 | "box123456") | | (112 213 | "| box123456 |" | "+-----------+") | | (113 313 | "+-----------+" | "| box123456 |" | "+-----------+") | | (114 413 | "| box123456 |" | "*===========*") | | (115 513 | "*===========*" | "| box123456 |" | "*===========*") | | (116 114 | "---------" | "box123456" | "---------") | | (121 243 | "| box123456 |") | | (122 223 | "| box123456 |" | "`-----------'") | | (123 323 | ".-----------." | "| box123456 |" | "`-----------'") | | (124 423 | "| box123456 |" | "\\===========/") | | (125 523 | "/===========\\" | "| box123456 |" | "\\===========/") | | ;; boxquote style | | (126 126 | ",----" | "| box123456" | "`----") | | (127 226 | ",----------" | "| box123456" | "`----------") | | (136 126 | ",----" | "| box123456" | "`----") | | (137 226 | ",----------" | "| box123456" | "`----------") | | (141 143 | "| box123456 ") | | (142 243 | "* box123456 *" | "*************") | | (143 343 | "*************" | "* box123456 *" | "*************") | | (144 443 | "X box123456 X" | "XXXXXXXXXXXXX") | | (145 543 | "XXXXXXXXXXXXX" | "X box123456 X" | "XXXXXXXXXXXXX") | | ;; C language templates. | | (211 118 | "/* box123456 */") | | (212 218 | "/* box123456 */" | "/* --------- */") | | (213 318 | "/* --------- */" | "/* box123456 */" | "/* --------- */") | | (214 418 | "/* box123456 */" | "/* ========= */") | | (215 518 | "/* ========= */" | "/* box123456 */" | "/* ========= */") | | (221 128 | "/*" | " box123456" | " */") | | (222 228 | "/* ." | " | box123456 |" | " `----------*/") | | (223 328 | "/*----------." | "| box123456 |" | "`----------*/") | | (224 428 | "/* \\" | "| box123456 |" | "\\==========*/") | | (225 528 | "/*==========\\" | "| box123456 |" | "\\==========*/") | | (231 138 | "/*" | " | box123456" | " */") | | (232 238 | "/* " | " | box123456 | " | " *-----------*/") | | (233 338 | "/*-----------* " | " | box123456 | " | " *-----------*/") | | (234 438 | "/* box123456 */" | "/*-----------*/") | | (235 538 | "/*-----------*/" | "/* box123456 */" | "/*-----------*/") | | (241 148 | "/*" | " * box123456" | " */") | | (242 248 | "/* * " | " * box123456 * " | " *************/") | (243 348 | "/************* " | " * box123456 * " | " *************/") | | (244 448 | "/* box123456 */" | "/*************/") | | (245 548 | "/*************/" | "/* box123456 */" | "/*************/") | | ;; doxygen style | (246 248 | "/************//**" | " * box123456 " | " ****************/") | | )) `--------------------------------------------------------------------- -- cheers, Thorsten