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: In defense of Customize [was: Trying to right-align my window on startup] Date: Thu, 30 Jan 2014 19:44:09 +0100 Organization: Aioe.org NNTP Server Message-ID: <87k3dhwbql.fsf@nl106-137-194.student.uu.se> References: <3cec217d-8adb-4e6c-b239-eff0c8b520c9@googlegroups.com> <6hrwqhkjfv6.fsf@sap.com> <6hr38k5rd3n.fsf@sap.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1391107512 19315 80.91.229.3 (30 Jan 2014 18:45:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Jan 2014 18:45:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 30 19:45:20 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 1W8wc3-0000Rg-2J for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Jan 2014 19:45:19 +0100 Original-Received: from localhost ([::1]:51777 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8wc2-0000W8-Hk for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Jan 2014 13:45:18 -0500 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!news.stack.nl!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 71 Original-NNTP-Posting-Host: VVbyYd/iFZoeWNmD9i++cQ.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:Ch3JxJjQ31KX7meJtUVkpmigmR8= Mail-Copies-To: never Original-Xref: usenet.stanford.edu gnu.emacs.help:203546 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:95815 Archived-At: Rusi writes: > Brings me to the next point -- elisp is too > sequential/imperative > > Of late many of my elisp problems have this flavour: > I share some parts of my init with some co-workers > and things fall apart because of some require missing > or some wrong misplaced loaddefs etc. Yeah, but that's it: making it work by wrapping it in a clever way. If you use it in an "imperative" way, and then it breaks, surprise surprise. > I believe that customize as it exists cannot solve > this because the level at which it is written is too > high. As a result the imperative underbelly of lisp > keeps showing through Of course it is possible if it is possible in Elisp. If it is possible in one way, it is possible in another way, that does the same. That Lisp is for everything - imperative, functional, data markup, meta programming... - this is what makes Lisp *great*. This "side effect"-free hysteria of Haskell etc. is an artistic/aesthetic construction, and it has little to do with reality. > 1. emacs is an OS 2. elisp is an imperative language > > Well 1 is not true in a literal sense but its close > enough > > Now one of the issues in OS management is > startup/daemons. > > Even good old init had a way of ordering the startup > scripts by prefixing numbers. Yes, Linux has seven runlevels, 0-6 and S. 0 is shutdown, 1 is single user minimal (maintenance) mode (S is plain single user mode), 2-5 are multiuser modes which is default (and those levels can be identical), and 6 is reboot. In /etc/inittab, the default mode is set (usually to 2). Each runlevel executes scripts: kill scripts are first executed to "kill" services, then the start scripts are executed to start services. (This is a UNIX System V thing.) Those scripts can be inspected with 'ls -d /etc/rc*.d'. So, for example a reference to a startup script may look like this: lrwxrwxrwx 1 root 14 Jan 1 2002 S19gdm3 -> ../init.d/gdm3 For a kill script, prefix with "K" instead. The digit to the right of S (or K) denotes the order of execution, with the lowest number first. If gdm3 is unwanted, it is better not to muck around with the prefixes or otherwise rename it, instead, follow the link and remove execution rights. -- underground experts united: http://user.it.uu.se/~embe8573