unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
To: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
Cc: drew.adams@oracle.com, emacs-devel@gnu.org
Subject: Re: Tutorial incorrectly thinks emacs -Q uses customizations. Alarmist and confusing tutorial intro.
Date: Mon, 29 Jan 2007 00:38:30 -0500	[thread overview]
Message-ID: <E1HBPDq-0007xd-Pu@fencepost.gnu.org> (raw)
In-Reply-To: <45BBFE5A.20501@gmail.com> (lennart.borgman@gmail.com)

I've made a few minor fixes to a few of these details.
What do you think of them?


*** tutorial.el	28 Jan 2007 02:11:20 -0500	1.13
--- tutorial.el	28 Jan 2007 22:05:09 -0500	
***************
*** 334,343 ****
  				tutorial--default-keys)))))
          (when changed-keys
            (insert
!            "The following key bindings used in the tutorial had been changed
! from the Emacs default in the " (buffer-name tutorial-buffer) " buffer:\n\n" )
!           (let ((frm "   %-9s %-27s %-11s %s\n"))
!             (insert (format frm "Key" "Standard Binding" "Is Now On" "Remark")))
            (dolist (tk changed-keys)
              (let* ((def-fun     (nth 1 tk))
                     (key         (nth 0 tk))
--- 334,344 ----
  				tutorial--default-keys)))))
          (when changed-keys
            (insert
!            "The following key bindings used in the tutorial have been changed
! from the Emacs default:\n\n" )
!           (let ((frm "   %-14s %-27s %-16s\n"))
!             (insert (format frm
! 			    "Standard Key" "Command" "In Your Emacs")))
            (dolist (tk changed-keys)
              (let* ((def-fun     (nth 1 tk))
                     (key         (nth 0 tk))
***************
*** 354,378 ****
                    (put-text-property 0 (length key-txt)
  				     'face 'tutorial-warning-face key-txt))
                  (insert "   " key-txt " ")
!                 (setq tot-len (length key-txt))
!                 (when (> 9 tot-len)
!                   (insert (make-string (- 9 tot-len) ?\s))
!                   (setq tot-len 9))
                  ;; Insert a link describing the old binding:
                  (insert-button def-fun-txt
                                 'value def-fun
                                 'action
!                                (lambda(button) (interactive)
                                   (describe-function
                                    (button-get button 'value)))
                                 'follow-link t)
!                 (setq tot-len (+ tot-len (length def-fun-txt)))
!                 (when (> 36 tot-len)
!                   (insert (make-string (- 36 tot-len) ?\s)))
                  (when (listp where)
                    (setq where "list"))
                  ;; Tell where the old binding is now:
!                 (insert (format " %-11s "
                                  (if (string= "" where)
                                      (format "M-x %s" def-fun-txt)
                                    where)))
--- 355,374 ----
                    (put-text-property 0 (length key-txt)
  				     'face 'tutorial-warning-face key-txt))
                  (insert "   " key-txt " ")
! 		(indent-to 18)
                  ;; Insert a link describing the old binding:
                  (insert-button def-fun-txt
                                 'value def-fun
                                 'action
!                                (lambda (button) (interactive)
                                   (describe-function
                                    (button-get button 'value)))
                                 'follow-link t)
! 		(indent-to 45)
                  (when (listp where)
                    (setq where "list"))
                  ;; Tell where the old binding is now:
!                 (insert (format " %-16s "
                                  (if (string= "" where)
                                      (format "M-x %s" def-fun-txt)
                                    where)))
***************
*** 381,387 ****
                  ;; cua-mode replacements:
                  (insert-button (car remark)
                                 'action
!                                (lambda(b) (interactive)
                                   (let ((value (button-get b 'value)))
                                     (tutorial--describe-nonstandard-key value)))
                                 'value (cdr remark)
--- 377,383 ----
                  ;; cua-mode replacements:
                  (insert-button (car remark)
                                 'action
!                                (lambda (b) (interactive)
                                   (let ((value (button-get b 'value)))
                                     (tutorial--describe-nonstandard-key value)))
                                 'value (cdr remark)

  parent reply	other threads:[~2007-01-29  5:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-27 19:23 Tutorial incorrectly thinks emacs -Q uses customizations. Alarmist and confusing tutorial intro Drew Adams
2007-01-28  1:37 ` Lennart Borgman (gmail)
2007-01-28  2:26   ` Drew Adams
2007-01-28  3:43   ` Chris Moore
2007-01-28 11:34     ` Lennart Borgman (gmail)
2007-01-29  5:38   ` Richard Stallman [this message]
2007-01-28  7:41 ` Richard Stallman
2007-01-28 11:35 ` Johan Bockgård

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=E1HBPDq-0007xd-Pu@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=lennart.borgman@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).