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: Re: Why isn't ert-buffer.el part of Emacs? Date: Sat, 14 Jun 2014 02:53:41 +0200 Organization: Aioe.org NNTP Server Message-ID: <87mwdgwbu2.fsf@debian.uxu> References: <871tusxuxe.fsf@debian.uxu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1402707322 11263 80.91.229.3 (14 Jun 2014 00:55:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Jun 2014 00:55:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 14 02:55:17 2014 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 1WvcFY-00012X-M7 for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Jun 2014 02:55:16 +0200 Original-Received: from localhost ([::1]:33793 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvcFX-0008TJ-VO for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Jun 2014 20:55:15 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 39 Original-NNTP-Posting-Host: SIvZRMPqRkkTHAHL6NkRuw.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:bZsOqotNfU0ZLJRpwNuRaY0DD/w= Mail-Copies-To: never Original-Xref: usenet.stanford.edu gnu.emacs.help:205957 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:98227 Archived-At: Grant Rettke writes: > Hard to imagine, but a lot of people do not customize > everything aSeriously, customization in the strict sense shouldn't be included, of course. I'm talking more about really basic stuff, like echoing a variable as I mentioned in my previous post. By the way, this isn't something I saw (or rather didn't see) just in Emacs: In zsh, I wrote the following just to convert between bases (!) and present a uniform input-output interface. zsh is the most feature rich of all the shells, or so conventional wisdom claims - but it is the same story - obviously I'm not the first to want it, and not the first to do it (somehow), but as I can't find out quickly if it is there, or if someone else did it, I might as well do it myself. Again, it is more pleasant that way, though sometimes less time-efficient. hex2dec () { echo $(($1)) } hex2oct () { dec2oct `hex2dec $1` } dec2hex () { hex=`echo "obase=16; $1" | bc` lowercase_hex=$hex:l echo "0x$lowercase_hex" } dec2oct () { echo "obase=8; $1" | bc } oct2dec () { echo "ibase=8; $1" | bc } oct2hex () { dec2hex `oct2dec $1` } -- underground experts united: http://user.it.uu.se/~embe8573