all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Dan Knapp" <dankna@gmail.com>
To: bug-gnu-emacs@gnu.org
Subject: Apple event opens file at wrong line; patch included
Date: Fri, 11 Apr 2008 06:59:57 -0400	[thread overview]
Message-ID: <5961bfde0804110359r4af14219oe7a1e7c2e01ffdf8@mail.gmail.com> (raw)
In-Reply-To: <9895FFC8-C5BD-4E23-B6B4-B21C67A00653@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3409 bytes --]

(This is a re-send; the original was, perhaps, caught by the spam trap
because I wasn't subscribed to the list?)

Go to XCode and configure it to use Emacs.app as an external editor.
 Compile a file which produces errors or warnings.  Double-click one of them
in the build window.  Emacs.app comes to the foreground and activates a
buffer with that file, going to the line immediately preceding the one it
should be on.

I took the liberty of fixing this on my copy, and am hoping the fix can be
rolled into upstream:

diff  /tmp/mac-win.old.el /tmp/mac-win.el
1742c1742
<                  (goto-line line)
---
>                  (goto-line (+ 1 line))
Diff finished.  Thu Apr 10 14:48:21 2008


This should be applied against the file
/Applications/Emacs.app/Contents/Resources/lisp/term/mac-win.el

Thanks in advance.



In GNU Emacs 22.1.50.1 (i386-apple-darwin8.10.1, Carbon Version 1.6.0)
of 2007-11-06 on seijiz.local
Windowing system distributor `Apple Inc.', version 10.5.2
configured using `configure
 '--prefix=/Applications/Emacs.app/Contents/Resources' '--with-carbon'
'--without-x' '--libexecdir=/Volumes/Emacs/Emacs.app/Contents/MacOS/libexec'
'CFLAGS=-arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk
-DUSE_ATSUI -DUSE_MAC_TSM''

Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: nil
locale-coding-system: iso-8859-1
default-enable-multibyte-characters: t

Major mode: Diff

Minor modes in effect:
encoded-kbd-mode: t
iswitchb-mode: t
desktop-save-mode: t
mac-print-mode: t
tooltip-mode: t
mouse-wheel-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
unify-8859-on-encoding-mode: t
utf-translate-cjk-mode: t
auto-compression-mode: t
line-number-mode: t

Recent input:
C-n C-p <tab> <return> C-x 1 C-n C-n C-n M-f M-f M-f
M-f M-b M-b C-a M-< C-s l i n e C-s C-s C-s C-s C-s
C-r C-r C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s
C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-a C-p C-l
C-p C-l C-p C-l C-n C-n C-n C-e M-b ( + SPC 1 SPC C-e
) C-n C-n C-n C-n C-n C-n C-n C-n C-e C-M-b C-M-f C-x
C-e M-x c o m p i l e - f i <tab> <backspace> <backspace>
e <tab> <backspace> <tab> <tab> <M-backspace> b y t
e - c o n m p <backspace> <backspace> <backspace> m
p <tab> <tab> <tab> <return> m a c <tab> w <tab> <return>
y C-x b <return> C-M-b C-n C-n C-l C-x 1 C-p C-x C-w
/ t m p / m a c - w i n . e l <return> C-x C-f / t
m p / C-g C-x C-f / t m p / m a c - w i n <tab> <return>
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n
C-n C-n C-n M-f M-f C-k SPC l i n e ) C-_ C-_ C-k SPC
i n e ) <backspace> <backspace> <backspace> <backspace>
l i n e ) C-x C-w m a c - w i n . o l d . e l <return>
C-x b e s h <return> p u s h d SPC / t m p <return>
l s <return> d i f SPC m a c <backspace> <backspace>
<backspace> <backspace> f SPC m a c - w i n <tab> SPC
m a c <tab> <return> M-x r e p o <tab> r t - e m <tab>
<return>

Recent messages:
Saving file /tmp/mac-win.el...
Wrote /tmp/mac-win.el
Quit
Undo! [2 times]
Saving file /tmp/mac-win.old.el...
Wrote /tmp/mac-win.old.el
Loading diff...done
Loading diff-mode...done
Making completion list...
Loading emacsbug...done



-- 
Dan Knapp
"An infallible method of conciliating a tiger is to allow oneself to be
devoured." (Konrad Adenauer)

[-- Attachment #2: Type: text/html, Size: 4336 bytes --]

       reply	other threads:[~2008-04-11 10:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <9895FFC8-C5BD-4E23-B6B4-B21C67A00653@gmail.com>
2008-04-11 10:59 ` Dan Knapp [this message]
2008-04-12  2:18   ` Apple event opens file at wrong line; patch included YAMAMOTO Mitsuharu

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=5961bfde0804110359r4af14219oe7a1e7c2e01ffdf8@mail.gmail.com \
    --to=dankna@gmail.com \
    --cc=bug-gnu-emacs@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 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.