From: Juri Linkov <juri@jurta.org>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: TUTORIAL.gz
Date: Mon, 17 Oct 2005 11:34:03 +0300 [thread overview]
Message-ID: <877jcch4hg.fsf@jurta.org> (raw)
In-Reply-To: <7DD3FE7A-06BE-4D1C-9B2F-0B3B976FF11D@gmail.com> (David Reitter's message of "Sun, 16 Oct 2005 15:52:57 +0100")
- (insert-file-contents (expand-file-name filename data-directory))
(hack-local-variables)
(goto-char (point-min))
(search-forward "\n<<")
--- 52,73 ----
(if (get-language-info current-language-environment 'tutorial)
current-language-environment
"English")))
! file filename)
(setq filename (get-language-info lang 'tutorial))
(setq file (expand-file-name (concat "~/" filename)))
(delete-other-windows)
(if (get-file-buffer file)
(switch-to-buffer (get-file-buffer file))
! (setq file (expand-file-name filename data-directory))
! (unless (file-exists-p file)
! (if (file-exists-p (concat file ".gz"))
! (setq file (concat file ".gz"))
! (error "%s does not exist" file)))
! (let ((auto-compression-mode t))
! (find-file file))
=========
Note that insert-file-contents on a special buffer was used to protect
novices for accidently overwriting the original TUTORIAL file while
trying different editing commands. So replacing it with find-file is
not a good idea. But you can still leave insert-file-contents with
let-binding ((auto-compression-mode t)) around it, because compression
mode can handle compressed files on low-level file functions (including
insert-file-contents).
--
Juri Linkov
http://www.jurta.org/emacs/
next prev parent reply other threads:[~2005-10-17 8:34 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-11 23:39 TUTORIAL.gz David Reitter
2005-10-13 20:11 ` TUTORIAL.gz Richard M. Stallman
2005-10-14 9:16 ` TUTORIAL.gz Werner LEMBERG
2005-10-14 10:07 ` TUTORIAL.gz David Kastrup
2005-10-14 10:51 ` TUTORIAL.gz Werner LEMBERG
2005-10-15 16:13 ` TUTORIAL.gz Richard M. Stallman
2005-10-16 14:52 ` TUTORIAL.gz David Reitter
2005-10-17 8:34 ` Juri Linkov [this message]
2005-10-17 14:46 ` TUTORIAL.gz Stefan Monnier
2005-10-17 16:03 ` TUTORIAL.gz David Reitter
2005-10-17 16:20 ` TUTORIAL.gz David Kastrup
2005-10-17 17:48 ` TUTORIAL.gz Stefan Monnier
2005-10-17 18:47 ` TUTORIAL.gz Lennart Borgman
2005-10-17 19:08 ` TUTORIAL.gz Stefan Monnier
2005-10-17 19:33 ` TUTORIAL.gz Lennart Borgman
2005-10-18 8:04 ` TUTORIAL.gz Juri Linkov
2005-10-17 14:59 ` TUTORIAL.gz Eli Zaretskii
2005-10-17 15:22 ` TUTORIAL.gz Romain Francoise
-- strict thread matches above, loose matches on Subject: below --
2005-10-14 11:25 TUTORIAL.gz LENNART BORGMAN
2005-10-15 12:43 ` TUTORIAL.gz Eli Zaretskii
2005-10-15 19:19 ` TUTORIAL.gz David Kastrup
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=877jcch4hg.fsf@jurta.org \
--to=juri@jurta.org \
--cc=emacs-devel@gnu.org \
--cc=rms@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.