From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: require basic stuff from specific packages Date: Mon, 04 Jul 2016 01:13:33 +0200 Organization: Aioe.org NNTP Server Message-ID: <864m8671sy.fsf@student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1467587729 19895 80.91.229.3 (3 Jul 2016 23:15:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Jul 2016 23:15:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 04 01:15:29 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bJqbp-0008LN-9Y for geh-help-gnu-emacs@m.gmane.org; Mon, 04 Jul 2016 01:15:29 +0200 Original-Received: from localhost ([::1]:44464 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJqbo-0002w5-Ef for geh-help-gnu-emacs@m.gmane.org; Sun, 03 Jul 2016 19:15:28 -0400 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 36 Original-NNTP-Posting-Host: EoOtCC1fCYcttx6jjhWUlA.user.gioia.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:5bb0Tk5da4F96WPcXq1CcMEHrqE= X-Notice: Filtered by postfilter v. 0.8.2 Mail-Copies-To: never Original-Xref: usenet.stanford.edu gnu.emacs.help:218380 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:110689 Archived-At: (require 'cl-lib) (require 'erc) ;; Here is a common situation. ;; You are in need of something low-level, generic. ;; You make a search. ;; You find it, only it is in some other pack that is not ;; low-level or generic, but very specific and ;; has nothing to do with what you do. ;; To `require' it is like venturing into the ;; master's secret workshop to get nails and bolts! ;; What should you do then? ;; Here is an example: (defun sequence-string (start stop &optional step delim) (let*((the-step (or step 1)) (the-delim (or delim " ")) (string (format "%s" start)) ) (cl-loop for n from (+ start the-step) to stop by the-step do (setq string (format "%s%s%s" string the-delim n) )) (erc-trim-string string) ; here )) ;;;; testing for dummies - the fun and easy way: ;; ;; (sequence-string 1 10) ; "1 2 3 4 5 6 7 8 9 10" ;; (sequence-string 3 5 3) ; "3" ;; (sequence-string 5 15 2) ; "5 7 9 11 13 15" ;; (sequence-string 20 30 3 ", ") ; "20, 23, 26, 29" -- underground experts united .... http://user.it.uu.se/~embe8573 Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic - so far: 56 Blogomatic articles -