"Anoop Johnson" <[EMAIL PROTECTED]> writes:

> Can any one tell me how to specify to save the backup files in a
> specific directory in Emacs 21.* ?

Check the Emacs info node named "Backup Names".

This is one way to do it:

You want something like the following in your ~/.emacs:
(setq backup-directory-alist '("." . "/home/anoop/backup")) 
or more generally:
(setq backup-directory-alist `("." . ,(expand-file-name "~/backup")))

I know this works...

> In GNU Emacs 20, we did it by adding a line like
>
> (defun make-backup-file-name (file)
>   (concat "/home/anoop/backup/" (file-name-nondirectory file)))

>From what I understand, the return value's file-name-nondirectory part
is only considered...  But since you say it worked with Emacs20, send
in a bug report...  or if you have the time, compare the files.el
source file in 20.7 and 21.1 :)

-- 
Life sans X sounds just as bad as life sans SeX.

_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to