Subject: Emacspeak discussion list
List archive
- From: "T.V Raman" <raman AT google.com>
- To: "Robert Melton" (via emacspeak Mailing List) <emacspeak AT emacspeak.net>
- Cc: Robert Melton <lists AT robertmelton.com>, Tim Cross <theophilusx AT gmail.com>, Parham Doustdar <parham90 AT gmail.com>, Greg Wocher <gtwocher AT gmail.com>
- Subject: Re: [Emacspeak] Problem when editing a document with emacspeak
- Date: Sun, 21 Jan 2024 19:16:11 -0800
"Robert Melton" (via emacspeak Mailing List) <emacspeak AT emacspeak.net>
writes:
1. The original reporter found a defcustom, likely because his
emacspeak is out-dated; there used to be a defcuston -- so see my
first tip re always first checking version.
2. Your steps were technically correct otherwise but you started being misled.
3. If you hadn't been misled, you'd likely have read the code in
emacspeak-speak-line a bit more, rather than jumping to the
cross-ref; so tip: if jumping doesn't yield an answer, read the code
a bit more.
4. I'll cite the code block to read below -- see if you spot the
intended solution that is already built-in.
So read the complete cond form below -- not just one of its arms.
(cond
((or ;speakable
selective-display
(< l ems--speak-max-line)
(get-text-property start 'speak-line))
t)
(t
(when (y-or-n-p "use Visual Lines")
(call-interactively #'visual-line-mode))
(unless visual-line-mode
(put-text-property start end 'start-line t)
(setq ems--speak-max-line (* 2 l)))
t))
>
> I can't spot what I should be looking at, so let me first explain how I got
> to that variable.
>
> I started in defun emacspeak-speak-line as it felt like the likely starting
> point, it in I saw
> a reference to ems--speak-max-line in the comparison to line length, jumped
> to the def
> and found it in the same file defined as 384.
>
> I didn't know how the deflocal macro worked, so looked it up and saw that
> if there was
> a global value it would take it rather than use the value provided, so that
> is why I made
> the recommendation.
>
> Then, I looked around for a defcustom of anything touching it, by grepping
> around for
> the ems--speak-max-line and I can't find it being touched anywhere by
> anything. I
> understand that the OP found a way to tweak it in eamcspeak-customize but I
> can't
> seem to find it.
>
> So, what am I missing?
>
>
>> On Jan 20, 2024, at 12:21, T.V Raman (via emacspeak Mailing List)
>> <emacspeak AT emacspeak.net> wrote:
>>
>> 6 Tip: Robert, as the one who picked up on the internal var to set by
>> looking at the code, you were also looking at the real answer right
>> on that line, can you spot it?
>
> Emacspeak discussion list -- emacspeak AT emacspeak.net
> To unsubscribe send email to:
> emacspeak-request AT emacspeak.net with a subject of: unsubscribe
>
--
- Re: [Emacspeak] Problem when editing a document with emacspeak, (continued)
- Re: [Emacspeak] Problem when editing a document with emacspeak, Robert Melton, 01/19/2024
- Re: [Emacspeak] Problem when editing a document with emacspeak, Greg Wocher, 01/19/2024
- Re: [Emacspeak] Problem when editing a document with emacspeak, John Covici, 01/19/2024
- Re: [Emacspeak] Problem when editing a document with emacspeak, Greg Wocher, 01/19/2024
- Re: [Emacspeak] Problem when editing a document with emacspeak, Parham Doustdar, 01/19/2024
- Re: [Emacspeak] Problem when editing a document with emacspeak, Greg Wocher, 01/19/2024
- Re: [Emacspeak] Problem when editing a document with emacspeak, Tim Cross, 01/20/2024
- Re: [Emacspeak] Problem when editing a document with emacspeak, Parham Doustdar, 01/20/2024
- Re: [Emacspeak] Problem when editing a document with emacspeak, Greg Wocher, 01/20/2024
- Re: [Emacspeak] Problem when editing a document with emacspeak, T.V Raman, 01/20/2024
- Re: [Emacspeak] Problem when editing a document with emacspeak, Robert Melton, 01/21/2024
- Re: [Emacspeak] Problem when editing a document with emacspeak, T.V Raman, 01/22/2024
- Re: [Emacspeak] Problem when editing a document with emacspeak, Robert Melton, 01/22/2024
- Re: [Emacspeak] Problem when editing a document with emacspeak, T.V Raman, 01/22/2024
- Re: [Emacspeak] Problem when editing a document with emacspeak, Robert Melton, 01/22/2024
- Re: [Emacspeak] Problem when editing a document with emacspeak, T.V Raman, 01/22/2024
- Re: [Emacspeak] Problem when editing a document with emacspeak, Robert Melton, 01/22/2024
- Re: [Emacspeak] Problem when editing a document with emacspeak, T.V Raman, 01/22/2024
- Re: [Emacspeak] Problem when editing a document with emacspeak, John Covici, 01/22/2024
- Re: [Emacspeak] Problem when editing a document with emacspeak, Greg Wocher, 01/19/2024
- Re: [Emacspeak] Problem when editing a document with emacspeak, Robert Melton, 01/19/2024
Archive powered by MHonArc 2.6.19+.