23.1; face customizations vs ns-win.el

View: New views
2 Messages — Rating Filter:   Alert me  

23.1; face customizations vs ns-win.el

by Charles Bailey-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It is possible to change the region highlight face for the current  
session via Options --> Customize Aquamacs -->  Specific Face ... -->  
Region<ret> , changing the default background of "ns_selection_color"  
to (for example) "darkred".   Applying it to the current session works  
fine.  Saving for future sessions works fine, and produces the  
expected "Wrote /Users/bailey/Library/Preferences/Aquamacs Emacs/
customizations.el" message.  The customizations.el file does actually  
contain the command

  '(region ((t (:background "darkred"))))

However, when Emacs is restarted, the region background is again set  
to "ns_selection_color", notwithstanding the change in  
customizations.el.

The problem is not present in Aquamacs Emacs 1.9, so appears to have  
occurred in the Emacs 23/Aquamacs 2 transition.

This appears to be a duplicate of http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3434 
  I'm sending this mail to inquire whether the execution order of user  
customizations vs. ns-win.el has been sorted, or whether the  
workaround suggested for ns-win.el in the prior bug report might make  
it into a future Aquamacs release.

Thanks for your consideration.

--
Regards,
Charles Bailey  < bailey _on_ newman _dot_ upenn _dot_ edu >


In GNU Emacs 23.1.1 (i386-apple-darwin9.7.0, NS apple-appkit-949.46)
  of 2009-08-06 on braeburn.aquamacs.org - Aquamacs Distribution  
2.0preview2
Windowing system distributor `Apple', version 10.3.949
configured using `configure  '--with-ns' '--without-x' 'CFLAGS=-arch  
i386 -arch ppc' 'LDFLAGS=-arch i386 -arch ppc''

Important settings:
   value of $LC_ALL: nil
   value of $LC_COLLATE: nil
   value of $LC_CTYPE: nil
   value of $LC_MESSAGES: nil
   value of $LC_MONETARY: nil
   value of $LC_NUMERIC: nil
   value of $LC_TIME: nil
   value of $LANG: nil
   value of $XMODIFIERS: nil
   locale-coding-system: nil
   default-enable-multibyte-characters: t

Major mode: Text

Minor modes in effect:
   yas/minor-mode: t
   display-time-mode: t
   delete-selection-mode: t
   show-paren-mode: t
   pc-selection-mode: t
   savehist-mode: t
   cua-mode: t
   smart-frame-positioning-mode: t
   aquamacs-autoface-mode: t
   recentf-mode: t
   osx-key-mode: t
   tabbar-mwheel-mode: t
   tabbar-mode: t
   tooltip-mode: t
   mouse-wheel-mode: t
   menu-bar-mode: t
   file-name-shadow-mode: t
   global-font-lock-mode: t
   font-lock-mode: t
   blink-cursor-mode: t
   global-auto-composition-mode: t
   auto-composition-mode: t
   auto-encryption-mode: t
   auto-compression-mode: t
   size-indication-mode: t
   column-number-mode: t
   line-number-mode: t
   global-visual-line-mode: t
   visual-line-mode: t
   transient-mark-mode: t

Recent input:
<down-mouse-1> <drag-mouse-1> <ns-application-activated>
<down-mouse-1> <mouse-1> <double-down-mouse-1> <double-mouse-1>
<down-mouse-1> <mouse-1> <menu-bar> <help-menu> <bug-diagnosis>
<send-emacs-bug-report>

Recent messages:
Loading vc-svk...done
Loading /Users/baileyc/Library/Preferences/Aquamacs Emacs/
customizations.el (source)...done
Loading /Users/baileyc/Library/Preferences/Aquamacs Emacs/
Preferences.el (source)...done
one-buffer-one-frame-mode disabled.
Mark set [2 times]
Defining fontset: lucida13
Defining fontset: monaco11
Loading /Users/baileyc/Library/Preferences/Aquamacs Emacs/frame-
positions.el (source)...done
Mark set [5 times]
Aquamacs is based on GNU Emacs, a part of the GNU/Linux system. It is  
Free Software: you can improve and redistribute it under the GNU  
General Public License, version 3 or later. Copyright (C) 2009 Free  
Software Foundation, Inc. (C) 2009 D. Reitter. No Warranty.

