From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Sanjeev Kumar.S" Newsgroups: gmane.emacs.help Subject: emacs crash again and again......I'm requesting help here as last resort. Date: Sat, 12 Jan 2008 11:32:19 -0800 (PST) Message-ID: <8770.5975.qm@web57708.mail.re3.yahoo.com> References: <85zlvdpsvu.fsf@usenet.my.skamphausen.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0873121620==" X-Trace: ger.gmane.org 1200166368 655 80.91.229.12 (12 Jan 2008 19:32:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Jan 2008 19:32:48 +0000 (UTC) To: Stefan Kamphausen , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 12 20:33:09 2008 Return-path: Envelope-to: geh-help-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 1JDm6N-0005bc-Ei for geh-help-gnu-emacs@m.gmane.org; Sat, 12 Jan 2008 20:33:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JDm5z-0006EF-7D for geh-help-gnu-emacs@m.gmane.org; Sat, 12 Jan 2008 14:32:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JDm5g-0006DM-8F for help-gnu-emacs@gnu.org; Sat, 12 Jan 2008 14:32:24 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JDm5d-00069c-0l for help-gnu-emacs@gnu.org; Sat, 12 Jan 2008 14:32:23 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JDm5c-00069T-TB for help-gnu-emacs@gnu.org; Sat, 12 Jan 2008 14:32:20 -0500 Original-Received: from web57708.mail.re3.yahoo.com ([68.142.236.71]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JDm5c-0003IC-HD for help-gnu-emacs@gnu.org; Sat, 12 Jan 2008 14:32:20 -0500 Original-Received: (qmail 6676 invoked by uid 60001); 12 Jan 2008 19:32:20 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=zlFoBG8abwxqhGdc14P+CMIz/gtlQyX+h6DvrqBUNebxLwdZHcH2goEy7AkBnl3Ujg95mYb68GaftdsQ0bzwWNVqs8eH9itMulaoCKkRiB7pWfeUjaFm6QEtzXcW3Brm+a39bOUfyINxo+R/LJA+2sM2Ksd0zwUgG/qxfNZF15g=; X-YMail-OSG: .7Zpc3cVM1mija3OYjs8qLvzBCa2.4qF56A2KUkXRq.uBONDZcpZU8qk7NToMcl2S14J2YmMta0gZuJtZ.7xRSwan5h5o3CY_WFyKVOC1Z4lDitmJZu6mioEuja1g3veEGwCcwTNvwBuq1E- Original-Received: from [122.167.177.55] by web57708.mail.re3.yahoo.com via HTTP; Sat, 12 Jan 2008 11:32:19 PST In-Reply-To: <85zlvdpsvu.fsf@usenet.my.skamphausen.de> X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:50687 Archived-At: --===============0873121620== Content-Type: multipart/alternative; boundary="0-1142593544-1200166339=:5975" Content-Transfer-Encoding: 8bit --0-1142593544-1200166339=:5975 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit tried filing a bug through the emacs submit , but that was the last I ever heard of it. Here is the output: I get crashes on the same line again and again: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1220520272 (LWP 8874)] 0xb7a3e92d in XRenderFindDisplay () from /usr/lib/libXrender.so.1 (gdb) bt #0 0xb7a3e92d in XRenderFindDisplay () from /usr/lib/libXrender.so.1 #1 0xb7a3ca55 in XRenderFreePicture () from /usr/lib/libXrender.so.1 #2 0xb7664b80 in XftDrawDestroy () from /usr/lib/libXft.so.2 #3 0x080c0bd0 in clear_face_cache (clear_fonts_p=0) at xfaces.c:5444 #4 0x0808799f in redisplay_internal (preserve_echo_area=) at xdisp.c:11144 #5 0x08087e6c in redisplay_preserve_echo_area (from_where=2) at xdisp.c:11194 #6 0x080557c0 in sit_for (sec=0, usec=500000, reading=0, display=1, initial_display=1) at dispnew.c:6407 #7 0x080558c5 in Fsit_for (seconds=137500870, milliseconds=137509881, nodisp=) at dispnew.c:6470 #8 0x08158646 in Ffuncall (nargs=2, args=0xbff88860) at eval.c:2885 #9 0x08183aa7 in Fbyte_code (bytestr=136845459, vector=136845764, maxdepth=6) at bytecode.c:694 #10 0x08157b69 in Feval (form=136845445) at eval.c:2225 #11 0x0815a11f in internal_lisp_condition_case (var=137509881, bodyform=136845445, handlers=136846141) at eval.c:1412 #12 0x08182d58 in Fbyte_code (bytestr=136845339, vector=136845388, maxdepth=4) at bytecode.c:884 #13 0x08158138 in funcall_lambda (fun=136845308, nargs=0, arg_vector=0xbff88c48) at eval.c:3066 #14 0x0815856e in Ffuncall (nargs=1, args=0xbff88c44) at eval.c:2934 #15 0x08159d5c in Fapply (nargs=2, args=0xbff88c44) at eval.c:2315 #16 0x081587b0 in Ffuncall (nargs=3, args=0xbff88c40) at eval.c:2860 #17 0x08183aa7 in Fbyte_code (bytestr=136891059, vector=136891100, maxdepth=4) at bytecode.c:694 #18 0x08157b69 in Feval (form=136891045) at eval.c:2225 #19 0x0815a11f in internal_lisp_condition_case (var=137509881, bodyform=136891045, handlers=136891133) at eval.c:1412 #20 0x08182d58 in Fbyte_code (bytestr=136890779, vector=136890932, maxdepth=5) at bytecode.c:884 #21 0x08158138 in funcall_lambda (fun=136890740, nargs=1, arg_vector=0xbff88f74) at eval.c:3066 #22 0x0815856e in Ffuncall (nargs=2, args=0xbff88f70) at eval.c:2934 #23 0x08159909 in call1 (fn=137544473, arg1=143319756) at eval.c:2668 #24 0x080f9396 in timer_check (do_it_now=1) at keyboard.c:4473 #25 0x080f95a9 in readable_events (flags=1) at keyboard.c:3512 #26 0x080f9617 in get_input_pending (addr=0x8311194, flags=1) at keyboard.c:6593 #27 0x080f96f0 in detect_input_pending_run_timers (do_display=1) at keyboard.c:9945 #28 0x0818a349 in wait_reading_process_output (time_limit=30, microsecs=0, read_kbd=-1, do_display=1, wait_for_cell=137509881, wait_proc=0x0, just_wait_proc=0) at process.c:4593 #29 0x08055808 in sit_for (sec=30, usec=0, reading=1, display=1, initial_display=0) at dispnew.c:6416 #30 0x080fd0de in read_char (commandflag=1, nmaps=5, maps=0xbff89620, prev_event=137509881, used_mouse_menu=0xbff896d4) at keyboard.c:2770 #31 0x080fefed in read_key_sequence (keybuf=0xbff89784, bufsize=30, prompt=137509881, dont_downcase_last=0, can_return_switch_frame=1, fix_current_buffer=1) at keyboard.c:8855 #32 0x08100b17 in command_loop_1 () at keyboard.c:1529 ---Type to continue, or q to quit--- #33 0x0815711b in internal_condition_case (bfun=0x8100990 , handlers=137553665, hfun=0x80fb720 ) at eval.c:1465 #34 0x080fa9c3 in command_loop_2 () at keyboard.c:1321 #35 0x081571da in internal_catch (tag=137549921, func=0x80fa9a0 , arg=137509881) at eval.c:1211 #36 0x080fb3dc in command_loop () at keyboard.c:1300 #37 0x080fb48a in recursive_edit_1 () at keyboard.c:993 #38 0x080fb587 in Frecursive_edit () at keyboard.c:1054 #39 0x080f1955 in main (argc=6, argv=0xbff89e84) at emacs.c:1789 (gdb) l *0x080c0bd0 0x80c0bd0 is in clear_face_cache (xfaces.c:5445). 5440 #ifdef HAVE_XFT 5441 if (face && face->xft_draw) 5442 { 5443 BLOCK_INPUT; 5444 XftDrawDestroy (face->xft_draw); 5445 UNBLOCK_INPUT; 5446 face->xft_draw = 0; 5447 } 5448 #endif 5449 if (face && face->gc) (gdb) Stefan Kamphausen wrote: "Ye ilho" writes: > Hi everyone, > > I am sorry for my ignorance but I was trying to find out how to move > the cursor to the bottom/middle/top of the screen? > In other words, when I edit something, I sometimes want to go to the > top of the screen I see with one key stroke. There are two functions I've been using for years which allow me to use the home and end keys as follows: press once goto beginning/end of line press twice goto beginning/end of window press thrice goto beginning/end of buffer Those functions are: (defun chb-home () (interactive) (if (not (bolp)) (beginning-of-line) (if (eq this-command last-command) (cond ((not (= (point) (window-start))) (move-to-window-line 0) (beginning-of-line)) (t (goto-char (point-min))))))) (defun chb-end () (interactive) (if (not (eolp)) (end-of-line) (if (eq this-command last-command) (cond ((not (= (point) (save-excursion (move-to-window-line -1) (end-of-line) (point)))) (move-to-window-line -1) (end-of-line)) (t (goto-char (point-max))))))) I bind them like this: (global-set-key '[(home)] 'chb-home) (global-set-key '[(end)] 'chb-end) Very convenient. Regards, Stefan -- Stefan Kamphausen --- http://www.skamphausen.de a blessed +42 regexp of confusion (weapon in hand) You hit. The format string crumbles and turns to dust. _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --------------------------------- Never miss a thing. Make Yahoo your homepage. --0-1142593544-1200166339=:5975 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit tried filing a bug through the emacs submit , but that was the last I ever heard of it. Here is the output:

I get crashes on the same line again and again:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1220520272 (LWP 8874)]
0xb7a3e92d in XRenderFindDisplay () from /usr/lib/libXrender.so.1
(gdb) bt
#0  0xb7a3e92d in XRenderFindDisplay () from /usr/lib/libXrender.so.1
#1  0xb7a3ca55 in XRenderFreePicture () from /usr/lib/libXrender.so.1
#2  0xb7664b80 in XftDrawDestroy () from /usr/lib/libXft.so.2
#3  0x080c0bd0 in clear_face_cache (clear_fonts_p=0) at xfaces.c:5444
#4  0x0808799f in redisplay_internal (preserve_echo_area=<value optimized out>) at xdisp.c:11144
#5  0x08087e6c in redispl ay_preserve_echo_area (from_where=2) at xdisp.c:11194
#6  0x080557c0 in sit_for (sec=0, usec=500000, reading=0, display=1, initial_display=1) at dispnew.c:6407
#7  0x080558c5 in Fsit_for (seconds=137500870, milliseconds=137509881, nodisp=<value optimized out>) at dispnew.c:6470
#8  0x08158646 in Ffuncall (nargs=2, args=0xbff88860) at eval.c:2885
#9  0x08183aa7 in Fbyte_code (bytestr=136845459, vector=136845764, maxdepth=6) at bytecode.c:694
#10 0x08157b69 in Feval (form=136845445) at eval.c:2225
#11 0x0815a11f in internal_lisp_condition_case (var=137509881, bodyform=136845445, handlers=136846141) at eval.c:1412
#12 0x08182d58 in Fbyte_code (bytestr=136845339, vector=136845388, maxdepth=4) at bytecode.c:884
#13 0x08158138 in funcall_lambda (fun=136845308, nargs=0, arg_vector=0xbff88c48) at eval.c:3066
#14 0x0815856e in Ffuncall (nargs=1, args=0xbff88c44) at eval.c:2934
#15 0x08159d5c in Fapply (nargs=2, args=0x bff88c44) at eval.c:2315
#16 0x081587b0 in Ffuncall (nargs=3, args=0xbff88c40) at eval.c:2860
#17 0x08183aa7 in Fbyte_code (bytestr=136891059, vector=136891100, maxdepth=4) at bytecode.c:694
#18 0x08157b69 in Feval (form=136891045) at eval.c:2225
#19 0x0815a11f in internal_lisp_condition_case (var=137509881, bodyform=136891045, handlers=136891133) at eval.c:1412
#20 0x08182d58 in Fbyte_code (bytestr=136890779, vector=136890932, maxdepth=5) at bytecode.c:884
#21 0x08158138 in funcall_lambda (fun=136890740, nargs=1, arg_vector=0xbff88f74) at eval.c:3066
#22 0x0815856e in Ffuncall (nargs=2, args=0xbff88f70) at eval.c:2934
#23 0x08159909 in call1 (fn=137544473, arg1=143319756) at eval.c:2668
#24 0x080f9396 in timer_check (do_it_now=1) at keyboard.c:4473
#25 0x080f95a9 in readable_events (flags=1) at keyboard.c:3512
#26 0x080f9617 in get_input_pending (addr=0x8311194, flags=1) at keyboard.c:6593
#27 0x080f96f0 in detect_input_pending_ru n_timers (do_display=1) at keyboard.c:9945
#28 0x0818a349 in wait_reading_process_output (time_limit=30, microsecs=0, read_kbd=-1, do_display=1,
    wait_for_cell=137509881, wait_proc=0x0, just_wait_proc=0) at process.c:4593
