Problème entre un emacs windows et un emacs ubuntu

Le
Frédéric
Bonjour,

j'utilise emacs (avec aucTeX) sous plusieurs machines, deux sous XP
une sous Ubuntu Hardy, avec le même fichier .emacs, les mêmes
extensions, etc.

J'ai un tout petit problème entre les deux, qui semble provenir de
color-theme.

A chaque démarrage sous Linux, j'ai le message :

Debugger entered--Lisp error: (error "Undefined color"
"systemscrollbar")
modify-frame-parameters(#<frame emacs@ubuntu 0x85ed478> ((top . 1)
(left . 1) (width . 120) (height . 60) (menu-bar-lines . 1) (tool-bar-
lines . 1) (scroll-bar-foreground . "systemscrollbar") (background-
color . "#272822") (background-mode . dark) (border-color . "black")
(cursor-color . "orange") (foreground-color . "#f8f8f2") (mouse-
color . "black")))
frame-notice-user-settings()
command-line-1(nil)
command-line()
normal-top-level()

Si j'exécute en ligne de commande, ça donne :

Warning: Invalid color `systemmenutext'
Warning: Invalid color `systemmenu'

La version Linux est la 22.1 (GTK) et la version XP est la 22.2.1.
Ceci peut-il expliquer cela ?
Vidéos High-Tech et Jeu Vidéo
Téléchargements
Vos réponses
Gagnez chaque mois un abonnement Premium avec GNT : Inscrivez-vous !
Trier par : date / pertinence
Xavier Maillard
Le #21773141
Salut,

Frédéric
J'ai un tout petit problème entre les deux, qui semble provenir de
color-theme.



Han ! :)

Si j'exécute en ligne de commande, ça donne :

Warning: Invalid color `systemmenutext'
Warning: Invalid color `systemmenu'

La version Linux est la 22.1 (GTK) et la version XP est la 22.2.1.
Ceci peut-il expliquer cela ?



Avec quel theme ? Sur quelle version de color-theme ? Ces noms de
couleur me semblent tres etranges.

P.S: je suis le mainteneur de color-theme.
Frédéric
Le #21773021
On 15 déc, 23:26, Xavier Maillard
Salut,

Frédéric > J'ai un tout petit problème entre les deux, qui semble provenir de
> color-theme.

Han ! :)



Toh :)


> Si j'exécute en ligne de commande, ça donne :

> Warning: Invalid color `systemmenutext'
> Warning: Invalid color `systemmenu'

> La version Linux est la 22.1 (GTK) et la version XP est la 22.2.1.
> Ceci peut-il expliquer cela ?

Avec quel theme ? Sur quelle version de color-theme ? Ces noms de
couleur me semblent tres etranges.



La version est la 6.6.0

Le thème est un thème perso où je me suis pas cassé la tête, j'ai
repiqué le code d'un autre thème (je ne me rappelle absolument pas
lequel)
et modifié les couleurs qui ne me plaisaient pas pour que ça ressemble
à l'éditeur "Sublime" :

