From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: require basic stuff from specific packages Date: Wed, 10 Aug 2016 17:39:26 +0200 Organization: Aioe.org NNTP Server Message-ID: <86eg5w3a6p.fsf@student.uu.se> References: <864m8671sy.fsf@student.uu.se> <87d1liuixr.fsf@rudiments.goosenet.in> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1470843667 20385 195.159.176.226 (10 Aug 2016 15:41:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 10 Aug 2016 15:41:07 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 10 17:41:01 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXVcn-00050F-6y for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Aug 2016 17:40:57 +0200 Original-Received: from localhost ([::1]:42345 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXVcj-0000k7-VY for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Aug 2016 11:40:54 -0400 Original-Path: usenet.stanford.edu!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 38 Original-NNTP-Posting-Host: EoOtCC1fCYcttx6jjhWUlA.user.gioia.aioe.org Original-X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 Mail-Copies-To: never Cancel-Lock: sha1:fWEIemyYXwFrkgIxTI8NDWLhuPA= Original-Xref: usenet.stanford.edu gnu.emacs.help:218716 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:111106 Archived-At: [This message is a reply to a reply to a message which had to do with finding stuff, in the example case the `string-trim' of this code: http://user.it.uu.se/~embe8573/conf/emacs-init/sequence-string.el But beware, that code is a deTRIMent to the sport!] Udyant Wig wrote: > Did you try an implementation like this for > your functionality? Good implementation - it would dodge the bullet and no trimming would be needed, however... > (require 'cl-lib) > > (defun* string-number-sequnce (start end > &optional (step 1) (separator " ")) I have not seen this default value notation for unsubmitted optional arguments, and while I instinctively don't like it, I can see the benefit of doing that in a standardized way, as it is a very common thing to do - and this is faster (less typing), as well! And the reason I haven't seen it, is that I don't have it! So where did you get the "defun*" stuff? -- underground experts united .... http://user.it.uu.se/~embe8573 Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic - so far: 64 Blogomatic articles -