1. Auto initials & auto date not working properly
2. How to disable auto-underlining Hyperlinks and Auto-Capitalization
Hi, Ken. In Word 2003, click on Tools | AutoCorrect Options | AutoCorrect tab | uncheck the boxes for "Capitalize first letter of sentences" and "Capitalize first letter of table cells" | Autoformat As You Type tab | uncheck the box for "Internet and network paths with hyperlinks" | OK.
"Ken Tucker" wrote:
> Currently all hyperlinks in MSWord2003 documents are automatically underlined and switched to blue color.
>
> How do I disable this auto-format permanently ?
>
> From time to time the first character of a word is automatically capitalized. How do I permanently
> disable this "feature"?
>
> Keep in mind that I ask for MsOffice 2003 and not for former versions.
>
> Ken
>
>
3. google and youtube script ( auto resume auto filename ) - Perl
4. compiling perl/tk with debugging?; help debugging a segfault in Tk_HandleEvent
Hi all,
I have an app that's crashing with a segfault under perl 5.8.7,
perl/tk 800.025. I have a core file from one such crash, but I
didn't have perl/tk compiled with debugging information, so with
my weak C and debugging skills, I'm having a hard time figuring out
exactly what's up. So first off, can anyone tell me how to modify the
standard "perl Makefile.PL; make" so that it will be compiled with
the -g option?
I'd also be grateful for any pointers from people with good debugger
skills as to what I'm doing wrong in my attempts to analyze the
bare-bones core file that I have. Here's what I've done:
$ gdb /usr/bin/perl core
...
(gdb) bt
#0 0xb7c23fcc in Tk_HandleEvent () from /usr/lib/perl5/auto/Tk/Tk.so
#1 0xb7c2471f in TkQueueEventForAllChildren () from
/usr/lib/perl5/auto/Tk/Tk.so
#2 0xb7c81519 in Tcl_ServiceEvent () from
/usr/lib/perl5/auto/Tk/Event/Event.so
#3 0xb7c81757 in Tcl_DoOneEvent () from
/usr/lib/perl5/auto/Tk/Event/Event.so
#4 0xb7bf238d in XS_Tk_DoOneEvent () from /usr/lib/perl5/auto/Tk/Tk.so
#5 0x080c406d in Perl_pp_entersub ()
#6 0x080bce9b in Perl_runops_standard ()
#7 0x08064f8c in perl_run ()
#8 0x0805fde6 in main ()
(gdb) info f
Stack level 0, frame at 0xbfeb5300:
eip = 0xb7c23fcc in Tk_HandleEvent; saved eip 0xb7c2471f
called by frame at 0xbfeb5320
Arglist at 0xbfeb52f8, args:
Locals at 0xbfeb52f8, Previous frame's sp is 0xbfeb5300
Saved registers:
ebx at 0xbfeb52ec, ebp at 0xbfeb52f8, esi at 0xbfeb52f0, edi at
0xbfeb52f4, eip at 0xbfeb52fc
(gdb) x 0xbfeb52f8
0xbfeb52f8: 0xbfeb5318
(gdb) x 0xbfeb5318
0xbfeb5318: 0xbfeb5338
So evidently the crash happens inside Tk_HandleEvent. The source code
starts out like this:
void
Tk_HandleEvent(eventPtr)
XEvent *eventPtr; /* Event to dispatch. */
{
So if I'm understanding gdb correctly, the argument eventPtr
is at 0xbfeb52f8. When I examine eventPtr, I find that it points
to 0xbfeb5318. Now AFAICT the XEvent stucture is defined in Xlib.h
like so:
typedef struct {
int type;
unsigned long serial;
Bool send_event;
Display *display;
Window window;
} XAnyEvent;
(Actually it's a union, but this is the stuff that every type of event
has in common.) So the very first thing in the structure should be
an integer which is the type of event. But when I examine address
0xbfeb5318, its contents are clearly another pointer, not a small
integer representing an event type. Can anyone tell me if I'm
misunderstanding how stack frames work in gcc or something? (Of
course this would all become easier if I could obtain a core file
that had debugging information in it, but the crashes also aren't
reproducible, so even once I manage to compile perl/tk with
debugging, it may be weeks before I obtain a core file.)
TIA!