Robert D. Crawford | 11 Dec 02:56 2006
Picon
Picon

patch for emacspeak-w3m.el

I received an email a few hours ago saying that emacs-w3m now has
support for italics.  This requires an upgrade to the cvs version of
both w3m and emacs-w3m.  This patch adds a voice for w3m-italic-face.

Now, who will I have to kill to get the pre tag supported?

rdc

Attachment (emacspeak-w3m.el.diff.gz): application/octet-stream, 117 bytes

--

-- 
Robert D. Crawford                                      rdc1x <at> comcast.net

All most people want is a little more than they'll ever get.
T. V. Raman | 11 Dec 05:20 2006
Picon

patch for emacspeak-w3m.el


Applied your patch.

In case you have time for this:

I've been meaning to refactor common web support code (code that
is presently duplicated in emacspeak-w3m and emacspeak-w3)
into an emacspeak-webutils.el module; as you've noticed, all I've
done so far is to create the file.

Doing this refactoring will help maintain w3m and w3 support and
ensure that as things get added they will work automatically with
both browsing solutions.

>>>>> "Robert" == Robert D Crawford <rdc1x <at> comcast.net> writes:
    Robert> I received an email a few hours ago saying that
    Robert> emacs-w3m now has support for italics.  This requires
    Robert> an upgrade to the cvs version of both w3m and
    Robert> emacs-w3m.  This patch adds a voice for
    Robert> w3m-italic-face.
    Robert> 
    Robert> Now, who will I have to kill to get the pre tag
    Robert> supported?
    Robert> 
    Robert> rdc
    Robert> 
    Robert> 
    Robert> -- Robert D. Crawford rdc1x <at> comcast.net
    Robert> 
    Robert> All most people want is a little more than they'll
(Continue reading)

T. V. Raman | 11 Dec 15:14 2006
Picon

w3m and emacspeak

The other piece of w3m work that needs to be done is directly on
emacs-w3m; that packages uses a number of defmacro definitions
that should be rewritten as defsubst --- otherwise the compiled
emacspeak-w3m is broken.

Again if those of you using w3m have the cycles, this is a good
mini-project that you can contribute to the W3m project directly.

--

-- 
Best Regards,
--raman

      
Email:  raman <at> users.sf.net
WWW:    http://emacspeak.sf.net/raman/
AIM:    emacspeak       GTalk: tv.raman.tv <at> gmail.com
PGP:    http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:    irc://irc.freenode.net/#emacs

Robert D. Crawford | 11 Dec 18:14 2006
Picon
Picon

setting punctuation mode globally does not seem to stick

Hello everyone,

Does anyone else seem to be having this problem?  I am not sure how I am
getting here, but punctuation mode seems, in gnus buffers, to be changed
to 'all'.  This is not unusual, as it seems to happen most often after
changing to a buffer that has its punctuation mode set to all, such as
shell buffers and buffers in php-mode.  The problem is that the way I
normally fix this is to issue C-u C-e d r and set the punctuation mode
to some globally.  Now, if I do this, it seems to be that way for the
buffers that I have currently open, but not for buffers that get re-made
such as the summary buffer and the article buffer,

Has anyone seen this before, and if so, is there any fix?  Here is my
version information:

GNU Emacs 22.0.91.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of
2006-12-03 on t40

and my emacspeak version is 24.0  rev.4271m

I have not upgraded either one in several days (maybe weeks, I cannot
remember).

Thanks,
rdc
--

-- 
Robert D. Crawford                                      rdc1x <at> comcast.net

It's raisins that make Post Raisin Bran so raisiny ...

(Continue reading)

Robert D. Crawford | 11 Dec 22:48 2006
Picon
Picon

Re: setting punctuation mode globally does not seem to stick

having this problem gave me a good excuse to do some simplification I
have been intending for a while.  I have moved everything into my .emacs
file and stopped using the emacspeak script to start.  I have now
started having a new problem.

The outloud does not seem to honor the outloud-default-speech-rate.
Either that, or the outloud starts before the variable is set.  When
emacs starts, the speech is rather slow, as if the variable is not set.
If, after startup I check the value, it is 92 as it should be.  I did
have this set at the top of the .emacs file, right after doing the
load-file on the emacspeak-setup.el file and have set it with custom
with no change in behavior.

If I issue tts-restart, everything speeds up as it should.  The same is
true if I do C-e d r.

Concerning the punctuation mode, should I add  to the startup hooks
for gnus and message a call to set the punctuation mode?  I don't
remember having this problem before.  

Thanks,
rdc

"Robert D. Crawford" <rdc1x <at> comcast.net> writes:

> Hello everyone,
>
> Does anyone else seem to be having this problem?  I am not sure how I am
> getting here, but punctuation mode seems, in gnus buffers, to be changed
> to 'all'.  This is not unusual, as it seems to happen most often after
(Continue reading)

Lukas Loehrer | 11 Dec 23:23 2006
Picon
Picon

Re: setting punctuation mode globally does not seem to stick

Robert D. Crawford writes ("Re: setting punctuation mode globally does not seem to stick"):
> started having a new problem.
> The outloud does not seem to honor the outloud-default-speech-rate.
> Either that, or the outloud starts before the variable is set.  When
> emacs starts, the speech is rather slow, as if the variable is not
set.

Same thing here. Because I start emacs rarely thanks to software
suspend, I did not bother yet to investigate the cause of this.  I
start emacspeak as early as possible in the emacs start process in 

/etc/emacs/site-start.d/10emacspeak.el

