From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Anton Kulchitsky Newsgroups: gmane.emacs.bugs Subject: PgDown Problem Date: Mon, 20 Oct 2003 17:14:12 -0800 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3F948864.9050700@kulchitsky.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000100030704070703020007" X-Trace: sea.gmane.org 1066698942 20068 80.91.224.253 (21 Oct 2003 01:15:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 21 Oct 2003 01:15:42 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 21 03:15:40 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 1ABl7b-00042f-00 for ; Tue, 21 Oct 2003 03:15:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ABl6w-00029u-0e for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Oct 2003 21:14:58 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ABl6t-00029m-U8 for bug-gnu-emacs@gnu.org; Mon, 20 Oct 2003 21:14:55 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ABl6N-0001qM-Fq for bug-gnu-emacs@gnu.org; Mon, 20 Oct 2003 21:14:54 -0400 Original-Received: from [203.194.240.137] (helo=station174.com) by monty-python.gnu.org with smtp (Exim 4.24) id 1ABl6M-0001nB-4w for bug-gnu-emacs@gnu.org; Mon, 20 Oct 2003 21:14:22 -0400 Original-Received: (qmail 20957 invoked from network); 21 Oct 2003 01:15:11 -0000 Original-Received: from unknown (HELO kulchitsky.org) (137.229.38.248) by station174.com with SMTP; 21 Oct 2003 01:15:11 -0000 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en 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:6010 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:6010 This is a multi-part message in MIME format. --------------000100030704070703020007 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I am again about the bug, From the Manual: "Taking forever to complete a command can be a bug, but you must make certain that it was really Emacs's fault." The following command make emacs taking forever to complete a command for all tested versions (21.x) up to ver. 21.2 ., that is the last I have. PageDown from the start of the file of the exact lengths for the exact window sizes in KDE. My current system is GNU Emacs 21.2.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2003-10-20 on zeus Linux 2.4.something (distr. Red Hat 9.0) KDE 3.1-10 gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5) No operands were given when Emacs was installed I did not do any modifications into emacs. However, there are a few quite unusual specifications in .emacs: There are ========= ;;font size (set-face-font 'default "7x14") ;;my favorite scrolling and margins (setq scroll-conservatively 100) (setq scroll-margin 4) ====== There are many different files where this bug occur. However, I attached one which definitely reproduce the bug at any time on my system. You regret any guessing from my side. However, I guess, that the window size is very important. Thus, if I changed the window size this bug sometimes disappears and sometimes appears again. It occurs definitely if the window size is 611x632 px (which is default on my system for emacs) and mostly does not for the different window sizes. This 611x632 size concerns only to the attached files. For different files there are different "critical resolutions." This bug is really terrible because it happens rather often and is very unexpected. I found it more than a year ago on my previous machine when I started emacs and found that it depends on my settings in .emacs file. However, different setting are inconvenient for me. I hoped also it will be found and fixed by others. I thought it is because of my previous computer first. However, nothing changed when I changed the computer and installed latest versions. Thanks in advance, Anton Kulchitsky. --------------000100030704070703020007 Content-Type: text/plain; name="dreader.cpp" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="dreader.cpp" /* Class Cdreader 2002 Anton Kulchitsky implementation ver. 1.01 see file dreader.h for details */ #include #include #include #include #include using namespace std; #include "dreader.h" //local function to define size of file. Return 0 for mistake int filesize(const char* name) { FILE* F = fopen(name,"r"); if(F==NULL) return 0; fseek(F,0,SEEK_END); //set position to the end of file int length = ftell(F); //define number of position=> this is its length fclose(F); //close file return length; //we found it } Cdreader::Cdreader() { //file must be opened by Cdreader.open() if you use this constructor } Cdreader::Cdreader(const char* filename) { open(filename); } Cdreader::~Cdreader() { delete []buffer; //never forget? delete []group; } //open and reading file void Cdreader::open(const char* filename) { //creating and reading buffer for file content int length = filesize(filename); //filesize (already checked for overflow) if(length==0){ ErrorMsg(BAD_FILE,filename); exit(1); } //allocate memory for the buffer; buffer = new char[length+1]; group = new char[length+1]; //reading file in buffer (skip all 0 characters) ifstream In(filename); char ch; for(int i=0;i