From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kurumi Newsgroups: gmane.emacs.help Subject: emacs 20.7.1 forgets c-basic-offset after find-file Date: Tue, 13 Jul 2004 16:11:16 GMT Organization: Fighting Spyware Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1089735909 17142 80.91.224.253 (13 Jul 2004 16:25:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 13 Jul 2004 16:25:09 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 13 18:24:42 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BkPti-0005Nx-00 for ; Tue, 13 Jul 2004 18:12:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BkPw5-00061n-4T for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Jul 2004 12:15:17 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn14feed!worldnet.att.net!207.115.63.142!prodigy.com!newsmst01a.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr25.news.prodigy.com.POSTED!bc7e87f0!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: MT-NewsWatcher/3.0 (PPC) Original-Lines: 80 Original-NNTP-Posting-Host: 69.111.52.195 Original-X-Complaints-To: abuse@prodigy.net Original-X-Trace: newssvr25.news.prodigy.com 1089735076 ST000 69.111.52.195 (Tue, 13 Jul 2004 12:11:16 EDT) Original-NNTP-Posting-Date: Tue, 13 Jul 2004 12:11:16 EDT X-UserInfo1: Q[R_PJSCTS@URVX[]BNZOFXBWR\HPCTL@XT^OBPLAH[\RYIBK^RAQFW[ML\THRCKV^GGZKJMGV^^_JSCFFUA_QXFGVSCYRPILH]TRVKC^LSN@DX_HCAFX__@J\DAJBVMY\ZWZCZLPA^MVH_P@\\EOMW\YSXHG__IJQY_@M[A[[AXQ_XDSTAR]\PG]NVAQUVM Original-Xref: shelby.stanford.edu gnu.emacs.help:124283 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 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 Xref: main.gmane.org gmane.emacs.help:19618 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19618 I'm running emacs 20.7.1 in Redhat 7.1, Linux 2.4.2-2. I have a modified .emacs file (included) to give me some key bindings matching the other machines I work on. I also have c-basic-offset set to 3. What's annoying is that after I do a "find file" (aka open a file), emacs resets c-basic-offset to 2. This is immediately apparent whenever it auto-indents a line of code. When I do Customize -> specific option -> c-basic-offset, it is indeed at 2, and I have to change it and save it. In other words: 1. start emacs; c-basic-offset is at 3 2. open a file; c-b-o changes to 2. However, .emacs still shows 3 3. re-edit the value in "customize"; c-b-o back at 3 4. open another file; c-b-o back to 2 As you can imagine, this is irritating. In a previous installation of 7.1/20.7.1, I didn't have this problem. Any ideas what's causing it? My .emacs is shown below. Thanks! Scott ---- contents of ~/.emacs --------- ;; Red Hat Linux default .emacs initialization file ;; Are we running XEmacs or Emacs? (defvar running-xemacs (string-match "XEmacs\\|Lucid" emacs-version)) ;; Set up the keyboard so the delete key on both the regular keyboard ;; and the keypad delete the character under the cursor and to the right ;; under X, instead of the default, backspace behavior. (global-set-key [delete] 'delete-char) (global-set-key [kp-delete] 'delete-char) ;; Turn on font-lock mode for Emacs (cond ((not running-xemacs) (global-font-lock-mode t) )) ;; Always end a file with a newline (setq require-final-newline t) ;; Stop at the end of the file, not just add lines (setq next-line-add-newlines nil) (custom-set-variables '(c-basic-offset 3) '(pc-selection-mode t nil (pc-select))) (custom-set-faces) (global-set-key [(control s)] 'save-buffer) (global-set-key [(control o)] 'find-file) (global-set-key [(control g)] 'goto-line) (global-set-key [(control i)] 'indent-region) (global-set-key [(control f)] 'isearch-forward) (global-set-key [(control b)] 'isearch-backward) (global-set-key [(control z)] 'undo) (global-set-key [(control w)] 'kill-this-buffer) (global-set-key [(control q)] 'do-you-really-want-to-save-buffers-kill-emacs) (global-set-key [(control end)] 'end-of-buffer) (global-set-key [(control home)] 'beginning-of-buffer) -- Kurumi http://www.kurumi.com/ 3di's, Conn. Roads, maps, interchanges