HDTenEightyP/NetNews huggingface dataset:
From: fjh@munta.cs.mu.OZ.AU (Fergus James HENDERSON)
Subject: Re: Standard conformance and GCC 2.3.3
Organization: Computer Science, University of Melbourne, Australia
Date: Sat, 2 Jan 1993 16:52:50 GMT

rfg@netcom.com (Ronald F. Guilmette) writes:

>#20)  GCC incorrectly issues errors for the following standard-conformant
>      ANSI C code when the -pedantic-errors option is used.

Basically, you asked for it.

Until and unless you can provide an extract of the GNU C documentation which
claims that using the -pedantic-errors option invokes an ANSI-conforming
implementation, then I will continue to hold the above opinion.

-- 
Fergus Henderson             fjh@munta.cs.mu.OZ.AU      
This .signature virus is a self-referential statement that is true - but 
you will only be able to consistently believe it if you copy it to your own
.signature file!
Newsgroups: comp.std.c,comp.lang.c
From: diamond@jit533.jit.dec.com (Norman Diamond)
Subject: Re: uninitialized++;
Reply-To: diamond@jit.dec.com (Norman Diamond)
Organization: Digital Equipment Corporation Japan , Tokyo
Date: Wed, 30 Dec 1992 08:39:31 GMT

In article <9236508.13290@mulga.cs.mu.OZ.AU> fjh@munta.cs.mu.OZ.AU (Fergus James HENDERSON) writes:
>hbf@gandalf.uio.no (Hallvard B Furuseth) writes:
>>Can this fail  - on some machine?  - in ANSI?
>>main () { int uninitialized; uninitialized++; return 0; }

>I've redirected things to comp.std.c where hopefully someone will be able

I added comp.lang.c back to it so Mr./Ms. Furuseth will find it.
On some machine, yes:  if the implementation detects overflow of signed
integers, and uninitialized happens to have started at INT_MAX.  And ANSI
Classic section 3.3, page 39 lines 15 to 17, allows failure for this reason:
"If an exception occurs during the evaluation of an expression (that is, if
the result is not mathematically defined or not in the range of representable
values for its type), the behavior is undefined."

On another machine, maybe yes:  once upon a time a famous Fortran compiler
helped students catch bugs by checking for things like usings uninitialized
variables.  A hypothetical C implementation could try to initialize each
uninitialized object to the worst possible value, in hopes of doing the same.
It would be able to catch yours that way.  But consider this program:
  main () { int uninitialized; uninitialized += 0; return 0; }
I think this one is not allowed to fail.
--
Norman Diamond                diamond@jit.dec.com
If this were the company's opinion, I wouldn't be allowed to post it.
Pardon me?  Or do I have to commit a crime first?
Newsgroups: comp.std.c
From: fjh@munta.cs.mu.OZ.AU (Fergus James HENDERSON)
Subject: Re: Standard conformance and GCC 2.3.3
Organization: Computer Science, University of Melbourne, Australia
Date: Sat, 2 Jan 1993 16:55:21 GMT

rfg@netcom.com (Ronald F. Guilmette) writes:

>In article <1992Dec31.150047.22321@crd.ge.com> volpe@ausable.crd.ge.com writes:
>+I disagree violently with the assertion that any errors one might make
>+would necessarily result in non-standard-conformant code. Just because 
>+it's conformant doesn't mean it's intended. Anyone who says such a thing
>+obviously never writes original code for a living, or otherwise is a 
>+complete programming God who has never made a mistake and never found
>+lint to be the least bit useful. 
>
>There is a big difference between using an optional tool like lint, and/or
>having warnings which you can *ignore* at your option, and getting *hard*
>errors from your compiler for perfectly standard conformant code.

The -pedantic-errors option is (as the name implies) *optional*.

>Lint is good.  Warnings are good.  Hard errors for perfectly standard
>conformant code are BAD!  I do not wish to have my compiler give me s**t
>when I'm trying to port some perfectly standard conforming code.  Nor do
>I think that it should be forcing me to change such code, just to get
>it to compile and link.

It's not. All you have to change is the compiler options.

