unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Peter Hendrickson <pdh@wiredyne.com>
Subject: Calendar/Diary Lies When Cutting and Pasting
Date: 14 Aug 2003 19:29:25 -0000	[thread overview]
Message-ID: <20030814192925.24360.qmail@wiredyne.com> (raw)

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:
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <drag-mouse-1> <escape> 
x r e p o r t - e m a c s - b u g <return>

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
------------------------------------------------------------------------

             reply	other threads:[~2003-08-14 19:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-14 19:29 Peter Hendrickson [this message]
     [not found] <mailman.427.1060889413.29551.bug-gnu-emacs@gnu.org>
2003-08-25 17:10 ` Calendar/Diary Lies When Cutting and Pasting Edward M. Reingold

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030814192925.24360.qmail@wiredyne.com \
    --to=pdh@wiredyne.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).