Hi David,
my mastery of emacs lisp is still at a basic level an my understanding
of cedet internals is even worse. I'll count on your understanding of
the issue and just use what i get :-). If i'm not the only one with this
issue i hope a solution gets implemented for all of us.
Thanks again,
Kai
David Engster wrote:
> Kai Tetzlaff <kai.tetzlaff@...> writes:
>> i've applied your patch. Will let you know if i get further prompts.
>
> While this patch should not be critical for Semantic's purposes, it is
> not really nice to simply write everything as raw-text. Since
> eieio-base is a general function for writing objects to disk, it would
> probably be better to use find-coding-systems-region and just choose the
> first one by default, so that the user is not prompted:
>
> --- a/eieio/eieio-base.el
> +++ b/eieio/eieio-base.el
> @@ -275,7 +275,11 @@ instance."
> (eieio-persistent-path-relative this file)
> (file-name-nondirectory cfn)))
> (object-write this (oref this file-header-line)))
> - (let ((backup-inhibited (not (oref this do-backups))))
> + (let ((backup-inhibited (not (oref this do-backups)))
> + (cs (car (find-coding-systems-region
> + (point-min) (point-max)))))
> + (unless (eq cs 'undecided)
> + (setq buffer-file-coding-system cs))
> ;; Old way - write file. Leaves message behind.
> ;;(write-file cfn nil)
>
> Regards,
> David
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
|