all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Harald Hanche-Olsen <hanche@math.ntnu.no>
To: john_owens@yahoo.com
Cc: emacs-devel@gnu.org
Subject: Re: issues migrating to cocoa emacs (23.2) from carbon emacs (22)
Date: Fri, 11 Jun 2010 09:49:07 -0400 (EDT)	[thread overview]
Message-ID: <20100611.094907.430336416.hanche@math.ntnu.no> (raw)
In-Reply-To: <loom.20100611T063610-865@post.gmane.org>

+ John Owens <john_owens@yahoo.com>:

> 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



  parent reply	other threads:[~2010-06-11 13:49 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-10 23:30 issues migrating to cocoa emacs (23.2) from carbon emacs (22) John Owens
2010-06-11  3:06 ` David Reitter
2010-06-11  4:37   ` John Owens
2010-06-11 11:09     ` David Reitter
2010-06-11 13:49     ` Harald Hanche-Olsen [this message]
2010-06-11 13:58       ` issues migrating to cocoa emacs (23.2) from carbon emacs (22 David Reitter
2010-06-11 12:04 ` issues migrating to cocoa emacs (23.2) from carbon emacs (22) Stephen Eilert
2010-06-11 16:29   ` John Owens
2010-06-11 23:38     ` YAMAMOTO Mitsuharu
2010-06-12  0:22       ` John Owens

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100611.094907.430336416.hanche@math.ntnu.no \
    --to=hanche@math.ntnu.no \
    --cc=emacs-devel@gnu.org \
    --cc=john_owens@yahoo.com \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.