From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] New package: xr Date: Thu, 28 Feb 2019 15:10:54 +0100 Message-ID: <99EEC0DC-3E76-4CC7-80D7-B6ADF480C818@acm.org> References: <875zt5feys.fsf@web.de> <23E9F007-5B84-45C6-9933-5A1220058CAA@acm.org> <87o96xdup3.fsf@web.de> Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="21915"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 28 15:11:48 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gzMPb-0005Wl-Lm for ged-emacs-devel@m.gmane.org; Thu, 28 Feb 2019 15:11:47 +0100 Original-Received: from localhost ([127.0.0.1]:39112 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzMPa-0007uf-GZ for ged-emacs-devel@m.gmane.org; Thu, 28 Feb 2019 09:11:46 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43528) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzMP0-0007uZ-Rn for emacs-devel@gnu.org; Thu, 28 Feb 2019 09:11:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gzMP0-0001WM-4t for emacs-devel@gnu.org; Thu, 28 Feb 2019 09:11:10 -0500 Original-Received: from mail224c50.megamailservers.eu ([91.136.10.234]:46944 helo=mail33c50.megamailservers.eu) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gzMOz-0001Rz-JB for emacs-devel@gnu.org; Thu, 28 Feb 2019 09:11:10 -0500 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1551363056; bh=U2Y5uuj9AaDW2bgeaJUK2j6jTdK2LBtclmPwWGYJHOc=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=WnqfLbH+mmyu3aycYpJNJcXTCk+5saJyGrelvoKha6LNDFzNsBEO4gee818jUV/8K qeBner0ERf1x+QDXGskHSFlWT1SpUXGqscjotlXPqG6r2pgyS5TmszSvmfn0TKp/as 24kVYkRqePzqRRxdNJt+aUTjGI311guB2S1crTmo= Feedback-ID: mattiase@acm.or Original-Received: from [192.168.0.4] (c83-251-8-17.bredband.comhem.se [83.251.8.17]) (authenticated bits=0) by mail33c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id x1SEAtIH026187; Thu, 28 Feb 2019 14:10:56 +0000 In-Reply-To: <87o96xdup3.fsf@web.de> X-Mailer: Apple Mail (2.3445.102.3) X-CTCH-RefID: str=0001.0A0B0210.5C77EBF0.009D, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=fZaDNXYF c=1 sm=1 tr=0 a=NAHmi3I8mP0S/Y8gRKeQyA==:117 a=NAHmi3I8mP0S/Y8gRKeQyA==:17 a=kj9zAlcOel0A:10 a=FPpZUxvX-6hLDFnhki4A:9 a=CjuIK1q_8ugA:10 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 91.136.10.234 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:233700 Archived-At: 27 feb. 2019 kl. 18.09 skrev Michael Heerdegen = : >=20 > Then maybe at least define several settings somewhere and make them > available to be used as argument or replacement list or whatever. It > would be good if it was possible to get a different behavior without = too > much brain usage: Make it so that the calls needed can be kept short. That's probably a good idea; the optional argument could be either an = alist or a symbol like 'short or 'verbose. Good defaults are just as important. I thought that one-or-more would be = more descriptive than + or 1+ for those not familiar with the rx = notation, but perhaps this was a mistake. Which would you prefer as default symbol from each of these sets? one-or-more 1+ + zero-or-more 0+ * zero-or-one optional opt ? repeat ** (for lower-upper-bounded repetition) repeat =3D (for exact-count repetition) any char in not-newline nonl group submatch line-start bol line-end eol string-start buffer-start bos bot string-end buffer-end eos eot word-start bow word-end eow sequence seq and : or | regexp regex