-- 
Fergus Henderson             fjh@munta.cs.mu.OZ.AU      
This .signature virus is a self-referential statement that is true - but 
you will only be able to consistently believe it if you copy it to your own
.signature file!
Newsgroups: comp.std.c
From: tadams@ll.mit.edu ( Tony Adams)
Subject: Mixing prototype and non-prototype issues
Originator: tadams@ll.mit.edu ( Tony Adams)
Organization: MIT Lincoln Laboratory
Date: Thu, 24 Dec 92 23:46:22 GMT


The following script shows an example of a function call which is not
governed by a prototype, calling a (non-visible) function defined in
prototype syntax.

Would someone please report the section numbers of the standard that
describe this programs combination of prototype and non-prototype
usage.

Thanks for any help.

Lines 1-6 show the system/compiler information
Lines 8-20 show the program example
Lines 21-25 show the compile, warnings and output

     1	Script started on Thu Dec 24 18:34:23 1992
     2	dspsim1% uname -a
     3	SunOS dspsim1 4.1.2 1 sun4m
     4	dspsim1% gcc -v
     5	Reading specs from /usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.3.1/specs
     6	gcc version 2.3.1
     7	dspsim1% cat c.c
     8	#include <stdio.h>
     9	main(int argc,char **argv)
    10	{
    11	        float   f=1.0;
    12	
    13	        func(f); /* no declaration in prototype form is visible */
    14	}
    15	
    16	/* definition of func() is not visible  from main() */
    17	func(float f)
    18	{
    19	        printf("%f\n",f);
    20	}
    21	dspsim1% gcc -ansi c.c
    22	c.c:11: warning: type mismatch with previous implicit declaration
    23	c.c:6: warning: previous implicit declaration of `func'
    24	dspsim1% a.out
    25	1.875000
    26	dspsim1% ^D
    27	script done on Thu Dec 24 18:35:32 1992
Newsgroups: comp.std.c
From: rfg@netcom.com (Ronald F. Guilmette)
Subject: Re: Standard conformance and GCC 2.3.3
Organization: Netcom Online Communications Services (408-241-9760 login: guest)
Date: Fri, 1 Jan 1993 11:58:04 GMT

In article <1992Dec31.150047.22321@crd.ge.com> volpe@ausable.crd.ge.com writes:
+In article <1992Dec30.203555.3615@netcom.com>, rfg@netcom.com (Ronald F. Guilmette) writes:
+|> In article <1992Dec30.173634.15487@crd.ge.com> volpe@ausable.crd.ge.com writes:
+|> +These diagnostics are prefectly friendly and very helpful. Since the
+|> +declarations allocate no storage (there's no object being defined), a 
+|> +storage class specifier is useless and superfluous.
+|> 
+|> I disagree violently with the assertion that the issuance of errors for
+|> perfecly "standard conformant" code is "perfectly friendly and very helpful".
+|> Anyone who says such a thing obviously does not port code for a living!
+
+I disagree violently with the assertion that any errors one might make
+would necessarily result in non-standard-conformant code. Just because 
+it's conformant doesn't mean it's intended. Anyone who says such a thing
+obviously never writes original code for a living, or otherwise is a 
+complete programming God who has never made a mistake and never found
+lint to be the least bit useful. 

There is a big difference between using an optional tool like lint, and/or
having warnings which you can *ignore* at your option, and getting *hard*
errors from your compiler for perfectly standard conformant code.

Lint is good.  Warnings are good.  Hard errors for perfectly standard
conformant code are BAD!  I do not wish to have my compiler give me s**t
when I'm trying to port some perfectly standard conforming code.  Nor do
I think that it should be forcing me to change such code, just to get
it to compile and link.

+I would *never* write the above piece of code intentionally, no matter
+how conformant it is, and I would appreciate some kind of warning that
+I had obviously omitted some variable names in those declarations.

As I say, warnings are one thing, and hard errors are another.  Please
do not confuse the two.

-- 

// Ron ("Loose Cannon") Guilmette    uucp: ...uunet!lupine!segfault!rfg
//
//      "On the one hand I knew that programs could have a compelling
//       and deep logical beauty, on the other hand I was forced to
//       admit that most programs are presented in a way fit for
//       mechanical execution, but even if of any beauty at all,
//       totally unfit for human appreciation."
//                                              -- Edsger W. Dijkstra
From: diamond@jit533.jit.dec.com (Norman Diamond)
Subject: Re: assert
Reply-To: diamond@jit.dec.com (Norman Diamond)
Organization: Digital Equipment Corporation Japan , Tokyo
Date: Thu, 24 Dec 1992 02:10:33 GMT

In article <1h7gc9INN8pf@chnews.intel.com> bhoughto@sedona.intel.com (Blair P. Houghton) writes:
>In article <9212211543.PN29748@LL.MIT.EDU> lebrun@ll.mit.edu (Steven F. LeBrun) writes:
>>I would think that standard header files
>>including other standard header files is almost a necessity in order that 
>>standard header files may be include in any order and still keep the 
>>standard header files as simple as practical.

>But--and this is a big but--the identifier definitions in a standard header
>should be seen by the program if and only if the programmer explicitly
>includes that header.  Otherwise the programmer should expect that they are
>not yet used.

Both posters are correct, but Mr. LeBrun's opinion is not quite relevant.
Indeed, it is almost a necessity to create broken implementations in order
to be as simple as practical.  Conforming implementations are not simple.
--
Norman Diamond       diamond@jit081.enet.dec.com
If this were the company's opinion, I wouldn't be allowed to post it.
"It's been a lovely recession."
From: bsmith@tivoli.com (Bill Smith)
Newsgroups: comp.emacs
Subject: how to make (next-error) work with UIL compile errors?
Keywords: UIL,errors
Date: 21 Dec 92 22:15:17 GMT
Organization: TIVOLI Systems

Hi folks, I'm compiling a UIL file inside of Emacs 18.57 and then trying
to step through the error messages using (next-error) (ctrl-X `) but emacs
doesn't recognize any of the error messages.  Anyone already tackle this
problem?