#29 0x08055808 in sit_for (sec=30, usec=0, reading=1, display=1, initial_display=0) at dispnew.c:6416
#30 0x080fd0de in read_char (commandflag=1, nmaps=5, maps=0xbff89620, prev_event=137509881, used_mouse_menu=0xbff896d4)
    at keyboard.c:2770
#31 0x080fefed in read_key_sequence (keybuf=0xbff89784, bufsize=30, prompt=137509881, dont_downcase_last=0,
    can_return_switch_frame=1, fix_current_buffer=1) at keyboard.c:8855
#32 0x08100b17 in command_loop_1 () at keyboard.c:1529
---Type <return> to continue, or q <return> to quit---
#33 0x0815711b in internal_condition_case (bfun=0x8100990 <command_loop_1>, handlers=137553665, hfun=0x80fb720 <c md_error>)
    at eval.c:1465
#34 0x080fa9c3 in command_loop_2 () at keyboard.c:1321
#35 0x081571da in internal_catch (tag=137549921, func=0x80fa9a0 <command_loop_2>, arg=137509881) at eval.c:1211
#36 0x080fb3dc in command_loop () at keyboard.c:1300
#37 0x080fb48a in recursive_edit_1 () at keyboard.c:993
#38 0x080fb587 in Frecursive_edit () at keyboard.c:1054
#39 0x080f1955 in main (argc=6, argv=0xbff89e84) at emacs.c:1789
(gdb) l *0x080c0bd0
0x80c0bd0 is in clear_face_cache (xfaces.c:5445).
5440    #ifdef HAVE_XFT
5441              if (face && face->xft_draw)
5442                {
5443                  BLOCK_INPUT;
5444                   XftDrawDestroy (face->xft_draw);
5445                  UNBLOCK_INPUT;
5446                  face->xft_draw = 0;
5447                }
5448    #endif
5449              if (face && face->gc)
(gdb)


