From: "T.V Raman" <raman@google.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: emacs-devel@gnu.org
Subject: Re: EWW Feature Request: Mark start and end of table cells?
Date: Wed, 21 Oct 2020 12:56:22 -0700 [thread overview]
Message-ID: <p91mu0fbbfd.fsf@google.com> (raw)
In-Reply-To: <p91eelrr4x6.fsf@google.com> (T. V. Raman's message of "Wed, 21 Oct 2020 08:10:13 -0700")
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb18030, Size: 793 bytes --]
Hi Lars,
could you explain (perhaps via comments in the code for posterity) the
meaning of the return value of shr-render-td-1 -- suspect this is where
the cell gets rendered and its rendered representation returned for
insertion in the output.
I used this markup:
<table><tr><td> sis is a test.</td></tr></table>
With this advice below:
(setq td-result nil)
(defadvice shr-render-td-1 (after test pre act comp)
(cl-declare (special td-result))
(setq td-result ad-return-value)
)
And td-result gets set to this list:
(7 7 1 (#("testing" 0 1 (shr-indentation 0))) 1 nil nil)
so (elt td-result 3) is the rendered cell, could you explain the meaning
of the other list elements in the returned value?
--
Thanks,
--Raman
7©4 Id: kg:/m/0285kf1 0Ü8
next prev parent reply other threads:[~2020-10-21 19:56 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-20 23:59 EWW Feature Request: Mark start and end of table cells? T.V Raman
2020-10-21 10:53 ` Lars Ingebrigtsen
2020-10-21 14:27 ` T.V Raman
2020-10-22 11:25 ` Lars Ingebrigtsen
2020-10-22 14:30 ` T.V Raman
2020-10-21 15:10 ` T.V Raman
2020-10-21 19:56 ` T.V Raman [this message]
2020-10-22 11:35 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=p91mu0fbbfd.fsf@google.com \
--to=raman@google.com \
--cc=emacs-devel@gnu.org \
--cc=larsi@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).