emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GDB on Mac is Broken


From: Eli Zaretskii
Subject: Re: GDB on Mac is Broken
Date: Sat, 13 Mar 2010 18:50:54 +0200

> From: Leo <address@hidden>
> 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]