all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: tpeplt <tpeplt@gmail.com>
Cc: Emanuel Berg <incal@dataswamp.org>,
	"help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: RE: [External] : Re: Commands to insert a heading and a new page
Date: Sun, 31 Mar 2024 20:32:03 +0000	[thread overview]
Message-ID: <SJ0PR10MB5488DF9ED406F8CB1A27163FF3382@SJ0PR10MB5488.namprd10.prod.outlook.com> (raw)
In-Reply-To: <87msqe9rdd.fsf@gmail.com>

> >> > (newline)
> >> > (insert ?\f
> >> > (newline))
> >
> > `C-q C-j C-l C-j` does the same thing.
> >
> > Get to know `C-q'.
> > Get to know the ASCII control chars.
> 
> Yes.  Your instructions can be a little confusing to new users.  Taken
> literally, they won’t work.  New users should read that the key
> sequences are:
> 
> C-j
> C-q C-l
> C-j

Actually, that's not right.  But neither
was what I wrote. ;-(  This is correct:

C-q C-j
C-q C-l
C-q C-j

C-j is often bound, even by default in
vanilla Emacs (`emacs -Q'), to commands
that do other things, besides insert a
newline char.

E.g.: In `emacs-lisp-mode' it's bound
to `electric-newline-and-maybe-indent'.
In *scratch* it's bound to
`eval-print-last-sexp'.

If you want to insert a newline char
then use `C-q C-l'.  Don't use C-l.

> Thank you for writing the ‘pp-c-l’ library (pp-c-l.el).

De rien.

> 1. Is this library provided as a package?  If so, can you provide the
> name of the archive?  It is not available from either...

It's a Lisp file, `pp-c-l.el'.  The doc page
I mentioned points to the file, but here's
the direct URL:

https://www.emacswiki.org/emacs/download/pp-c-l.el

Just (require 'pp-c-l), after putting the file in
your `load-path`.  Nothing else is needed.

> 2. I added "-*- lexical-binding: t; -*-" to
> the first line

No reason to do that, here.

> and compiled the file using Emacs 29.3.  The compiler
> reported the following:

You can ignore the byte-compiler warnings.
You see them because the library's compatible
with older Emacs versions.

> >> ;; +---------------------+
> >> ;; | This is not a bluff |
> >> ;; +---------------------+
> >
> > See also library boxquote.el:
> >
> > https://github.com/davep/boxquote.el
>
> This library, ‘boxquote’ is available as package in the ‘melpa-stable’
> archive, listed above, so it can be easily installed, updated, or
> un-installed.

It can also be easily...just by downloading it
(a single Lisp file) FROM the GIT repo whose
URL I gave TO a directory in your `load-path'.

Here's the direct URL to the file:

https://github.com/davep/boxquote.el/raw/main/boxquote.el

  reply	other threads:[~2024-03-31 20:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-26  9:16 Commands to insert a heading and a new page Heime
2024-03-27 22:48 ` tpeplt
2024-03-28  3:12   ` Emanuel Berg
2024-03-31 15:49     ` [External] : " Drew Adams
2024-03-31 18:40       ` tpeplt
2024-03-31 20:32         ` Drew Adams [this message]
2024-04-01  2:07           ` Emanuel Berg
2024-04-01 16:53             ` Drew Adams
2024-04-01  1:20       ` Emanuel Berg
2024-03-28  9:42   ` Heime

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=SJ0PR10MB5488DF9ED406F8CB1A27163FF3382@SJ0PR10MB5488.namprd10.prod.outlook.com \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=incal@dataswamp.org \
    --cc=tpeplt@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 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.