all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Lennart Borgman" <lennart.borgman.073@student.lu.se>
Cc: emacs-devel@gnu.org, Drew Adams <drew.adams@oracle.com>,
	Miles Bader <miles@gnu.org>
Subject: Re: a simple convenience function
Date: Mon, 15 Nov 2004 08:28:12 +0100	[thread overview]
Message-ID: <002501c4cae5$5bec2260$0200a8c0@sedrcw11488> (raw)
In-Reply-To: 200411150349.57864.pogonyshev@gmx.net

Yes, my intention was to not change the default behaviour for default usage
so to say, but I realize now that a little bit more is needed to achieve
that.

- Lennart


----- Original Message ----- 
From: "Paul Pogonyshev" <pogonyshev@gmx.net>
To: "Lennart Borgman" <lennart.borgman.073@student.lu.se>
Cc: "Miles Bader" <miles@gnu.org>; <emacs-devel@gnu.org>
Sent: Monday, November 15, 2004 2:49 AM
Subject: Re: a simple convenience function



> Though I found the behaviour suggested by Paul much more mnemonic when
> bound to the Home key. It is also found in some other editors.
>
> - Lennart
>
> PS: Maybe I should write it as
>
> (defun home-or-back-to-indentation()
>   (interactive)
>   (if (bolp) (back-to-indentation) (beginning-of-line)))
>
> (define-key global-map [home] 'home-or-back-to-indentation)

Perhaps, but this way you get it the way round: it will first jump
to the beginning of line and then to the beginning of the text.

Paul

  parent reply	other threads:[~2004-11-15  7:28 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-14 21:36 a simple convenience function Paul Pogonyshev
2004-11-14 23:34 ` Miles Bader
2004-11-15  0:22   ` Lennart Borgman
2004-11-15  1:49     ` Paul Pogonyshev
2004-11-15  5:01       ` Dhruva Krishnamurthy
2004-11-15  7:28       ` Lennart Borgman [this message]
2004-11-15  1:50   ` Paul Pogonyshev
2004-11-15  6:45 ` Thien-Thi Nguyen
2004-11-15  9:29 ` Kai Grossjohann
2004-11-15 23:14   ` Alex Schroeder
2004-11-15 23:27     ` Lennart Borgman
2004-11-16 17:11     ` Kai Grossjohann
2004-11-16 17:14     ` Kai Grossjohann
2004-11-16 17:20     ` Kai Grossjohann

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='002501c4cae5$5bec2260$0200a8c0@sedrcw11488' \
    --to=lennart.borgman.073@student.lu.se \
    --cc=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=miles@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.