From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Bernhard Koenig" Newsgroups: gmane.emacs.devel Subject: Re: bug#1246: Bug : 23.0.60; "customize emacs" overwrites "custom-set-variables" in .emacs Date: Sat, 25 Oct 2008 14:27:35 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1224959278 4437 80.91.229.12 (25 Oct 2008 18:27:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 25 Oct 2008 18:27:58 +0000 (UTC) To: "Lennart Borgman" , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 25 20:28:59 2008 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ktnsc-0005cb-SL for ged-emacs-devel@m.gmane.org; Sat, 25 Oct 2008 20:28:55 +0200 Original-Received: from localhost ([127.0.0.1]:57258 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KtnrW-0004BF-MG for ged-emacs-devel@m.gmane.org; Sat, 25 Oct 2008 14:27:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KtnrQ-000481-MN for emacs-devel@gnu.org; Sat, 25 Oct 2008 14:27:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KtnrP-00046G-8x for emacs-devel@gnu.org; Sat, 25 Oct 2008 14:27:39 -0400 Original-Received: from [199.232.76.173] (port=34882 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KtnrP-00046B-2g for emacs-devel@gnu.org; Sat, 25 Oct 2008 14:27:39 -0400 Original-Received: from fk-out-0910.google.com ([209.85.128.189]:43046) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KtnrP-0000YI-0C for emacs-devel@gnu.org; Sat, 25 Oct 2008 14:27:39 -0400 Original-Received: by fk-out-0910.google.com with SMTP id 18so1284603fkq.10 for ; Sat, 25 Oct 2008 11:27:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=53GAtI8k2gSMVuHuE3ZVG6qT/Pf/V1rHP5PZSOBDPFg=; b=gEZQOIn24SQs0MN/HJ30lw7P+7pg/egA55mBEeSSpflhLk3LrfcDtu9i/h5GPeAgbK XjC2Q7uYMOVnwuf29brXxDxyh6DTQ6jKrkjBLR8vPRUrEZYr+cIpAhaa6hElVFPH/j3r pTgt4Mc4LWkfvPnmoxN2hkVcGjgIicuq2yTio= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=ss+Mn22gkvx2WagLs9joeZ8O/dloLJruL6dI2DoX5xiygYrwVOe/vOEoiWpgLlRvvZ S4p2tvMl3OePNxEnOUeut4oWqtWPx+8rMjp3XxzVjD7rKiUW7oel3zg79f1DahOy+UVF 6oqsd7Pn2vq9xZAPX5BHduBahauw7bwSdZ+i0= Original-Received: by 10.187.252.4 with SMTP id e4mr325968fas.97.1224959255993; Sat, 25 Oct 2008 11:27:35 -0700 (PDT) Original-Received: by 10.187.191.10 with HTTP; Sat, 25 Oct 2008 11:27:35 -0700 (PDT) In-Reply-To: Content-Disposition: inline X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:105002 Archived-At: Hi, I currently have Emacs 23.0.60 and downloaded it Oct 12 from the Ubuntu repositories. I will paste my .emacs, at one point the custom-set-variables were overwritten and the tex-output-view-style settings were completely deleted. I can try to reproduce the bug later tonight. Best, Bernhard ;; no message at startup (setq inhibit-startup-message t) ;; format the title-bar to always include the buffer name (setq frame-title-format "emacs - %b") (setq icon-title-format "emacs - %b") ;; format modeline bar (display-battery-mode t) ;(size-indication-mode t) ;; minibuffer does not expand (setq resize-mini-windows nil) ;; scrollbar to the right (set-scroll-bar-mode 'right) ;; text mode and auto-fill (setq default-major-mode 'text-mode) (add-hook 'text-mode-hook 'text-mode-hook-identify) (add-hook 'text-mode-hook 'turn-on-auto-fill) ;; Latex settings (add-hook 'LaTeX-mode-hook 'LaTeX-install-toolbar) (setq TeX-auto-save t) (setq TeX-parse-self t) (setq-default TeX-master nil) (setq-default TeX-header-end nil) (add-hook 'TeX-mode-hook '(lambda () (TeX-fold-mode 1))) (autoload 'turn-on-reftex "reftex" "RefTeX Minor Mode" nil) (autoload 'reftex-citation "reftex-cite" "Make citation" nil) (add-hook 'LaTeX-mode-hook 'turn-on-reftex) ; with AUCTeX LaTeX mode (add-hook 'latex-mode-hook 'turn-on-reftex) ; with Emacs LaTex mode (setq reftex-plug-into-AUCTeX t reftex-enable-partial-scans t) ;; mouse pointer hides from cursor (mouse-avoidance-mode 'animate) ;;cursor does not blink (blink-cursor-mode nil) ;; no super-fast mouse scrolling (mouse-wheel-mode t) (setq mouse-wheel-progressive-speed nil) ;; show trailing whitespaces and remove on save (setq-default show-trailing-whitespace t) (add-hook 'before-save-hook 'delete-trailing-whitespace) ;; show matching parentheses (show-paren-mode 1) ;; change default shell to zsh (setq shell-file-name "/bin/zsh") ;; recent files (require 'recentf) (recentf-mode 1) (setq recentf-max-menu-items 50) (recentf-open-files nil "*Recent Files*") ; startup with recent files (global-set-key "\C-x\ \C-r" 'recentf-open-files) ; C-x C-r keybinding ;; auto time stamps patch (add-hook 'html-mode-hook '(lambda () ;; keymap additions (define-key html-mode-map "\C-ct" 'html-helper-insert-timestamp-delimiter-at-point) ;; additional mode vars (defvar html-helper-timestamp-start "\n" "*Start delimiter for timestamps.") (defvar html-helper-timestamp-end "" "*End delimiter for timestamps.") ;; additional mode functions (defun html-helper-insert-timestamp () "Timestamp insertion function" (insert "Last modified: " (format-time-string "%e %B %Y at %H:%M GMT." (current-time) t) "\n")) (defun html-helper-update-timestamp () (save-excursion (goto-char (point-max)) (if (not (search-backward html-helper-timestamp-start nil t)) (message "timestamp delimiter start was not found. Type C-c t to insert one.") (let ((ts-start (+ (point) (length html-helper-timestamp-start))) (ts-end (if (search-forward html-helper-timestamp-end nil t) (- (point) (length html-helper-timestamp-end)) nil))) (if (not ts-end) (message "timestamp delimiter end was not found. Type C-c t to insert one.") (delete-region ts-start ts-end) (goto-char ts-start) (html-helper-insert-timestamp))))) nil) ;; timestamp will update on file write (add-hook 'local-write-file-hooks 'html-helper-update-timestamp))) (custom-set-variables '(load-home-init-file t t) '(TeX-output-view-style (quote ( ("^dvi$" "." "xdvi -s 6 %d") ("^pdf$" "." "evince %o") ("^html$" "." "firefox %o"))))) (custom-set-faces) ;(defun toolbar-open-file () ; (interactive) ; (recentf-open-file) ;) ;; the following requires cursor-chg.el ;(require 'cursor-chg) ;(change-cursor-mode 1) ; enable read-only/input mode ;(toggle-cursor-type-when-idle 1) ; enable idle mode ; changed "Red" to "cursor-color" and 'bar to 'hbar in cursor-chg.el ; ;(setq curchg-default-cursor-color 'cursor-color) ; default color ;(setq curchg-default-cursor-type 'hbar) ; default type ;(setq curchg-idle-cursor-type 'box) ; idle type ;(setq curchg-input-method-cursor-color 'yellow) ; input mode color ;(setq curchg-overwrite/read-only-cursor-type 'hollow) ; read-only type ;; comments in italics (make-face-italic 'font-lock-comment-face) (make-face-italic 'font-lock-comment-delimiter-face) ;; my own color themes ; blue theme (defun theme-blue () "Switch to blue theme." (interactive) (set-cursor-color "gold") (set-face-background 'modeline "khaki") (set-face-foreground 'modeline "black") (set-background-color "navy") (set-foreground-color "white") (set-face-foreground 'font-lock-comment-face "chocolate1") (set-face-foreground 'font-lock-string-face "light salmon") (set-face-foreground 'font-lock-keyword-face "cyan1") (set-face-foreground 'font-lock-builtin-face "lightsteelblue") ) ; red theme (defun theme-red () "Switch to red theme." (interactive) (set-background-color "darkred") (set-foreground-color "white") (set-cursor-color "lawngreen") (set-face-background 'modeline "orange1") (set-face-foreground 'modeline "black") (set-face-foreground 'font-lock-comment-face "gold") (set-face-foreground 'font-lock-string-face "palegreen2") (set-face-foreground 'font-lock-keyword-face "cyan1") (set-face-foreground 'font-lock-builtin-face "lightsteelblue") ) ; snow theme (defun theme-snow () "Switch to snow theme." (interactive) (set-background-color "snow2") (set-foreground-color "gray0") (set-cursor-color "orange red") (set-face-background 'modeline "midnight blue") (set-face-foreground 'modeline "white") (set-face-foreground 'font-lock-comment-face "green3") (set-face-foreground 'font-lock-string-face "blue2") (set-face-foreground 'font-lock-keyword-face "magenta3") (set-face-foreground 'font-lock-builtin-face "deep pink") ) ;; pick theme after fully parsing .emacs (theme-red) On Sat, Oct 25, 2008 at 9:15 AM, Lennart Borgman wrote: > On Sat, Oct 25, 2008 at 2:30 AM, Bernhard Koenig > wrote: >> I used the "customize emacs" options and made permanent changes >> (regarding fonts if I remember correctly). Emacs >> changed the .emacs file on disk and modified the >> "custom-set-variables". The problem was that all the old >> custom-set-variables (like tex-output-view-style and stuff) were >> completely overwritten. >> >> Don't know if this is intended but it's quite annoying. > > When you choose to make the changes permanent it should write that to > custom-file (which by default is your .emacs). It should however > include all the old values. If it did not then something is wrong. > > Can you show us your .emacs? Was there perhaps several > custom-set-variables entry in it? > > Also the normal information in the bug report is missing (date you did > a check out from the CVS repositories beeing the most important). Can > you tell us that? >