Gnus development mailing list
 help / color / mirror / Atom feed
* [gnus 5.2.7] custom.el
@ 1996-06-05  8:37 守岡 知彦 / MORIOKA Tomohiko
  1996-06-05  9:17 ` Per Abrahamsen
  0 siblings, 1 reply; 4+ messages in thread
From: 守岡 知彦 / MORIOKA Tomohiko @ 1996-06-05  8:37 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 239 bytes --]

  Default setting of dgnushack.el occurs errors because variable
`custom-file' indicates "/dev/null".

  In my environment, /dev/null is readable so check code of custom.el
does not work. So I write following code. Do you think about it?


[-- Attachment #2: custom.el.diff --]
[-- Type: application/octet-stream, Size: 592 bytes --]

*** custom.el~	Wed Jun  5 03:10:19 1996
--- custom.el	Wed Jun  5 17:24:29 1996
***************
*** 2461,2467 ****
  		     (not (string-match "XEmacs" emacs-version)))
  (custom-category-put 'custom-hidden-properties intangible t)
  
! (if (file-readable-p custom-file)
      (load-file custom-file))
  
  (provide 'custom)
--- 2461,2468 ----
  		     (not (string-match "XEmacs" emacs-version)))
  (custom-category-put 'custom-hidden-properties intangible t)
  
! (if (and (file-readable-p custom-file)
! 	 (file-regular-p custom-file))
      (load-file custom-file))
  
  (provide 'custom)

[-- Attachment #3: Type: text/plain, Size: 335 bytes --]


  Thanks,
----------------------------------------------------------------------
MORIOKA Tomohiko <morioka@jaist.ac.jp>
        Japan advanced Institute of Science and Technology, Hokuriku
                Asahi-dai, Tatsu-no-kuchi chô, Nomi, Ishikawa, Japan
----------------------------------------- Frisch, Frei, Freöhlich! ---

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

* Re: [gnus 5.2.7] custom.el
  1996-06-05  8:37 [gnus 5.2.7] custom.el 守岡 知彦 / MORIOKA Tomohiko
@ 1996-06-05  9:17 ` Per Abrahamsen
  1996-06-05 10:23   ` 守岡 知彦 / MORIOKA Tomohiko
  1996-06-05 10:52   ` Lars Magne Ingebrigtsen
  0 siblings, 2 replies; 4+ messages in thread
From: Per Abrahamsen @ 1996-06-05  9:17 UTC (permalink / raw)



>>>>> MORIOKA Tomohiko writes:

>   In my environment, /dev/null is readable so check code of custom.el
> does not work. So I write following code. Do you think about it?

"/dev/null" is supposed to be readable, but empty.  Loading an empty
file is a no-op on Emacs.  Is it different with MULE?

If "/dev/null" causes problems, just use a bogus file name, like
"/DOES NOT EXIST!".


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

* Re: [gnus 5.2.7] custom.el
  1996-06-05  9:17 ` Per Abrahamsen
@ 1996-06-05 10:23   ` 守岡 知彦 / MORIOKA Tomohiko
  1996-06-05 10:52   ` Lars Magne Ingebrigtsen
  1 sibling, 0 replies; 4+ messages in thread
From: 守岡 知彦 / MORIOKA Tomohiko @ 1996-06-05 10:23 UTC (permalink / raw)


>>>>> In <rjennuwqwt.fsf@kleene.dina.kvl.dk>
>>>>>	Per Abrahamsen <abraham@dina.kvl.dk> wrote:

Per> >>>>> MORIOKA Tomohiko writes:

tomo>>   In my environment, /dev/null is readable so check code of
tomo>> custom.el does not work. So I write following code. Do you
tomo>> think about it?

Per> "/dev/null" is supposed to be readable, but empty.  Loading an
Per> empty file is a no-op on Emacs.  Is it different with MULE?

  In Mule 2.3 based on 19.30, 19.31 and XEmacs 20.0 with Mule, error
occurs.


Per> If "/dev/null" causes problems, just use a bogus file name, like
Per> "/DOES NOT EXIST!".

  It is good.


  Regards,
----------------------------------------------------------------------
MORIOKA Tomohiko <morioka@jaist.ac.jp>
        Japan advanced Institute of Science and Technology, Hokuriku
                Asahi-dai, Tatsu-no-kuchi chô, Nomi, Ishikawa, Japan
----------------------------------------- Frisch, Frei, Freöhlich! ---



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

* Re: [gnus 5.2.7] custom.el
  1996-06-05  9:17 ` Per Abrahamsen
  1996-06-05 10:23   ` 守岡 知彦 / MORIOKA Tomohiko
@ 1996-06-05 10:52   ` Lars Magne Ingebrigtsen
  1 sibling, 0 replies; 4+ messages in thread
From: Lars Magne Ingebrigtsen @ 1996-06-05 10:52 UTC (permalink / raw)


Per Abrahamsen <abraham@dina.kvl.dk> writes:

> If "/dev/null" causes problems, just use a bogus file name, like
> "/DOES NOT EXIST!".

I've now done so in Gnus 5.2.8.

-- 
  "Yes.  The journey through the human heart 
     would have to wait until some other time."


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

end of thread, other threads:[~1996-06-05 10:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-06-05  8:37 [gnus 5.2.7] custom.el 守岡 知彦 / MORIOKA Tomohiko
1996-06-05  9:17 ` Per Abrahamsen
1996-06-05 10:23   ` 守岡 知彦 / MORIOKA Tomohiko
1996-06-05 10:52   ` Lars Magne Ingebrigtsen

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 NNTP newsgroup(s).