[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacspeak] Problem when editing a document with emacspeak



Hi Greg,

I think your problem is that your trying to set the variable after
Emacspeak has been loaded.

The variable ems--speak-max-line is a buffer local variable, meaning
that every buffer will have its own copy of that variable. If you try to
change it using setq after the variable has been created, it will only
change the value in the current buffer.

Try moving the setq line to before you load emacspeak and see if that
works better.

Also, I note you have some init code after the custom blocks in your
init file. Best practice is to have all your init code before those
blocks and have those blocks at the end of your file.


"Greg Wocher" (via emacspeak Mailing List) <emacspeak@xxxxxxxxxxxxx> writes:

> Hello,
> Here is what is in my init file:
> (load-file "/Users/gregwocher/emacspeak/lisp/emacspeak-setup.el")
> (dtk-set-rate 250 t)
>  (setq ems--speak-max-line 3000 )
>
>
> (custom-set-variables
>  ;; custom-set-variables was added by Custom.
>  ;; If you edit it by hand, you could mess it up, so be careful.
>  ;; Your init file should contain only one such instance.
>  ;; If there is more than one, they won't work right.
>  '(mac-ignore-accessibility t)
>  '(mac-left-command-modifier 'meta)
>  '(mac-left-option-modifier 'super)
>  '(mac-right-command-modifier 'control)
>  '(mac-right-option-modifier 'hyper)
>  '(package-selected-packages '(emmet-mode elpy)))
>
> (custom-set-faces
>  ;; custom-set-faces was added by Custom.
>  ;; If you edit it by hand, you could mess it up, so be careful.
>  ;; Your init file should contain only one such instance.
>  ;; If there is more than one, they won't work right.
>  )
>
> (require 'package)
> (add-to-list 'package-archives
>              '("melpa-stable" . "https://stable.melpa.org/packages/";))
>              
> How do I check the customize section for emacspeak? I stopped using emacs for a bit and I am trying to get back into it.
>
> Greg Wocher
>
>
>
>> On Jan 19, 2024, at 11:38 AM, Parham Doustdar <parham90@xxxxxxxxx> wrote:
>> 
>> Hi Greg,
>> Can you please show us your init.el file where you load emacspeak and you set the
>> variable ems--speak-max-line?
>> Thanks!
>>> On 19 Jan 2024, at 12:26, Greg Wocher (via emacspeak Mailing List) <emacspeak@xxxxxxxxxxxxx> wrote:
>>> 
>>> Hello,
>>> This line did not work either. The message I am gtting says read this 869 long line
>>> Y/N. I tried doing a search on google but I did not find anything.
>>> 
>>> Thanks,
>>> Greg Wocher
>>> 
>>>> On Jan 17, 2024, at 2:34 PM, Robert Melton <lists@xxxxxxxxxxxxxxxx> wrote:
>>>> 
>>>> All you have to do is edit your init.el and add something like 
>>>> 
>>>> (setq ems--speak-max-line 3000)
>>>> 
>>>> don't need to mess with the emacspeak folder at all. 
>>>> 
>>>>> On Jan 17, 2024, at 13:51, Greg Wocher (via emacspeak Mailing List) <emacspeak@xxxxxxxxxxxxx> wrote:
>>>>> 
>>>>> Hello,
>>>>> I tried this by going into my emacspeak folder, find the file and then changing the
>>>>> value. It did not work to stop the message. I still see messages like this line is
>>>>> 869 long. Do you want emacspeak to read it? What else might I try to stop this? I
>>>>> edited the file in a normal editor and not from within emacs.
>>>>> 
>>>>> Greg Wocher
>>>>> 
>>>>> 
>>>>>> On Jan 16, 2024, at 8:11 PM, Jerry Sievers (via emacspeak Mailing List)
>>>>>> <emacspeak@xxxxxxxxxxxxx> wrote:
>>>>>> 
>>>>>> "Greg Wocher" (via emacspeak Mailing List) <emacspeak@xxxxxxxxxxxxx>
>>>>>> writes:
>>>>>> 
>>>>>>> Hello all,
>>>>>>> When I am editing a document I created on my Mac, I keep getting a
>>>>>>> message saying something about this line has X number of characters do
>>>>>>> you want emacspeak to read the line. This is happening on just about
>>>>>>> every line of the document. How can I get it to stop or can I even get
>>>>>>> it to stop? I am using emacs with emacspeak on a M1 14 inch macbook
>>>>>>> pro.
>>>>>> 
>>>>>> Disclaimer: my emacspeak version  isn't uup to date... but works
>>>>>> perfectly.
>>>>>> 
>>>>>> Have a look at this customizable setting that you can  adjust to your
>>>>>> taste.
>>>>>> 
>>>>>> ems--speak-max-line is a variable defined in ‘emacspeak-speak.el’.
>>>>>> 
>>>>>> Its value is 2000
>>>>>> Original value was 512
>>>>>> 
>>>>>> Threshold for determining ‘long’ lines.
>>>>>> Emacspeak will ask for confirmation before speaking lines
>>>>>> that are longer than this length.  This is to avoid accidentally
>>>>>> opening a binary file and torturing the speech synthesizer
>>>>>> with a long string of gibberish.
>>>>>> 
>>>>>> Automatically becomes buffer-local when set.
>>>>>> You can customize this variable.
>>>>>> 
>>>>>> 
>>>>>> Enjoy!
>>>>>> 
>>>>>>> 
>>>>>>> Thanks,
>>>>>>> Greg Wocher
>>>>>>> 
>>>>>>> Emacspeak discussion list -- emacspeak@xxxxxxxxxxxxx
>>>>>>> To unsubscribe send email to:
>>>>>>> emacspeak-request@xxxxxxxxxxxxx with a subject of: unsubscribe
>>>>>> Emacspeak discussion list -- emacspeak@xxxxxxxxxxxxx
>>>>>> To unsubscribe send email to:
>>>>>> emacspeak-request@xxxxxxxxxxxxx with a subject of: unsubscribe
>>>>> 
>>>>> 
>>>>> Emacspeak discussion list -- emacspeak@xxxxxxxxxxxxx
>>>>> To unsubscribe send email to:
>>>>> emacspeak-request@xxxxxxxxxxxxx with a subject of: unsubscribe
>>>> 
>>> 
>>> Emacspeak discussion list -- emacspeak@xxxxxxxxxxxxx
>>> To unsubscribe send email to:
>>> emacspeak-request@xxxxxxxxxxxxx with a subject of: unsubscribe
>> 
>
> Emacspeak discussion list -- emacspeak@xxxxxxxxxxxxx
> To unsubscribe send email to:
> emacspeak-request@xxxxxxxxxxxxx with a subject of: unsubscribe


|Full archive May 1995 - present by Year|Search the archive|


If you have questions about this archive or had problems using it, please contact us.

Contact Info Page