emacs-devel
[Top][All Lists]
Advanced

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

Re: issues migrating to cocoa emacs (23.2) from carbon emacs (22)


From: Harald Hanche-Olsen
Subject: Re: issues migrating to cocoa emacs (23.2) from carbon emacs (22)
Date: Fri, 11 Jun 2010 09:49:07 -0400 (EDT)

+ John Owens <address@hidden>:

> Bad news: Still opens foo.bar in a new window rather than in the
> same window (as Carbon Emacs did). Any idea how to get the old behavior?

FWIW, the work is done by function ns-find-file, whose definition is
found in ns-win.el. You might have to override that function to get
what you want.

I found this out by typing C-h l after open -a emacs ..., which
revealed the event name <ns-open-file-line>. Then it was just a
question of looking up the event:

(lookup-key global-map [ns-open-file-line])
=> ns-open-file-select-line

and then looking up the function definition of
ns-open-file-select-line.

-- 
* Harald Hanche-Olsen     <URL:http://www.math.ntnu.no/~hanche/>
- It is undesirable to believe a proposition
  when there is no ground whatsoever for supposing it is true.
  -- Bertrand Russell



reply via email to

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