unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Jen-Chieh Shen <jcs090218@gmail.com>
Cc: 43165@debbugs.gnu.org
Subject: bug#43165: [PATCH] Add load this file lisp function.
Date: Wed, 02 Sep 2020 11:43:25 +0200	[thread overview]
Message-ID: <87zh68tsxu.fsf@gnus.org> (raw)
In-Reply-To: <CAMiGhTO0n8mKk6Nu4w06yWx=J6mMgbgdkKCj0BUSk22ah1CvRQ@mail.gmail.com> (Jen-Chieh Shen's message of "Wed, 2 Sep 2020 11:16:40 +0800")

Jen-Chieh Shen <jcs090218@gmail.com> writes:

> I think `load-this-file` could be kind of handy.Is related to `kill-buffer` and
> `kill-this-buffer`, etc.
>
> What do you guys think?

[...]

> +(defun load-this-file ()
> +  "Load current Lisp file."
> +  (interactive)
> +  (load-file (buffer-file-name)))

This doesn't really seem all that useful -- `M-x load-file RET M-n RET'
gives you the same result.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2020-09-02  9:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-02  3:16 bug#43165: [PATCH] Add load this file lisp function Jen-Chieh Shen
2020-09-02  9:43 ` Lars Ingebrigtsen [this message]
     [not found]   ` <CAMiGhTPP=1ez0x=v19RKHEVPkCfU_AEbN=mDeamXfXey99R3Zw@mail.gmail.com>
2020-09-02 10:23     ` Lars Ingebrigtsen
2020-09-02 15:51       ` Drew Adams
2020-09-03 20:28         ` Stefan Kangas
2020-09-04  1:52           ` Lars Ingebrigtsen
2020-09-04  2:13             ` Drew Adams

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87zh68tsxu.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=43165@debbugs.gnu.org \
    --cc=jcs090218@gmail.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 public inbox

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

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).