Maybe, it helps setting the speech rate again somewhere towards the
end of .emacs.

About your punctuation problems: You propbably know this already but
at least for w3m, emacspeak sets the punctuation mode to "some" in the
advice for w3m-mode, regardless what the global settings are. Maybe, a
similar things is going on in your case.

Best regards, Lukas

Robert D. Crawford | 12 Dec 00:51 2006
Picon
Picon

Re: setting punctuation mode globally does not seem to stick

Lukas Loehrer <listaddr1 <at> gmx.net> writes:

> Same thing here. Because I start emacs rarely thanks to software
> suspend, I did not bother yet to investigate the cause of this.  I
> start emacspeak as early as possible in the emacs start process in 
>
> /etc/emacs/site-start.d/10emacspeak.el

This is the "debian" way, right?  I have my emacs setup in $HOME and
that is the only place where code goes, save for the outloud stuff which
is installed in the default locations.

> Maybe, it helps setting the speech rate again somewhere towards the
> end of .emacs.

I'll try this later on and see if it solves the problem.

> About your punctuation problems: You propbably know this already but
> at least for w3m, emacspeak sets the punctuation mode to "some" in the
> advice for w3m-mode, regardless what the global settings are. Maybe, a
> similar things is going on in your case.

I took a look in the emacspeak-gnus.el file and nothing is done with the
punctuation mode.  I have added the code to set it in the various
mode hooks and will be sending a patch after a few days... just to see
if there are any unintended effects.  I would like to get Dr. Ramen's
opinion on this, but do think it would be useful or necessary to give
the option for the default punctuation mode to be set by the user?  I
tend to use 'some' for everything but sourcecode, but I might be in the
minority. 
(Continue reading)

T. V. Raman | 12 Dec 03:23 2006
Picon

Re: setting punctuation mode globally does not seem to stick


This has always been a bit messier than I like. I believe that on
my laptop where I use outloud, I have the tts rate set *after*
all of emacs has started.

>>>>> "Robert" == Robert D Crawford <rdc1x <at> comcast.net> writes:
    Robert> having this problem gave me a good excuse to do some
    Robert> simplification I have been intending for a while.  I
    Robert> have moved everything into my .emacs file and stopped
    Robert> using the emacspeak script to start.  I have now
    Robert> started having a new problem.
    Robert> 
    Robert> The outloud does not seem to honor the
    Robert> outloud-default-speech-rate.  Either that, or the
    Robert> outloud starts before the variable is set.  When
    Robert> emacs starts, the speech is rather slow, as if the
    Robert> variable is not set.  If, after startup I check the
    Robert> value, it is 92 as it should be.  I did have this set
    Robert> at the top of the .emacs file, right after doing the
    Robert> load-file on the emacspeak-setup.el file and have set
    Robert> it with custom with no change in behavior.
    Robert> 
    Robert> If I issue tts-restart, everything speeds up as it
    Robert> should.  The same is true if I do C-e d r.
    Robert> 
    Robert> Concerning the punctuation mode, should I add to the
    Robert> startup hooks for gnus and message a call to set the
    Robert> punctuation mode?  I don't remember having this
    Robert> problem before.
    Robert> 
(Continue reading)

T. V. Raman | 12 Dec 03:26 2006
Picon

Re: setting punctuation mode globally does not seem to stick


The default for this is a difficult choice.

I added a special option for w3 a while back so that you can
customize the default punct mode for w3 buffers --- but I  have
never been able to convince myself of a good set of defaults,
which is why I've never hard-coded in the defaults, or created
lots of custom options.For the record     
this is also why command dtk-toggle-punctuation-mode exists --
and in most modes, I bind it to [delete]  since I use [del] to
delete characters backward and c-d to delete char under point.

>>>>> "Robert" == Robert D Crawford <rdc1x <at> comcast.net> writes:
    Robert> Lukas Loehrer <listaddr1 <at> gmx.net> writes:
    >> Same thing here. Because I start emacs rarely thanks to
    >> software suspend, I did not bother yet to investigate the
    >> cause of this.  I start emacspeak as early as possible in
    >> the emacs start process in
    >> 
    >> /etc/emacs/site-start.d/10emacspeak.el
    Robert> 
    Robert> This is the "debian" way, right?  I have my emacs
    Robert> setup in $HOME and that is the only place where code
    Robert> goes, save for the outloud stuff which is installed
    Robert> in the default locations.
    Robert> 
    >> Maybe, it helps setting the speech rate again somewhere
    >> towards the end of .emacs.
    Robert> 
    Robert> I'll try this later on and see if it solves the
(Continue reading)

Robert D. Crawford | 12 Dec 04:40 2006
Picon
Picon

Re: setting punctuation mode globally does not seem to stick

"T. V. Raman" <raman <at> users.sf.net> writes:

> I added a special option for w3 a while back so that you can
> customize the default punct mode for w3 buffers --- but I  have
> never been able to convince myself of a good set of defaults,
> which is why I've never hard-coded in the defaults, or created
> lots of custom options.For the record     

I think this is the route I will take.  Setting the default at 'some'
will cover almost all cases, I think, but the option will be there for
those who wish to change it.

> this is also why command dtk-toggle-punctuation-mode exists -- 

I use this option quite regularly.  I am reading a book on php right now
and being able to change the punctuation mode has been quite helpful.

Thanks,
rdc
--

-- 
Robert D. Crawford                                      rdc1x <at> comcast.net

sarchasm:
	The gulf between the author of sarcastic wit and the person who
doesn't get it.


Gmane