From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jpff Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#1161: 23.0.60; Text being added to wrong buffer Date: Tue, 14 Oct 2008 07:32:49 +0100 Message-ID: <4300-Tue14Oct2008073249+0100-jpff@codemist.co.uk> Reply-To: jpff , 1161@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1223967032 17829 80.91.229.12 (14 Oct 2008 06:50:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Oct 2008 06:50:32 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 14 08:51:29 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KpdkR-0001Xp-Pn for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Oct 2008 08:51:16 +0200 Original-Received: from localhost ([127.0.0.1]:36663 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KpdjN-0005Wj-83 for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Oct 2008 02:50:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KpdjI-0005WV-V1 for bug-gnu-emacs@gnu.org; Tue, 14 Oct 2008 02:50:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KpdjG-0005WB-RK for bug-gnu-emacs@gnu.org; Tue, 14 Oct 2008 02:50:03 -0400 Original-Received: from [199.232.76.173] (port=46772 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KpdjG-0005W8-L3 for bug-gnu-emacs@gnu.org; Tue, 14 Oct 2008 02:50:02 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:41060) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KpdjG-0003ab-18 for bug-gnu-emacs@gnu.org; Tue, 14 Oct 2008 02:50:02 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KpdjE-00005x-RT for bug-gnu-emacs@gnu.org; Tue, 14 Oct 2008 02:50:01 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9E6nx4Q029835; Mon, 13 Oct 2008 23:49:59 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m9E6e4XR027533; Mon, 13 Oct 2008 23:40:04 -0700 X-Loop: don@donarmstrong.com Resent-From: jpff Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 14 Oct 2008 06:40:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1161 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122396603626241 (code B ref -1); Tue, 14 Oct 2008 06:40:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 14 Oct 2008 06:33:56 +0000 Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9E6Xq7S026228 for ; Mon, 13 Oct 2008 23:33:53 -0700 Original-Received: from mx10.gnu.org ([199.232.76.166]:37620) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KpdRB-0007KZ-DX for emacs-pretest-bug@gnu.org; Tue, 14 Oct 2008 02:31:21 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KpdTY-0001yO-1n for emacs-pretest-bug@gnu.org; Tue, 14 Oct 2008 02:33:51 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:39852) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KpdTX-0001xt-Gd for emacs-pretest-bug@gnu.org; Tue, 14 Oct 2008 02:33:47 -0400 Original-Received: from smarthost03.mail.zen.net.uk ([212.23.3.142]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KpdTO-0007Yq-5S for emacs-pretest-bug@gnu.org; Tue, 14 Oct 2008 02:33:38 -0400 Original-Received: from [217.155.197.248] (helo=codemist.co.uk) by smarthost03.mail.zen.net.uk with esmtp (Exim 4.63) (envelope-from ) id 1KpdSj-0000cU-S0 for emacs-pretest-bug@gnu.org; Tue, 14 Oct 2008 06:32:58 +0000 Original-Received: from cardew.codemist.co.uk ([172.16.4.17]) by codemist.co.uk with esmtp (Exim 4.69) (envelope-from ) id 1KpdSj-00026R-LY; Tue, 14 Oct 2008 07:32:57 +0100 Original-Received: from jpff by cardew.codemist.co.uk with local (Exim 4.69) (envelope-from ) id 1KpdSc-0001Mj-6o; Tue, 14 Oct 2008 07:32:50 +0100 X-Mailer: emacs 23.0.60.2 (via feedmail 8 I) X-Originating-Smarthost03-IP: [217.155.197.248] X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Resent-Date: Tue, 14 Oct 2008 02:50:03 -0400 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:21457 gmane.emacs.pretest.bugs:23208 Archived-At: For a long time now I have been using a popup frame for diary reminders (defvar appt-used-frame nil "Frame used for displaying last appointment.") (defun appt-disp-frame (min-to-app new-time appt-msg) "Display appointments in a frame" (if (get-buffer "*Appointments*") (kill-buffer "*Appointments*")) (get-buffer-create "*Appointments*") (set-buffer "*Appointments*") (save-excursion (let ((pos (mouse-pixel-position))) (if (not (frame-live-p appt-used-frame)) (setq appt-used-frame (make-frame '((name . "Appointments") (menu-bar-lines . 1) (minibuffer . nil) (modeline . nil) (height . 5) (width . 80) (top . -2) (left . 1) (scroll-bar-width . 15) (unsplittable . t) (visibility . nil) (border-width . 2))))) ;; (menu-bar-mode -1) (and (eq 'icon (frame-visible-p appt-used-frame)) (make-frame-visible appt-used-frame)) (set-frame-position appt-used-frame 1 -2) (select-frame appt-used-frame) (set-window-buffer (frame-first-window appt-used-frame) (get-buffer-create "*Appointments*")) (goto-char (point-max)) (make-frame-visible) (if (string-lessp emacs-version "22") (progn (insert "--- Appointment in " min-to-app " minutes ---\n\n") (insert appt-msg "\n")) (insert "--- Appointment in " min-to-app " minutes ---\n\n") (insert appt-msg "\n")) (toggle-read-only 1) (set-buffer-modified-p nil) (if appt-audible (beep 1)) (select-frame (car pos)) (set-mouse-pixel-position (car pos) (car (cdr pos)) (cdr (cdr pos)))))) For the last few days sometimes i get a blank popup frame and the text of the appointment appears in another buffer I have open -- and that buffer is changed to read-only. It has actually just happened again as I typed this message. (defun appt-delete-frame () "Remove the appointment frame and buffer" (if (frame-live-p appt-used-frame) (progn (make-frame-invisible appt-used-frame t) (delete-frame appt-used-frame) (setq appt-used-frame nil))) (delete-buffer "*Appointments*") (if appt-audible (beep 1)) ) (setq appt-disp-window-function 'appt-disp-frame) (setq appt-delete-window-function 'appt-delete-frame) This could be a compatability change but I am worried about text appearing in other buffers. In GNU Emacs 23.0.60.2 (i686-pc-linux-gnu, GTK+ Version 2.12.0) of 2008-10-14 on cardew Windowing system distributor `The X.Org Foundation', version 11.0.70200000 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: en_GB.UTF-8 value of $XMODIFIERS: @im=local locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Mail Minor modes in effect: auto-image-file-mode: t show-paren-mode: t display-time-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 global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: d d d d SPC d d d d d d d d SPC d d d d d d d d d d d SPC d SPC d d SPC d d d d d d d d d d d d d d d d d d d d SPC d SPC d SPC d d SPC SPC d SPC SPC SPC d d d d t f C-l C-k C-k C-e C-x i . d i r C-v < , C-d C-d C-d C-v C-v C-v C-v > C-c C-c x o C-o C-x C-f S P A 6 C-x C-s C-x o t d SPC SPC SPC SPC SPC SPC d SPC d d d SPC d d s y d s y C-x o C-x k C-_ M-x t o g g r e C-_ C-x C-s C-x C-f m y e C-s f r a n e m e C-x b * m M e M-v C-v C-x o M-m e m C-g M-x r e p o r Recent messages: Saving file /home/jpff/RMAIL... Wrote /home/jpff/RMAIL Buffer is read-only: # Undo! Saving file /home/jpff/SPAM_record... Wrote /home/jpff/SPAM_record Mark saved where search started Auto save file for draft message exists; consider M-x mail-recover Quit Making completion list... [2 times] ==John ffitch