Stefan Kamphausen <skampi@gmx.net> wrote:
"Ye ilho" writes:

> Hi everyone,
>< br>> I am sorry for my ignorance but I was trying to find out how to move
> the cursor to the bottom/middle/top of the screen?
> In other words, when I edit something, I sometimes want to go to the
> top of the screen I see with one key stroke.

There are two functions I've been using for years which allow me to
use the home and end keys as follows:

press once goto beginning/end of line
press twice goto beginning/end of window
press thrice goto beginning/end of buffer

Those functions are:

(defun chb-home ()
(interactive)
(if (not (bolp))
(beginning-of-line)
(if (eq this-command last-command)
(cond
((not (= (point) (window-start)))
(move-to-window-line 0)
(beginning-of-line))
(t
(goto-char (point-min)))))))

(defun chb-end ()
(interactive)
(if (not (eolp))
(end-of-line)
(if (eq this -command last-command)
(cond
((not (= (point) (save-excursion
(move-to-window-line -1)
(end-of-line)
(point))))
(move-to-window-line -1)
(end-of-line))
(t
(goto-char (point-max)))))))

I bind them like this:
(global-set-key '[(home)] 'chb-home)
(global-set-key '[(end)] 'chb-end)

Very convenient.

Regards,
Stefan
--
Stefan Kamphausen --- http://www.skamphausen.de
a blessed +42 regexp of confusion (weapon in hand)
You hit. The format string crumbles and turns to dust.
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs


Never miss a thing. Make Yahoo your homepage. --0-1142593544-1200166339=:5975-- --===============0873121620== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============0873121620==--