Command line: (/Applications/Aquamacs.app/Contents/MacOS/Aquamacs)

PATH: /usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/
sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/texbin

exec-path: (/usr/local/bin /usr/bin /bin /usr/X11R6/bin /usr/local/
sbin /usr/sbin /usr/bin /bin /usr/sbin /sbin /Applications/
Aquamacs.app/Contents/MacOS/bin /usr/texbin)

Users/baileyc/Library/Preferences/Aquamacs Emacs/Preferences.el:
;; This is the Aquamacs Preferences file.
;; Add Emacs-Lisp code here that should be executed whenever
;; you start Aquamacs Emacs. If errors occur, Aquamacs will stop
;; evaluating this file and print errors in the *Messags* buffer.
;; Use this file in place of ~/.emacs (which is loaded as well.)

(turn-on-follow-mouse)

(add-to-list 'load-path "~/Library/Preferences/Aquamacs Emacs/
yasnippet")
(require 'yasnippet) ;; not yasnippet-bundle
(yas/initialize)
(yas/load-directory "~/Library/Preferences/Aquamacs Emacs/yasnippet/
snippets")

(tabbar-define-access-keys '(alt))

Tail end of /Users/baileyc/Library/Preferences/Aquamacs Emacs/
customizations.el:
  '(region ((t (:background "darkred"))))
  '(sql-mode-default ((t (:inherit autoface-default :height  
110 :family "Monaco"))) t)
  '(text-mode-default ((t (:inherit autoface-default :stipple  
nil :height 120 :family "Lucida Grande")))))

;; for compatibility with older Aquamacs versions
  (defvar aquamacs-140-custom-file-upgraded t)
  (unless (fboundp 'auto-detect-longlines) (defun auto-detect-
longlines () t))


_______________________________________________
Aquamacs-bugs mailing list
Aquamacs-bugs@...
http://lists.aquamacs.org/mailman/listinfo.cgi/aquamacs-bugs

Re: 23.1; face customizations vs ns-win.el

by davidswelt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Oct 7, 2009, at 12:33 PM, Charles Bailey wrote:

> However, when Emacs is restarted, the region background is again set  
> to "ns_selection_color", notwithstanding the change in  
> customizations.el.
>
> The problem is not present in Aquamacs Emacs 1.9, so appears to have  
> occurred in the Emacs 23/Aquamacs 2 transition.
>
> This appears to be a duplicate of http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3434 
>  I'm sending this mail to inquire whether the execution order of  
> user customizations vs. ns-win.el has been sorted, or whether the  
> workaround suggested for ns-win.el in the prior bug report might  
> make it into a future Aquamacs release.

I don't think #3434 has been addressed, but the specific bug you're  
pointing out was reported as #4381, and fixed here:

---
commit afefde8836195cb4bae56423528756a1c6abcdf5
Author: Adrian Robert <Adrian.B.Robert@...>
Date:   Sun Sep 27 16:06:04 2009 +0000

     Don't set the region face background.
---

This fix should have made it into nightly builds of Aquamacs 2.x as of  
yesterday.

I don't think any further changes to the execution order of ns-win and  
user code would be needed, but if you think so, please explain.

- David


--
http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
http://aquamacs.org/donate -- Could we help you? Return the favor and  
support the Aquamacs Project!



_______________________________________________
Aquamacs-bugs mailing list
Aquamacs-bugs@...
http://lists.aquamacs.org/mailman/listinfo.cgi/aquamacs-bugs

smime.p7s (2K) Download Attachment