(eval-when-compile (require 'color-theme))
(defun color-theme-sublime ()
"Color theme by Fred, created 2008-07-18."
(interactive)
(color-theme-install
'(color-theme-sublime
((background-color . "#272822")
(background-mode . dark)
(border-color . "black")
(cursor-color . "orange")
(foreground-color . "#f8f8f2")
(mouse-color . "black"))
((cua-global-mark-cursor-color . "cyan")
(cua-normal-cursor-color . "black")
(cua-overwrite-cursor-color . "yellow")
(cua-read-only-cursor-color . "darkgreen")
(ispell-highlight-face . flyspell-incorrect)
(list-matching-lines-buffer-name-face . underline)
(list-matching-lines-face . match)
(preview-transparent-color highlight :background)
(rmail-highlight-face . rmail-highlight)
(view-highlight-face . highlight)
(widget-mouse-face . highlight))
(default ((t (:stipple nil :background "#272822" :foreground
"#f8f8f2" :inverse-video nil :box nil :strike-through nil :overline
nil :underline nil :slant normal :weight normal :height 98 :width
normal :family "outline-courier new"))))
(bold ((t (:bold t :weight bold))))
(bold-italic ((t (:italic t :bold t :slant italic :weight
bold))))
(border ((t (:background "black"))))
(buffer-menu-buffer ((t (:bold t :weight bold))))
(button ((t (:underline t))))
(completions-common-part ((t (:background
"SystemWindow" :foreground "SystemWindowText" :inverse-video nil :box
nil :strike-through nil :overline nil :underline nil :slant
normal :weight normal :height 98 :width normal :family "outline-
courier new"))))
(completions-first-difference ((t (:bold t :weight bold))))
(cua-global-mark ((t (:background "yellow1" :foreground
"black"))))
(cua-rectangle ((t (:background "maroon" :foreground "white"))))
(cua-rectangle-noselect ((t (:background "dimgray" :foreground
"white"))))
(cursor ((t (:background "orange"))))
(custom-button ((t (:background "lightgrey" :foreground
"black" :box (:line-width 2 :style released-button)))))
(custom-button-mouse ((t (:background "grey90" :foreground
"black" :box (:line-width 2 :style released-button)))))
(custom-button-pressed ((t (:background "lightgrey" :foreground
"black" :box (:line-width 2 :style pressed-button)))))
(custom-button-pressed-unraised ((t (:foreground
"magenta4" :underline t))))
(custom-button-unraised ((t (:underline t))))
(custom-changed ((t (:background "blue1" :foreground "white"))))
(custom-comment ((t (:background "gray85"))))
(custom-comment-tag ((t (:foreground "blue4"))))
(custom-documentation ((t (nil))))
(custom-face-tag ((t (:bold t :background "DarkGreen" :weight
bold :height 1.2 :family "helv"))))
(custom-group-tag ((t (:bold t :foreground "blue1" :weight
bold :height 1.2))))
(custom-group-tag-1 ((t (:bold t :background "yellow" :foreground
"red1" :weight bold :height 1.2 :family "helv"))))
(custom-invalid ((t (:background "red1" :foreground "yellow1"))))
(custom-link ((t (:foreground "lightblue" :underline t))))
(custom-modified ((t (:background "blue1" :foreground "white"))))
(custom-rogue ((t (:background "black" :foreground "pink"))))
(custom-saved ((t (:underline t))))
(custom-set ((t (:background "white" :foreground "blue1"))))
(custom-state ((t (:foreground "dark green"))))
(custom-themed ((t (:background "blue1" :foreground "white"))))
(custom-variable-button ((t (:bold t :underline t :weight
bold))))
(custom-variable-tag ((t (:bold t :background
"yellow" :foreground "blue1" :weight bold :height 1.2 :family
"helv"))))
(escape-glyph ((t (:foreground "brown"))))
(file-name-shadow ((t (:foreground "grey50"))))
(fixed-pitch ((t (:family "courier"))))
(flyspell-duplicate ((t (:bold t :foreground "Gold3" :underline
t :weight bold))))
(flyspell-incorrect ((t (:bold t :foreground
"OrangeRed" :underline t :weight bold))))
(font-latex-bold-face ((t (:bold t :foreground
"OliveDrab" :weight bold))))
(font-latex-doctex-documentation-face ((t (:background "#333"))))
(font-latex-doctex-preprocessor-face ((t (:background "#333"))))
(font-latex-italic-face ((t (:italic t :foreground
"OliveDrab" :slant italic))))
(font-latex-math-face ((t (:foreground "burlywood"))))
(font-latex-sectioning-0-face ((t (:bold t :foreground
"yellow" :weight bold :height 1.6105100000000008 :family "helv"))))
(font-latex-sectioning-1-face ((t (:bold t :foreground
"yellow" :weight bold :height 1.4641000000000006 :family "helv"))))
(font-latex-sectioning-2-face ((t (:bold t :foreground
"yellow" :weight bold :height 1.3310000000000004 :family "helv"))))
(font-latex-sectioning-3-face ((t (:bold t :foreground
"yellow" :weight bold :height 1.2100000000000002 :family "helv"))))
(font-latex-sectioning-4-face ((t (:bold t :foreground
"yellow" :weight bold :height 1.1 :family "helv"))))
(font-latex-sectioning-5-face ((t (:bold t :foreground
"yellow" :weight bold :family "helv"))))
(font-latex-sedate-face ((t (:foreground "#ffb27f"))))
(font-latex-slide-title-face ((t (:bold t :weight bold :height
1.2 :family "helv"))))
(font-latex-string-face ((t (:foreground "LightSalmon"))))
(font-latex-subscript-face ((t (:height 0.8))))
(font-latex-superscript-face ((t (:height 0.8))))
(font-latex-verbatim-face ((t (:foreground "burlywood" :family
"courier"))))
(font-latex-warning-face ((t (:bold t :foreground "red" :weight
bold))))
(font-lock-builtin-face ((t (:foreground "Orchid"))))
(font-lock-comment-delimiter-face ((t (:foreground
"Firebrick"))))
(font-lock-comment-face ((t (:foreground "#75715e"))))
(font-lock-constant-face ((t (:foreground "CadetBlue"))))
(font-lock-doc-face ((t (:foreground "RosyBrown"))))
(font-lock-function-name-face ((t (:foreground "#66d9ef"))))
(font-lock-keyword-face ((t (:foreground "#f92672"))))
(font-lock-negation-char-face ((t (nil))))
(font-lock-preprocessor-face ((t (:foreground "Orchid"))))
(font-lock-regexp-grouping-backslash ((t (:bold t :weight
bold))))
(font-lock-regexp-grouping-construct ((t (:bold t :weight
bold))))
(font-lock-string-face ((t (:foreground "RosyBrown"))))
(font-lock-type-face ((t (:foreground "ForestGreen"))))
(font-lock-variable-name-face ((t (:foreground
"DarkGoldenrod"))))
(font-lock-warning-face ((t (:bold t :foreground "Red1" :weight
bold))))
(fringe ((t (:background "#131411"))))
(header-line ((t (:background "grey90" :foreground "grey20" :box
nil))))
(help-argument-name ((t (:italic t :slant italic))))
(highlight ((t (:background "darkseagreen2"))))
(isearch ((t (:background "magenta3" :foreground
"lightskyblue1"))))
(italic ((t (:italic t :slant italic))))
(lazy-highlight ((t (:background "paleturquoise"))))
(link ((t (:foreground "lightblue" :underline t))))
(link-visited ((t (:foreground "magenta4" :underline t))))
(match ((t (:background "yellow1"))))
(menu ((t (:background "systemmenutext" :foreground
"systemmenu"))))
(minibuffer-prompt ((t (:foreground "lightblue"))))
(mode-line ((t (:background "grey75" :foreground "black" :box
(:line-width -1 :style released-button)))))
(mode-line-buffer-id ((t (:bold t :weight bold))))
(mode-line-highlight ((t (:box (:line-width 2 :color
"grey40" :style released-button)))))
(mode-line-inactive ((t (:background "grey90" :foreground
"grey20" :box (:line-width -1 :color "grey75" :style nil) :weight
light))))
(mouse ((t (:background "black"))))
(next-error ((t (:background "lightgoldenrod2"))))
(nobreak-space ((t (:foreground "brown" :underline t))))
(outline-1 ((t (:foreground "#66d9ef"))))
(outline-2 ((t (:foreground "DarkGoldenrod"))))
(outline-3 ((t (:foreground "#f92672"))))
(outline-4 ((t (:foreground "Orchid"))))
(outline-5 ((t (:foreground "#75715e"))))
(outline-6 ((t (:foreground "CadetBlue"))))
(outline-7 ((t (:foreground "ForestGreen"))))
(outline-8 ((t (:foreground "RosyBrown"))))
(preview-face ((t (:background "dark slate gray"))))
(preview-reference-face ((t (nil))))
(query-replace ((t (:background "magenta3" :foreground
"lightskyblue1"))))
(region ((t (:background "#49483e"))))
(scroll-bar ((t (:foreground "systemscrollbar"))))
(secondary-selection ((t (:background "yellow1"))))
(shadow ((t (:foreground "grey50"))))
(show-paren-match ((t (:background "turquoise"))))
(show-paren-mismatch ((t (:background "purple" :foreground
"white"))))
(template-message-face ((t (:background "pink"))))
(tool-bar ((t (:background "systembuttonface" :foreground
"systembuttontext" :box (:line-width 1 :style released-button)))))
(tooltip ((t (:background "systeminfowindow" :foreground
"systeminfotext" :family "helv"))))
(trailing-whitespace ((t (:background "red1"))))
(underline ((t (:underline t))))
(variable-pitch ((t (:family "helv"))))
(vertical-border ((t (nil))))
(widget-button ((t (:bold t :weight bold))))
(widget-button-pressed ((t (:foreground "red1"))))
(widget-documentation ((t (:foreground "dark green"))))
(widget-field ((t (:background "Blue"))))
(widget-inactive ((t (:foreground "grey50"))))
(widget-single-line-field ((t (:background "gray85")))))))
(add-to-list 'color-themes '(color-theme-sublime "Sublime"
"Tryphon"))

P.S: je suis le mainteneur de color-theme.



Toh :) :)

Et merci :)
Xavier Maillard
Le #21773001
Frédéric
Avec quel theme ? Sur quelle version de color-theme ? Ces noms de
couleur me semblent tres etranges.



La version est la 6.6.0

Le thème est un thème perso où je me suis pas cassé la tête, j'ai
repiqué le code d'un autre thème (je ne me rappelle absolument pas
lequel)



Que dit M-x list-faces-display RET lorsque ton theme est actif ?
(Notamment du cote des faces problematiques). Je vais essayer de
reproduire le probleme ici. Je te tiens au courant.

Xavier
Frédéric
Le #21772971
On 16 déc, 22:54, Xavier Maillard
Que dit M-x list-faces-display RET lorsque ton theme est actif ?
(Notamment du cote des faces problematiques). Je vais essayer de
reproduire le probleme ici. Je te tiens au courant.



Ben écoute hier j'ai installé le paquet emacs-snapshot-gtk et j'ai
commenté les lignes de mon theme qui provoquaient des erreurs. Je
recevais quand même des messages.

Aujourd'hui à la vue de ton message, j'ai décommenté les lignes et je
suis repassé sous la vieille version. Aucun message d'erreur et je ne
parviens pas à en récupérer.

Je suis troublé, ça faisait longtemps que ce genre d'effet Bonaldi ne
m'était pas arrivé.

Je relancerai ce post si d'autres problèmes se font jour.

Merci de ton attention en tous cas.

Xavier
Publicité
Poster une réponse
Anonyme