unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Segfault after bad value for meta-prefix-char
Date: Thu, 20 Jan 2005 16:32:48 -0500	[thread overview]
Message-ID: <E1Crjv6-0000oD-Ko@fencepost.gnu.org> (raw)
In-Reply-To: <csmtnu$9kq$1@sea.gmane.org> (message from Peter Heslin on Thu, 20 Jan 2005 00:24:30 +0000 (UTC))

Does this patch fix the problem?

*** keymap.c	13 Jan 2005 14:48:46 -0500	1.299
--- keymap.c	20 Jan 2005 10:44:16 -0500	
***************
*** 528,533 ****
--- 528,537 ----
        struct gcpro gcpro1;
        Lisp_Object meta_map;
        GCPRO1 (map);
+       /* A strange value in which Meta is set would cause
+ 	 infinite recursion.  Protect against that.  */
+       if (meta_prefix_char & CHAR_META)
+ 	meta_prefix_char = make_number (27);
        meta_map = get_keymap (access_keymap (map, meta_prefix_char,
  					    t_ok, noinherit, autoload),
  			     0, autoload);

  parent reply	other threads:[~2005-01-20 21:32 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-20  0:24 Segfault after bad value for meta-prefix-char Peter Heslin
2005-01-20  1:10 ` Johan Bockgård
2005-01-20 10:38   ` Peter Heslin
2005-01-20 12:08     ` Andreas Schwab
2005-01-20 21:32 ` Richard Stallman [this message]
2005-01-20 23:28   ` Error while compiling; was " Peter Heslin
2005-01-21  6:01     ` Jan D.
2005-01-21 12:02       ` Peter Heslin
2005-01-21 12:34   ` Peter Heslin

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=E1Crjv6-0000oD-Ko@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@gnu.org \
    /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).