unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* get to the first file like in real dired
@ 2012-12-31 23:17 jidanni
  2013-01-01  9:20 ` Arnaldo Mandel
  0 siblings, 1 reply; 3+ messages in thread
From: jidanni @ 2012-12-31 23:17 UTC (permalink / raw)
  To: help-gnu-emacs

This just gets me to the top of the buffer.
(defadvice dired-revert (after beginning-of-buffer activate)
  "Move to beginning of buffer (instead of keeping point on the current file)."
  (goto-char (point-min)))
How do I make it get me to the first line like in real dired?
dired.el is too complicated to read for me.

Too bad the emacs maintainers don't allow an option so I wouldn't need
this workaround.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: get to the first file like in real dired
  2012-12-31 23:17 jidanni
@ 2013-01-01  9:20 ` Arnaldo Mandel
  0 siblings, 0 replies; 3+ messages in thread
From: Arnaldo Mandel @ 2013-01-01  9:20 UTC (permalink / raw)
  To: help-gnu-emacs

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

Just add the sexp

(dired-next-line 3)      ;  adjust the "3" to what works for you

after the goto-char sexp.

On Mon, Dec 31, 2012 at 9:17 PM, <jidanni@jidanni.org> wrote:

> This just gets me to the top of the buffer.
> (defadvice dired-revert (after beginning-of-buffer activate)
>   "Move to beginning of buffer (instead of keeping point on the current
> file)."
>   (goto-char (point-min)))
> How do I make it get me to the first line like in real dired?
> dired.el is too complicated to read for me.
>
> Too bad the emacs maintainers don't allow an option so I wouldn't need
> this workaround.
>
>

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: get to the first file like in real dired
       [not found] <CABHLsmfjg3oCiGsASLa-Bm35MHrCkJx6aAWtbExY3h2dZi40-g@mail.gmail.com>
@ 2013-01-01  9:52 ` jidanni
  0 siblings, 0 replies; 3+ messages in thread
From: jidanni @ 2013-01-01  9:52 UTC (permalink / raw)
  To: help-gnu-emacs

>>>>> "AM" == Arnaldo Mandel <amandel@....com> writes:
AM> (dired-next-line 3)
AM> after the goto-char sexp.
Thanks!



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-01-01  9:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CABHLsmfjg3oCiGsASLa-Bm35MHrCkJx6aAWtbExY3h2dZi40-g@mail.gmail.com>
2013-01-01  9:52 ` get to the first file like in real dired jidanni
2012-12-31 23:17 jidanni
2013-01-01  9:20 ` Arnaldo Mandel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).