Thanks,
Bill Smith
bsmith@tivoli.com
From: mconlon@stat.ufl.edu (Mike Conlon)
Newsgroups: comp.emacs
Subject: Defining a new Meta key (2nd try)
Date: 3 Jan 93 21:21:45 GMT
Distribution: comp.emacs
Organization: University of Fl, Department of Statistics

I was cut off in mid-post, so let's try again.

I want to define a new meta key for a VT1000 Xterminal.  I can 
redefine the key I want to use to be "help-for-help" by using:

(global-set-key "C\-[[23~" 'help-for-help)

in my .emacs. This works perfectly. What I want to do is to have the
key generate an ASCII 27 (escape) so that when pressed it acts as a
Meta key.  It looks to me like 'quoted-insert 033 is what I want, but
I havn't stmbled across the right lisp syntax to get quoted-insert 
to work in the global-set-key definition.

How can I combine the global-set-key and quoted-insert to get my
function key to generate an escape character when pressed?

Mike Conlon
Dept of Statistics
University of Florida
--
Michael Conlon                  
Department of Statistics               
University of Florida   
Newsgroups: comp.emacs,gnu.emacs.help,gnu.epoch.misc
From: pat@gsfc.nasa.gov (patrick m. ryan)
Subject: strange replace-regexp behavior
Summary: replace-regexp isn't working properly
Keywords: replace regexp emacs epoch
Organization: Goddard Space Flight Center
X-Newsreader: TIN [version 1.1 PL8]
Date: Mon, 28 Dec 1992 13:39:23 GMT


	I was trying to remove a leading column of '>' characters
from some text and got some strange behavior from replace-regexp.
I have text something like this:

>In article 999, joe@blow said:
>>blah blah blah
>> blah blah blah

I wanted to remove the first '>' in each line.  Thus, I did:

	(replace-regexp "^>" "")

Instead of removing just the first '>' in each line, it removed
the whole sequence of '>' characters.  It acted as though I
has used "^>*" for the first argument.  I ended up with:

In article 999, joe@blow said:
blah blah blah
 blah blah blah

I'm using Epoch 4.2 on a SPARC 10 under SunOS 4.1.3.

Any help would be appreciated.

thanks,
pat

--
"I have a cunning plan." -- Baldric
                                                             patrick m. ryan
     nasa / goddard space flight center / oceans and ice branch / hughes stx
                     pat@jaameri.gsfc.nasa.gov / zmpmr@charney.gsfc.nasa.gov
Xref: sparky comp.emacs:3845 comp.editors:3094 gnu.emacs.help:5153
From: bruce@zuhause.MN.ORG (Bruce Albrecht)
Newsgroups: comp.emacs,comp.editors,gnu.emacs.help
Subject: Re: Does DEMACS work reliably for anyone?
Distribution: world
X-NewsSoftware: Amiga GRn V1.29 4/25/92 (Beta) by Mike Schwartz
Date: 21 Dec 92 23:21:05 CST
Organization: Society to Stamp Out Bogus Organizations

In article <1992Dec20.173946.20445@super.org> pcolsen@super.org (Peter C Olsen) writes:
>
>Does DEMACS work --- reliably?  I would appreciate email from anyone
>who has experience, either way. I have been trying to use DEMACS, but
>I have been unable to get it to work reliably.  It seems to be very
>sensitive to other software, either refusing to run or running
>"poorly" --- e.g. ignoring characters or doubling them.  Then, when it
>appears to be running well, it often hangs at odd times, losing my
>recent work.  Emacs is my favorite editor (by far) in the unix
>environment, and I had hoped to use it extensively in DOS, but, so
>far, I am still relying on BRIEF simply because I can't depend on
>DEMACS.

I haven't seen any problems where characters are ignored or doubled, but
I have had a lot of problems where DEMACS hangs, presumably because its
32-bit DOS extender is incompatible with other ones, like the one provided
with Turbo C++ V3.0.  I've also had problems with Tiara's 10-Net networking
software, because their software messes up the console driver so that opening
the console in raw mode doesn't work.  It causes control-S to be interpreted
as a pause key - most inconvenient for searching and saving.  I have found
it to be mostly usable, but sometimes it seems to require rebooting whenever
switching from specific applications back to editing.
--
bruce@zuhause.mn.org
Youth is wasted on the young.
From: David.Martland@brunel.ac.uk (David Martland)
Newsgroups: comp.emacs
Subject: Looking for Emacs!!!! - Where is it?
Date: 21 Dec 92 16:33:34 GMT
Organization: Brunel University, Uxbridge, UK
X-Newsreader: TIN [version 1.1 PL8]

I have been asked by our support team (they're supposed to support us!) to help them
locate Emacs - using Xarchie we found many files and directories, and we even managed
to obtain a version of Micro-Emacs, which unfortunately failed to compile on our
Unix machines. 

Does any one out there know where there is a decent, up to date version of Emacs, which
will compile and run on Suns using Unix?

Please mail me and/or Dave Cole at 

	David.Martland@brunel.ac.uk 
and
	David.Cole@brunel.ac.uk



Dave Martland, Dept. of Computer Science, Brunel University, UK
-- 
                       David Martland
                  Dept. of Computer Science
                      Brunel University
                       United Kingdom

                  David.Martland@brunel.ac.uk
Newsgroups: comp.emacs
From: joel@wam.umd.edu (Joel M. Hoffman)
Subject: Re: Does DEMACS work reliably for anyone?
Organization: University of Maryland, College Park
Date: Fri, 25 Dec 1992 04:55:06 GMT

In article <LABACH.92Dec24092411@acs5.acs.ucalgary.ca> labach@acs.ucalgary.ca (Terence Michael Labach) writes:
>In article <bruce.0cvx@zuhause.MN.ORG> bruce@zuhause.MN.ORG (Bruce
>Albrecht) writes: 
>
>> I haven't seen any problems where characters are ignored or doubled, but
>> I have had a lot of problems where DEMACS hangs, presumably because its
>> 32-bit DOS extender is incompatible with other ones, like the one provided
>> with Turbo C++ V3.0.
>
>I'm surprised to hear this.  My DOS programming environment at work IS
>Turbo C++ 3.0 and demacs and they work well together.  I haven't had
>problems with the two being incompatible.  You might try adjusting the
>amount of extended memory each uses (-keep in demacs) to ensure that
>they aren't conflicting.

I think the instability comes not from memory problems, but disk
problems.  DEMACS swaps to disk and, under certain circumstances, can
put quite a strain on the disk.  Some controllers don't handle this
well, and timing bugs that don't show up under DOS can come to the
fore.  Many people have reported problems to this effect.  When I use
DEMACS, every so often it dies, but ALWAYS WHEN THE HD IS ON THE SAME
TRACK!  (I know because my Dell machine tells me what track the drive
is on.)

-Joel
Xref: sparky comp.emacs:3883 alt.lucid-emacs.help:827
From: edb@scic.intel.com (Edward Bunch)
Newsgroups: intel.emacs,comp.emacs,alt.lucid-emacs.help
Subject: Emacs 18.58 RMAIL does not work under AIX3.2
Keywords: Rmail movemail
Date: 29 Dec 92 23:44:39 GMT
Distribution: usa
Organization: Intel SCIC, Beaverton, OR
Originator: edb@rs069.scic.intel.com

Does anyone have a set of patches for Emacs18.58 will fix Rmail under
AIX3.2. I think the problem has to do with IBM changes to the way
/usr/spool/mail permissions are done (SYSV vs. BSD)

I have tried setting movemail setgid mail but it doesn't seem to
fix the problem and I've had little time of late to dig much deeper.

Any information as to why Emacs might be behaving this way would be 
appreciated.

movemail: Permission denied for lock file--see source file etc/movemail.c

Thanks in advance,

		Ed

BTW - Please reply via Email I can't say when I'll be able to read News.
-- 
**--***--***--***--***--***--***--***--***--***--***--***---***---***---***---**
Edward A. Bunch                                               edb@scic.intel.com
Network Architect                                             (503)531-5039     
Super Computer Interconnection Components                     "Rational Thought 
Intel Corporation                                             taken to Heart"   
--------------------------------------------------------------------------------
Newsgroups: comp.emacs
From: dark1@netcom.com (Steven Seeger)
Subject: THe .emacs file
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Date: Tue, 22 Dec 1992 03:54:55 GMT

How do I get the .emacs file to work? I try creating it, but nothing happens. Any suggestions?
-- 


-----------------------------------------------------------------------------
Steven D Seeger          /Fan of: Airwolf, Tiny Toons, and Inspector Gadget/
dark1@netcom.com        /Remember what Smokey says: Just piss on it!      /
Darkwing@waffle.sns.com/Will I end up with a Mac II CI or a Mac II VX??? /
From: grossjoh@linus.ls6.informatik.uni-dortmund.de (Kai Grossjohann)
Newsgroups: comp.emacs
Subject: Re: help on searching for function name
Date: 22 Dec 92 11:28:41
Organization: Universitaet Dortmund, Lehrstuhl Informatik VI
Reply-To: Kai Grossjohann <grossjoh@ls6.informatik.uni-dortmund.de>
NNTP-Posting-Host: linus.informatik.uni-dortmund.de
In-reply-to: elton@cbnewsb.cb.att.com's message of Thu, 10 Dec 1992 16:13:19 GMT

>>>>> On Thu, 10 Dec 1992 16:13:19 GMT,
>>>>> elton@cbnewsb.cb.att.com (elton.huang) said:


> Dear Folks,

> I would like to have something like that in emacs, my cursor is somewhere
> in a C file I am editing but since the nae of the function that the 
> cursor is in can not be shown unless I scroll up though sometime it's
> long, I hope I can press a key and the name of the function can be shown
> in the mini-buffer.

> I have to know how to do searches and regular expression in elisp. The
> algorithm I have in mind is 

> search backward for "^{" and on success,
> search backward for "(" and on success,
> print out the word immediate before "(" found.

> Would some kind soul knowing how to do this give me a solution or a hint ?
> Thanks in advance,

> Elton

(defun c-display-function-name ()
  "your own documentation goes here"
  (interactive)
  (save-excursion
    (if (re-search-backward "^{" (point-min) t)
	(if (re-search-backward "(" (point-min) t)
	    (progn
	      (backward-word 1)
	      (mark-word 1)
	      (message (buffer-substring (region-beginning) (region-end)))
	      (sit-for 2) ))))
  ) ; defun

You need to bind this to a key, of course.

Minimal testing has been done on this. It works as it should. However, I'm not
so sure that this is what you really want, because it depends on the fact that
the beginning opening brace of a C function is always on the beginning of a
line, and that no other opening brace is on the beginning of any line. Maybe
we should use something like backward-sexp? I'll leave that to you to think
about.

Good luck,

		Kai


--
  Kai Grossjohann            Phone (voice): 49 231 75 30 15
  Baroper Str. 331 App. 510  E-Mail: 
  W-4600 Dortmund 50         grossjoh@ls6.informatik.uni-dortmund.de
  Germany
From: tlp00@ras.amdahl.com (Tibor Polgar)
Newsgroups: comp.emacs
Subject: Environment variable expansion bug in file name completion
Date: 22 Dec 92 01:12:43 GMT
Reply-To: tlp00@ras.amdahl.com
Organization: Amdahl Corporation, Sunnyvale CA

if i do a C-x C-f (M-x find-file) and type: 

  Find file: $SRC<space>

i would expect to see (assuming "setenv SRC /usr/project/src"):

  Find file: /usr/project/src/

but instead i get:

  Find file: /

BUT if i do:
  
   Find file: $SRC/foo.c

All works fine, i edit file /usr/project/src/foo.c

So, substitute-in-file-name works ok but somewhere something is getting clipped.
Any ideas....   i'm seeing this with 18.55.
-------------------------------------------------------------------------------
| Tibor L. Polgar    |  (408) 746-8649     | tlp00@climb.ras.amdahl.com
| Amdahl Corporation
| 1250 East Arques Avenue (M/S 281)
| P.O. Box 3470
| Sunnyvale, CA 94088-3470
------------------------------------------------------------------------------
From: gwl@specialist.genrad.com (Glenn W. Lea)
Newsgroups: comp.emacs
Subject: repository of "donated" elisp files
Date: 22 Dec 1992 15:34:38 -0500
Organization: GenRad, Inc.
NNTP-Posting-Host: specialist.genrad.com

I'm looking for an elisp file that lets you edit a binary
file in a gnu emacs buffer.  I used to have a copy but in changing
jobs it has disappeared.  Can anyone point me to a place that collects
such things?  It's not part of the standard distribution.

Glenn Lea
gwl@genrad.com

Newsgroups: comp.emacs
From: vladimir@intrepid.com (Vladimir Vukicevic)
Subject: Re: Anyone have MicroEmacs 3.Xx source for Macintosh ?
Organization: Intrepid Technology, Inc.
Date: Wed, 30 Dec 1992 21:01:47 GMT
Keywords: source emacs macintosh

In article <brucet.725172992@extro.ucc.su.OZ.AU> brucet@extro.ucc.su.OZ.AU (Bruce Tulloch) writes:
>
>How about C sources for ANSI terminal emulation under Think C which are
>a little more flexible than Think's console library ?
>

I've searched high & low, but I couldn't find anything like this (I need
it for a csh-like shell for mac). I've taken up to modifying the console.
If you want a copy of it when I'm finished, mail me.

	- Vladimir

-- 
#----           Vladimir Vukicevic             #include <std_disclaimer.h>
#---------      vladimir@intrepid.com
#--------       Prodigy: TGTM25C    (Hardly ever checked)
Newsgroups: comp.emacs
From: milamber@krynn.solace.hsh.se (Per Persson)
Subject: ange-ftp.elc
Organization: Solace Computer Club, Sundsvall, Sweden
Distribution: comp
Date: Fri, 1 Jan 1993 05:23:23 MET

	Hi.
I'm just wondering how to change the port number when loading files.
I have had no sucess with ange-ftp-smart-gateway and I really hope there
is some way to change the port number... so I can use it to a mud
ftp port running on the port number 4081
-- 
  ___   snail : Per Persson         ___    phone : +46 60 128815
__\ /__         Tomtegrand 8b     __\ /__  email : milamber@solace.hsh.se
\__ __/         856 42 Sundsvall  \__ __/  
   V            SWEDEN               V     Death can't be that busy......
Newsgroups: comp.emacs
From: tfj@apusapus.demon.co.uk (Trevor Jenkins)