From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Peter Hendrickson Newsgroups: gmane.emacs.bugs Subject: Calendar/Diary Lies When Cutting and Pasting Date: 14 Aug 2003 19:29:25 -0000 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <20030814192925.24360.qmail@wiredyne.com> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1060889461 18924 80.91.224.253 (14 Aug 2003 19:31:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 14 Aug 2003 19:31:01 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 14 21:30:59 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19nNoI-0008EI-00 for ; Thu, 14 Aug 2003 21:30:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19nNns-0002oq-6l for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Aug 2003 15:30:32 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19nNnW-0002nQ-NO for bug-gnu-emacs@gnu.org; Thu, 14 Aug 2003 15:30:10 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19nNn0-0002UT-94 for bug-gnu-emacs@gnu.org; Thu, 14 Aug 2003 15:30:09 -0400 Original-Received: from [63.194.89.150] (helo=wiredyne.com) by monty-python.gnu.org with smtp (Exim 4.20) id 19nNmv-000275-Cd for bug-gnu-emacs@gnu.org; Thu, 14 Aug 2003 15:29:33 -0400 Original-Received: (qmail 24361 invoked by uid 1009); 14 Aug 2003 19:29:25 -0000 Original-To: bug-gnu-emacs@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:5542 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:5542 Executive summary: If the entries for a day are displayed using "d" in calendar mode, and then the last line that appears is selected for cutting, what will be pasted is what was selected plus the rest of the text to the end of the diary file. This bug can be reliably reproduced. Exact sequence of commands: 1. Run emacs from xterm using "emacs &". 2. Type "M-x calendar". 3. Hit "d" (which will be over August 14, 2003). (The "diary" file used is below, following the emacs data.) 4. Use mouse-1 to select whole entry to end of the line. (This should be "Entry A", the last and only entry to appear.) 5. Move mouse over to xterm and type "cat > junk.1". 6. Paste into xterm with mouse-2. The line with "Entry A" plus the rest of the "diary" file will be pasted. The platform is NetBSD 1.6.1, running X with Enlightenment version 0.16.4. This is the X version information: > $ X -version > > XFree86 Version 4.2.1 / X Window System > (protocol Version 11, revision 0, vendor release 6600) > Release Date: 3 September 2002 > If the server is older than 6-12 months, or if your card is > newer than the above date, look for a newer version before > reporting problems. (See http://www.XFree86.Org/) > Build Operating System: NetBSD/i386 1.6.1_RC1 [ELF] The NetBSD Foundation, Inc. > Module Loader present (If more specific platform information is needed, please let me know and I'll happily supply it.) I discovered this bug by cutting a URL and pasting it into my browser. Consequently, the information from the end of that diary entry to the end of the diary file was sent to a remote server where it was presumably logged forever. Some of the information sent was personal in nature. I regard this as a serious bug. The first section below contains the automatically generated emacs bug information. The second section contains a sample diary file. (However, it seems to happen with any diary file.) If I can help in any way, please let me know. Peter Hendrickson pdh@wiredyne.com ------------------------------------------------------------------------ In GNU Emacs 21.3.1 (i386--netbsdelf, X toolkit) of 2003-08-13 on [domain removed. --pdh] configured using `configure --with-x --with-x-toolkit=athena --srcdir=/usr/home/pkgs/NetBSD-CVS/pkgsrc/editors/emacs/work/emacs-21.3 --with-xpm --with-jpeg --with-tiff --with-gif --with-png --host=i386--netbsdelf --prefix=/usr/pkg' 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 locale-coding-system: nil default-enable-multibyte-characters: t Please describe exactly what actions triggered the bug and the precise symptoms of the bug: Recent input: x r e p o r t - e m a c s - b u g Recent messages: Loading mule-util...done Loading cal-move...done Loading diary-lib...done Preparing diary... Loading holidays...done Loading cal-hebrew...done Loading cal-islam...done Loading cal-china...done Preparing diary...done Loading emacsbug...done ------------------------------------------------------------------------ Aug 14, 2003 Entry A Aug 15, 2003 Entry B Aug 16, 2003 Entry C Aug 17, 2003 Entry C Aug 18, 2003 Entry D Aug 19, 2003 Entry E ------------------------------------------------------------------------