unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* codepage-setup NOERROR
@ 2007-10-29 23:26 jidanni
  2007-10-30 22:59 ` Jason Rumney
  0 siblings, 1 reply; 2+ messages in thread
From: jidanni @ 2007-10-29 23:26 UTC (permalink / raw)
  To: bug-gnu-emacs

Some systems don't have all the codepages, so for one's .emacs file to
be portable, codepage-setup needs to have a NOERROR parameter, just
like (require).

Debugger entered--Lisp error: (error "Unsupported codepage cp874")
  signal(error ("Unsupported codepage cp874"))
  error("Unsupported codepage %s" "cp874")
  cp-charset-for-codepage("cp874")
  codepage-setup(874)




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: codepage-setup NOERROR
  2007-10-29 23:26 codepage-setup NOERROR jidanni
@ 2007-10-30 22:59 ` Jason Rumney
  0 siblings, 0 replies; 2+ messages in thread
From: Jason Rumney @ 2007-10-30 22:59 UTC (permalink / raw)
  To: jidanni; +Cc: bug-gnu-emacs

jidanni@jidanni.org wrote:
> Some systems don't have all the codepages, so for one's .emacs file to
> be portable, codepage-setup needs to have a NOERROR parameter, just
> like (require).
>   
We can't add a NOERROR parameter to everything just because someone
might want to pass invalid parameters to it from their .emacs file.

Use condition-case if you need to share a .emacs between different
versions of Emacs that don't support all the codepages you want to use.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-10-30 22:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-29 23:26 codepage-setup NOERROR jidanni
2007-10-30 22:59 ` Jason Rumney

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).