unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
Cc: Hrvoje Niksic <hniksic@xemacs.org>, emacs-devel@gnu.org
Subject: Re: Saving minibuffer history
Date: Sun, 16 Oct 2005 09:28:27 +0200	[thread overview]
Message-ID: <85zmp96hus.fsf@lola.goethe.zz> (raw)
In-Reply-To: <DNEMKBNJBGPAOPIJOOICCEHBCNAA.drew.adams@oracle.com> (Drew Adams's message of "Sat, 15 Oct 2005 16:29:17 -0700")

"Drew Adams" <drew.adams@oracle.com> writes:

>     An improved version is now available at
>     <http://fly.srk.fer.hr/~hniksic/emacs/savehist.el>.
>
> FYI - I had some problems trying to use this library with Emacs 20, but if a
> few minor changes are made, it works well.
>
> Here are the problems I ran into:
>
> 1. (defcustom savehist-modes #o600
> The reader choked on this. I changed it to this:
> (defcustom savehist-modes 384   ; Octal: #o600
>
> 2. (defvar savehist-coding-system (if (string-match "XEmacs" emacs-version)
> 			                     'iso-2022-8
> 			                   'utf-8)
>
> I had problems with the utf-8 coding system. I got this error
> message when I tried to save any file, after loading the library:
> "Removing old name: no such file or directory, <path>/#tmp#0. I
> could not even exit Emacs, getting the same message. When I tried to
> exit without saving anything, I got this error message: Invalid
> coding system: utf-8.
>
> I changed the code to this: (defvar savehist-coding-system nil
>
> With these simple changes, the library seems to work fine in Emacs
> 20.  Thanks for it. 

Uh, Emacs 20?  Why would one need to be compatible with that?

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

  reply	other threads:[~2005-10-16  7:28 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-14 13:40 Saving minibuffer history Hrvoje Niksic
2005-10-14 23:29 ` Hrvoje Niksic
2005-10-14 23:44   ` Drew Adams
2005-10-15 16:13 ` Richard M. Stallman
2005-10-15 22:28   ` Hrvoje Niksic
2005-10-15 23:29     ` Drew Adams
2005-10-16  7:28       ` David Kastrup [this message]
2005-10-16 15:49         ` Drew Adams
2005-10-16 16:16           ` Stefan Monnier
2005-10-16 17:58             ` Drew Adams
2005-10-16 21:52               ` David Kastrup
2005-10-17  1:10               ` Stefan Monnier
2005-10-17  8:25                 ` Hrvoje Niksic
2005-10-16 12:32       ` Hrvoje Niksic
2005-10-16 13:02       ` Stefan Monnier
2005-10-18 14:41         ` Hrvoje Niksic
2005-10-24 16:55           ` Drew Adams
2005-10-24 17:02             ` Drew Adams
2005-10-24 17:48               ` Stefan Monnier
2005-10-16 15:39     ` Stefan Monnier
2005-10-18 14:27       ` Hrvoje Niksic
2005-10-18 16:12         ` Stefan Monnier
2005-10-18 23:34           ` Hrvoje Niksic
2005-10-19 18:51             ` Stefan Monnier
2005-10-20  9:09               ` Hrvoje Niksic
2005-10-20  9:12                 ` Hrvoje Niksic
2005-10-20 16:25                   ` Stefan Monnier
2005-10-20 21:04                     ` Hrvoje Niksic
2005-10-24 16:02       ` Hrvoje Niksic
2005-10-24 17:16         ` Stefan Monnier
2005-10-25  9:04           ` Hrvoje Niksic
2005-10-26 16:46             ` Richard M. Stallman
2005-10-24 22:24         ` Stefan Monnier
2005-10-25  4:37           ` Stefan Monnier
2005-10-25  9:46             ` Hrvoje Niksic
2005-10-25 14:51               ` Stefan Monnier
2005-10-25 21:04             ` Hrvoje Niksic
2005-11-01  6:12               ` Stefan Monnier
2005-10-25  9:20           ` Hrvoje Niksic
2005-10-25 12:34             ` Miles Bader
2005-10-25 13:58               ` Hrvoje Niksic
2005-10-25 14:00                 ` Miles Bader
2005-10-25 14:39             ` Stefan Monnier
2005-10-25 19:07               ` Hrvoje Niksic
2005-10-25 15:58         ` Richard M. Stallman
2005-10-16 17:36     ` Richard M. Stallman
2005-10-16 20:18       ` Hrvoje Niksic
2005-10-16 21:55       ` 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

  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=85zmp96hus.fsf@lola.goethe.zz \
    --to=dak@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=hniksic@xemacs.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 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).