From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: GDB on Mac is Broken Date: Sat, 13 Mar 2010 18:50:54 +0200 Message-ID: <83wrxg17yp.fsf@gnu.org> References: <19354.32067.21297.436863@fencepost.gnu.org> <8363503bhz.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1268499096 22774 80.91.229.12 (13 Mar 2010 16:51:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 13 Mar 2010 16:51:36 +0000 (UTC) Cc: emacs-devel@gnu.org To: Leo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 13 17:51:29 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NqUYg-0002TF-8y for ged-emacs-devel@m.gmane.org; Sat, 13 Mar 2010 17:51:26 +0100 Original-Received: from localhost ([127.0.0.1]:58594 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NqUYf-0007E5-HK for ged-emacs-devel@m.gmane.org; Sat, 13 Mar 2010 11:51:25 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NqUYA-0006zZ-Uj for emacs-devel@gnu.org; Sat, 13 Mar 2010 11:50:55 -0500 Original-Received: from [140.186.70.92] (port=39580 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NqUY7-0006xb-NM for emacs-devel@gnu.org; Sat, 13 Mar 2010 11:50:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NqUY6-0007vU-3h for emacs-devel@gnu.org; Sat, 13 Mar 2010 11:50:51 -0500 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:51812) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NqUY5-0007un-Rd for emacs-devel@gnu.org; Sat, 13 Mar 2010 11:50:50 -0500 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0KZ800L00BV0C900@a-mtaout23.012.net.il> for emacs-devel@gnu.org; Sat, 13 Mar 2010 18:50:47 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.70.214.230]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KZ800JPQC4MJ580@a-mtaout23.012.net.il>; Sat, 13 Mar 2010 18:50:47 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:121908 Archived-At: > From: Leo > Date: Sat, 13 Mar 2010 16:03:14 +0000 > > Another oddity to this is if I change the process coding system > interactively by C-x RET p and give 'utf-8 for both values, the > completion will work because the coding is now: > > (utf-8 . utf-8-unix) > > but doing it in elisp as this: > > (add-hook 'gud-mode-hook > (lambda () > (set-buffer-process-coding-system 'utf-8 'utf-8))) > > fails. I think that's not an oddity, but expected behavior: you cannot call set-buffer-process-coding-system in a mode hook, because that's not the right moment for setting how process I/O will be decoded.