[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Going to line n, column m
From: |
Nikolaj Schumacher |
Subject: |
Re: Going to line n, column m |
Date: |
Wed, 08 Oct 2008 16:22:12 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.3 (darwin) |
pjb@informatimago.com (Pascal J. Bourguignon) wrote:
> It's not a bug, it's a feature of move-to-column. Hence my
> implementation of goto-xy.
First of all, I think it's unlikely that the OP wanted to move to a line
and column that don't exist. Your comment that it "doesn't work" is
misleading at best.
But even if he did, move-to-column is capable of doing so. There's no
need for an elaborate (and error-prone) re-implementation.
(defun goto-xy (column line)
(interactive "nColumn: \nnLine: ")
(goto-line line)
(newline (- line (line-number-at-pos)))
(move-to-column column t))
regards,
Nikolaj Schumacher
- Going to line n, column m, Mauricio, 2008/10/07
- Re: Going to line n, column m, Nikolaj Schumacher, 2008/10/07
- Message not available
- Re: Going to line n, column m, Pascal J. Bourguignon, 2008/10/07
- Re: Going to line n, column m, Joost Kremers, 2008/10/07
- Message not available
- Re: Going to line n, column m, Pascal J. Bourguignon, 2008/10/07
- Re: Going to line n, column m, Lennart Borgman (gmail), 2008/10/07
- Message not available
- Re: Going to line n, column m, Chetan, 2008/10/07
- Re: Going to line n, column m,
Nikolaj Schumacher <=
- Message not available
- Re: Going to line n, column m, Pascal J. Bourguignon, 2008/10/08
- Re: Going to line n, column m, Nikolaj Schumacher, 2008/10/08
- Re: Going to line n, column m, Mauricio, 2008/10/08
- Message not available
- Re: Going to line n, column m, Pascal J. Bourguignon, 2008/10/08
- Re: Going to line n, column m, Nikolaj Schumacher, 2008/10/08
- Re: Going to line n, column m, Andreas Politz, 2008/10/08
- Message not available
- Re: Going to line n, column m, Pascal J. Bourguignon, 2008/10/08
- Message not available
- Re: Going to line n, column m, stan, 2008/10/08
- Re: Going to line n, column m, Pascal J. Bourguignon, 2008/10/09
- Re: Going to line n, column m, stan, 2008/10/09