From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ernst Joachim Weniger Newsgroups: gmane.emacs.bugs Subject: Bug Report to KDE about (X_Emacs Date: Fri, 16 Sep 2005 17:04:09 +0200 (MEST) Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1126883387 6354 80.91.229.2 (16 Sep 2005 15:09:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 16 Sep 2005 15:09:47 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 16 17:09:45 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EGHpz-0003gw-7C for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Sep 2005 17:09:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EGHpy-0007Jx-Dy for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Sep 2005 11:09:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EGHov-0006tt-P6 for bug-gnu-emacs@gnu.org; Fri, 16 Sep 2005 11:08:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EGHos-0006sK-Hr for bug-gnu-emacs@gnu.org; Fri, 16 Sep 2005 11:08:08 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EGHoq-0006np-Aa for bug-gnu-emacs@gnu.org; Fri, 16 Sep 2005 11:08:04 -0400 Original-Received: from [132.199.1.17] (helo=rrzmta2.rz.uni-regensburg.de) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EGHl4-0006Qp-GX for bug-gnu-emacs@gnu.org; Fri, 16 Sep 2005 11:04:11 -0400 Original-Received: from rrzmta2.rz.uni-regensburg.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 0897415CB9 for ; Fri, 16 Sep 2005 17:04:16 +0200 (CEST) Original-Received: from rss1.rz.uni-regensburg.de (rss1.rz.uni-regensburg.de [132.199.1.200]) by rrzmta2.rz.uni-regensburg.de (Postfix) with SMTP id E3E0315CA7 for ; Fri, 16 Sep 2005 17:04:15 +0200 (CEST) Original-Received: (qmail 13949 invoked from network); 16 Sep 2005 17:04:09 +0200 Original-Received: from rchs5.chemie.uni-regensburg.de (132.199.48.5) by rss1.rz.uni-regensburg.de with QMQP; 16 Sep 2005 17:04:09 +0200 Original-Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 16 Sep 2005 17:04:09 +0200 X-Sender: wej05028@rchs5 Original-To: bug-gnu-emacs@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:13034 Archived-At: Yesterday, I sent the following detailed bug report about certain inconsistencies of (X)Emacs under KDE. Since this should also be of interest for you, I am sending this bug report also to you. Sincerely Ernst Joachim Weniger #-------------------------------------------------------| | PD Dr. Ernst Joachim Weniger | | Institut f=FCr Physikalische und Theoretische Chemie | | Universit=E4t Regensburg | | D-93040 Regensburg, Germany | | Tel: +49 (0)941-943-4722 | | Fax: +49 (0)941-943-4719 | | Email: Joachim.Weniger@chemie.uni-regensburg.de |=20 #-------------------------------------------------------| 15 September 2005 =20 PD Dr. Ernst Joachim Weniger =20 Institut f=FCr Physikalische und Theoretische Chemie Universit=E4t Regensburg D-93040 Regensburg=20 Germany KDE BUG REPORT ON KDEDESKTOP VERSION 3.4.0m =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Since 1999, 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.=20 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.=20 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: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > (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 ba= rs) > of 2005-03-22 on lorien > Package: AUC TeX 11.14 > > current state: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > (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) > =20 > (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 > =20 > ;;;;;;;;;;;;;;;;;;;;; EJW: Eigene Modifikationen;;;;;;;;;;;;;;;;;;;;;;= ;;; > (setq-default try-oblique0before-italic-fonts t) > (set-language-environment "Latin-1") > =20 > (setq default-major-mode 'text-mode) > (setq text-mode-hook 'turn-on-auto-fill) > (setq-default fill-column 73) > =20 > (setq-default transient-mark-mode t) > =20 > (line-number-mode 1) > (column-number-mode 1) > =20 > (global-set-key 'f1 'kill-primary-selection) ;; Cut > (global-set-key 'f2 'copy-primary-selection) ;; Copy > (global-set-key 'f3 'yank-clipboard-selection) ;; Paste > =20 > (global-set-key 'f4 'expand-abbrev) > =20 > (read-abbrev-file "~/.abbrev_defs") > (setq save-abbrevs t) > =20 > (load-file "/home/jo/.xemacs/Latex.MACS") > =20 > (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>")) > =20 > (defalias 'eqar (read-kbd-macro > "\\begin{eqnarray} RET % 2*SPC \\label{} RET \\lefteqn{} SPC \\nonumbe= r SPC \\\\ 2*RET \\\\ RET % 2*SPC \\label{} 2*RET \\end{eqnarray} RET 2*<= up>")) > =20 > (defalias 'ali (read-kbd-macro > "\\begin{align} RET % 2*SPC \\label{} RET SPC & SPC \\; SPC =3D SPC \\= ; SPC RET \\\\ RET % 2*SPC \\label{} RET SPC & SPC \\; SPC =3D SPC \\; RE= T \\end{align} RET 5*")) > =20 > (defalias 'sub (read-kbd-macro > "\\begin{subequations} RET % 2*SPC \\label{} 2*RET \\end{subequations}= RET 2*")) > =20 and ~/.xemacs/Auctex.EJW > ;;;;; Compare /usr/share/emacs/site-lisp/auctex/latex.el > ;;;;; or /usr/share/xemacs/xemacs-packages/lisp/auctex/latex.el > =20 > (require 'tex-site) > (add-hook 'TeX-mode-hook > '(lambda () > (LaTeX-math-mode) > )) > =20 > (defcustom LaTeX-equation-label "" > "*Default prefix to equation labels." > :group 'LaTeX-label > :type 'string) > (make-variable-buffer-local 'LaTeX-equation-label) > =20 > (defcustom LaTeX-eqnarray-label LaTeX-equation-label > "*Default prefix to eqnarray labels." > :group 'LaTeX-label > :type 'string) > (make-variable-buffer-local 'LaTeX-eqnarray-label) > =20 > ;; (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)) > =20 > (defcustom LaTeX-section-label > '(("chapter" . "Cha:") > ("section" . "Sec:") > ("subsection" . "Sub:")) > "Default prefix when asking for a label. > =20 > 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 equa= l > to the name of the sectioning command being inserted. The cdr is th= en > 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")))))) > =20 > (setq hilit-LaTeX-commands t) > (setq hilit-AmSLaTeX-commands t) > =20 > (setq minibuffer-max-depth nil) are called.=20 For Emacs, I use the configuration file ~/.ejw_custom > (custom-set-variables > ;; custom-set-variables was added by Custom -- don't edit or cut/pas= te 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)) > =20 > (setq-default case-fold-search nil) > =20 > (setq default-major-mode 'text-mode) > (set-language-environment "Latin-1") > (add-hook 'text-mode-hook 'turn-on-auto-fill)=20 > (setq-default fill-column 73) > =20 > (put 'narrow-to-region 'disabled nil) > =20 > (setq-default transient-mark-mode t) > =20 > (line-number-mode 1) > (column-number-mode 1) > =20 > (global-set-key [(f4)] 'expand-abbrev) > (read-abbrev-file "~/.abbrev_defs") > (setq save-abbrevs t)=20 > =20 > (load-file "/home/jo/.xemacs/Auctex.EJW") > (load-file "/home/jo/.xemacs/Latex.MACS") > =20 > (custom-set-faces > ;; custom-set-faces was added by Custom -- don't edit or cut/paste i= t! > ;; Your init file should contain only one such instance. > '(default ((t (:size "18pt" :family "Courier")))) > '(highlight ((((class color) (background light)) (:background "pink" = :family "courier"))))) =20 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=FCr Physikalische und Theoretische Chemie | | Universit=E4t Regensburg | | D-93040 Regensburg, Germany | | Tel: +49 (0)941-943-4722 | | Fax: +49 (0)941-943-4719 | | Email: Joachim.Weniger@chemie.uni-regensburg.de |=20 #-------------------------------------------------------|