Dear
xemacs.org, dear
Gnu.org,
today, I sent a lengthy bug reprt, which follows at the end of this
email, to
KDE.org. Since this bug report discusses some inconsistencies
of Xemacs and Emacs under KDE, it should be of interest for you.
With best regards
Ernst Joachim Weniger
#-------------------------------------------------------|
| PD Dr. Ernst Joachim Weniger |
| Institut für Physikalische und Theoretische Chemie |
| Universität Regensburg |
| D-93040 Regensburg, Germany |
| Tel: +49 (0)941-943-4722 |
| Fax: +49 (0)941-943-4719 |
| Email: Joachim.Weniger(a)chemie.uni-regensburg.de |
| Private Phone: +49 {0)89-647377 |
#-------------------------------------------------------|
15 September 2005
PD Dr. Ernst Joachim Weniger
Institut für Physikalische und Theoretische Chemie
Universität Regensburg
D-93040 Regensburg
Germany
KDE BUG REPORT ON KDEDESKTOP VERSION 3.4.0m
===========================================
Since 1000, I have been using various releases of Suse Linux, and I have
also been a happy user of the corresponding releases of the KDE desktop
environment which were part of the Suse Linux distribution.
Unfortunately, this changed when I recently bought a new PC and installed
Suse Linux 9.3: I observed some strange behavior in connection with the
editors Xemacs and Emacs. This had not occurred in the earlier versions
of KDE which I had used. It should be of interest for you that I observed
the correct behavior of Xemacs and Emacs when I use the Gnome desktop
environment.
So, it is a relatively obvious conclusions that the inconsistencies of
Xemacs and Emacs must be due KDE. However, I of course cannot rule out
the possibility that Suse did something wrong when they generated the KDE
binaries which I had used in the installation process.
First, I will describe the problems which I encountered. After that, I
will describe in detail my system configuration and the software as well
as the configuration files of Xemacs and Emacs.
In my file ~/.Xresources, there occurs the line
XEmacs.geometry: 126x62+0+0
which governs the location of Xemacs on my screen.
According to theory, the Xemacs frome should then appear at a defined
location with a defined height and width. However, when I start Xemacs
under KDE, only the location is correct. The Xemacs frame first expands
to the correct size, but then it shrinks to a relatively small rectangle
of correct height, but substantially smaller width. Irritatingly,
however, in some rare cases it expands again after shrinking to produce
an Xemacs from of the correct size. I was not able to detect any pattern
which could explain why I sometimes get a frame with a correct
geometry. Accordingly, in most cases (at least 9 out of 10) I have to set
the geometry of the Xemacs frame manually.
When I start Xemacs under Gnome, I always get the correct geometry.
When working with Xemacs, I normally can mark a region with the left
mouse button. This marked region is copied to the kill ring and I should
be able to paste this region to a different location in the file via the
middle mouse button. However, in my case, the operation produces the
correct result only if the kill ring had been empty. Accordingly, after
marking a region with the left mouse button, I have to explicitly give a
command like Alt-w in order to copy the marked region into the kill
ring. After that, pasting via the middle mouse button works. Obviously,
this is a very annoying behavior.
When I start Xemacs under Gnome, cutting and pasting with the mouse works
as it should. Moreover, cutting and pasting with the mouse works as it
should when I start Emacs under KDE as well as under Gnome.
My file ~/.Xresources also contains the statement
Emacs.geometry: 78x44+0+0
which governs the geometry of the Emacs frame. Here, everything works
fine, both under KDE and Gnome.
However, when I start Emacs under KDE, I have another problem: Normally,
it is possible to mark a region in a different console of the desktop via
the left mouse button and to copy it to the file in my Emacs frame by
pressing the left mouse button. Unfortunately, this cut-and-paste
operation does not work in Emacs under KDE. It does, however, work
correctly in Emacs under Gnome, as well as in Xemacs, both under KDE and
Gnome.
I use a Fujitsu-Siemens Scenic W 620 PC with an Intel Pentium IV chip. My
operating system is Suse 9.3 Linux (the most recent version of Suse
Linux). In addition, I use a Fujitsu-Siemens ScenicView P19-2 LCD screen
with a 19 " diagonal and a maximum resolution of 1280 x 1024.
The problems described above occur under the kdedesktop version 3.4.0m
which was created by the gcc compiler version 3.3.5 20050117 (prerelease)
(Suse Linux). My operating system is Linux (i638) release
2.6.11.4-21.9-smp.
I use the following version of Xemacs:
Emacs : XEmacs 21.5 (beta18) "chestnut" (+CVS-20041021)
[Lucid] (i386-suse-linux, Mule) of Tue Mar 22 2005 on mozart
Package: AUCTeX sumo-2005-01-18
current state:
==============
(setq
window-system 'x
LaTeX-version "2e"
TeX-style-path '("style/" "auto/" "~/TeX/style/"
"~/TeX/auto/"
"/usr/share/xemacs/xemacs-packages/etc/auctex/style/"
"/usr/share/xemacs/xemacs-packages/etc/auctex/auto/")
TeX-auto-save nil
TeX-parse-self nil
TeX-master t
)
I use the following version of Emacs:
Emacs : GNU Emacs 21.3.1 (i586-suse-linux, X toolkit, Xaw3d scroll
bars)
of 2005-03-22 on lorien
Package: AUC TeX 11.14
current state:
==============
(setq
window-system 'x
LaTeX-version "2e"
TeX-style-path '("style/" "auto/"
"/usr/share/emacs/site-lisp/auctex/style/"
"/usr/share/emacs/site-lisp/auctex/auto/")
TeX-auto-save nil
TeX-parse-self nil
TeX-master t
)
For Xemacs, I am using the configuraion files ~/.xemacs/custom.el
(custom-set-faces
'(default ((t (:size "18pt" :family "Courier" :bold t))) t))
(custom-set-variables
'(abbrev-mode nil)
'(blink-cursor-mode t nil (blink-cursor))
'(case-fold-search nil)
'(column-number-mode t)
'(display-time-24hr-format nil)
'(display-time-day-and-date nil)
'(enabled-behavior-list '(resize-minibuffer)
)
'(fast-lock-mode nil nil (fast-lock))
'(font-lock-auto-fontify nil)
'(font-lock-maximum-decoration t)
'(font-lock-mode nil nil (font-lock))
'(font-lock-use-colors t)
'(font-lock-use-fonts nil)
'(line-number-mode t)
'(mouse-yank-at-point t)
'(paren-mode nil nil (paren))
'(pending-delete-mode t nil (pending-del))
'(ps-paper-type 'a4)
'(ps-print-color-p nil))
and ~/.xemacs/init.el
(put 'narrow-to-region 'disabled nil)
(set-face-background 'default "white") ; frame background
(set-face-foreground 'default "black") ; normal text
(set-face-background 'zmacs-region "green") ; When selecting w/
; mouse
(set-face-foreground 'zmacs-region "black")
(set-face-background 'highlight "blue") ; Ie when selecting
; buffers
(set-face-foreground 'highlight "yellow")
(set-face-background 'modeline "grey") ; Line at bottom
; of buffer
(set-face-foreground 'modeline "blue")
(set-face-background 'isearch "yellow") ; When highlighting
; while searching
(set-face-foreground 'isearch "red")
(setq x-pointer-foreground-color "black") ; Adds to bg color,
; so keep black
(setq x-pointer-background-color "blue") ; This is color
; you really
; want ptr/crsr
;;;;;;;;;;;;;;;;;;;;; EJW: Eigene Modifikationen;;;;;;;;;;;;;;;;;;;;;;;;;
(setq-default try-oblique0before-italic-fonts t)
(set-language-environment "Latin-1")
(setq default-major-mode 'text-mode)
(setq text-mode-hook 'turn-on-auto-fill)
(setq-default fill-column 73)
(setq-default transient-mark-mode t)
(line-number-mode 1)
(column-number-mode 1)
(global-set-key 'f1 'kill-primary-selection) ;; Cut
(global-set-key 'f2 'copy-primary-selection) ;; Copy
(global-set-key 'f3 'yank-clipboard-selection) ;; Paste
(global-set-key 'f4 'expand-abbrev)
(read-abbrev-file "~/.abbrev_defs")
(setq save-abbrevs t)
(load-file "/home/jo/.xemacs/Latex.MACS")
(load-file "/home/jo/.xemacs/Auctex.EJW")
In ~/.xemacs/init.el, the files ~/.xemacs/Latex.MACS
(defalias 'eqn (read-kbd-macro
"\\begin{equation} RET % 2*SPC \\label{} 2*RET \\end{equation} RET
2*<up>"))
(defalias 'eqar (read-kbd-macro
"\\begin{eqnarray} RET % 2*SPC \\label{} RET \\lefteqn{} SPC \\nonumber SPC \\\\
2*RET \\\\ RET % 2*SPC \\label{} 2*RET \\end{eqnarray} RET 2*<up>"))
(defalias 'ali (read-kbd-macro
"\\begin{align} RET % 2*SPC \\label{} RET SPC & SPC \\; SPC = SPC \\; SPC RET
\\\\ RET % 2*SPC \\label{} RET SPC & SPC \\; SPC = SPC \\; RET \\end{align} RET
5*<up>"))
(defalias 'sub (read-kbd-macro
"\\begin{subequations} RET % 2*SPC \\label{} 2*RET \\end{subequations} RET
2*<up>"))
and ~/.xemacs/Auctex.EJW
;;;;; Compare /usr/share/emacs/site-lisp/auctex/latex.el
;;;;; or /usr/share/xemacs/xemacs-packages/lisp/auctex/latex.el
(require 'tex-site)
(add-hook 'TeX-mode-hook
'(lambda ()
(LaTeX-math-mode)
))
(defcustom LaTeX-equation-label ""
"*Default prefix to equation labels."
:group 'LaTeX-label
:type 'string)
(make-variable-buffer-local 'LaTeX-equation-label)
(defcustom LaTeX-eqnarray-label LaTeX-equation-label
"*Default prefix to eqnarray labels."
:group 'LaTeX-label
:type 'string)
(make-variable-buffer-local 'LaTeX-eqnarray-label)
;; (setq LaTeX-section-hook
;; '(LaTeX-section-heading
;; LaTeX-section-title
;; LaTeX-section-section
;; LaTeX-section-label))
;;
;; :type 'hook
;; :options '(LaTeX-section-heading
;; LaTeX-section-title
;; LaTeX-section-section
;; LaTeX-section-label))
(defcustom LaTeX-section-label
'(("chapter" . "Cha:")
("section" . "Sec:")
("subsection" . "Sub:"))
"Default prefix when asking for a label.
If it is a string, it it used unchanged for all kinds of sections.
If it is nil, no label is inserted.
If it is a list, the list is searched for a member whose car is equal
to the name of the sectioning command being inserted. The cdr is then
used as the prefix. If the name is not found, or if the cdr is nil,
no label is inserted."
:group 'LaTeX-label
:type '(choice (const :tag "none" nil)
(string :format "%v" :tag "Common")
(repeat :menu-tag "Level specific"
:format "\n%v%i"
(cons :format "%v"
(string :tag "Type")
(choice :tag "Prefix"
(const :tag "none" nil)
(string :format "%v"))))))
(setq hilit-LaTeX-commands t)
(setq hilit-AmSLaTeX-commands t)
(setq minibuffer-max-depth nil)
are called.
For Emacs, I use the configuration file ~/.ejw_custom
(custom-set-variables
;; custom-set-variables was added by Custom -- don't edit or cut/paste it!
;; Your init file should contain only one such instance.
'(case-fold-search t)
'(column-number-mode t)
'(current-language-environment "Latin-1")
'(default-input-method "latin-1-prefix")
'(delete-selection-mode nil nil (delsel))
'(fill-column 73)
'(global-hl-line-mode t nil (hl-line))
'(hl-line-face (quote highlight))
'(kill-read-only-ok nil)
'(kill-ring-max 70)
'(load-home-init-file t)
'(mouse-yank-at-point t)
'(next-line-add-newlines t)
'(scroll-bar-mode (quote right))
'(show-paren-mode t nil (paren))
'(text-mode-hook (quote (turn-on-auto-fill text-mode-hook-identify)))
'(transient-mark-mode t)
'(user-full-name "Ernst Joachim Weniger")
'(x-select-enable-clipboard t))
(setq-default case-fold-search nil)
(setq default-major-mode 'text-mode)
(set-language-environment "Latin-1")
(add-hook 'text-mode-hook 'turn-on-auto-fill)
(setq-default fill-column 73)
(put 'narrow-to-region 'disabled nil)
(setq-default transient-mark-mode t)
(line-number-mode 1)
(column-number-mode 1)
(global-set-key [(f4)] 'expand-abbrev)
(read-abbrev-file "~/.abbrev_defs")
(setq save-abbrevs t)
(load-file "/home/jo/.xemacs/Auctex.EJW")
(load-file "/home/jo/.xemacs/Latex.MACS")
(custom-set-faces
;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
;; Your init file should contain only one such instance.
'(default ((t (:size "18pt" :family "Courier"))))
'(highlight ((((class color) (background light)) (:background "pink"
:family "courier")))))
This configuration file for Emacs also calles the configuration files
~/.xemacs/Auctex.EJW and ~/.xemacs/Latex.MACS, which are also used in
Xemacs.
Yours sincerely
Ernst Joachim Weniger
#-------------------------------------------------------|
| PD Dr. Ernst Joachim Weniger |
| Institut für Physikalische und Theoretische Chemie |
| Universität Regensburg |
| D-93040 Regensburg, Germany |
| Tel: +49 (0)941-943-4722 |
| Fax: +49 (0)941-943-4719 |
| Email: Joachim.Weniger(a)chemie.uni-regensburg.de |
#-------------------------------------------------------|