From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "T.V Raman" Newsgroups: gmane.emacs.devel Subject: Re: EWW Feature Request: Mark start and end of table cells? Date: Wed, 21 Oct 2020 12:56:22 -0700 Message-ID: References: <20201020235916.D632CC21414@raman-glaptop.localdomain> <87o8kvkfyf.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=gb18030 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1786"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Oct 21 21:57:23 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kVKEd-0000Ni-3U for ged-emacs-devel@m.gmane-mx.org; Wed, 21 Oct 2020 21:57:23 +0200 Original-Received: from localhost ([::1]:47302 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kVKEc-0007o2-3P for ged-emacs-devel@m.gmane-mx.org; Wed, 21 Oct 2020 15:57:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55676) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVKDm-0007Nt-ST for emacs-devel@gnu.org; Wed, 21 Oct 2020 15:56:30 -0400 Original-Received: from mail-pg1-x52d.google.com ([2607:f8b0:4864:20::52d]:39103) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kVKDk-0007zg-1a for emacs-devel@gnu.org; Wed, 21 Oct 2020 15:56:30 -0400 Original-Received: by mail-pg1-x52d.google.com with SMTP id o7so2129775pgv.6 for ; Wed, 21 Oct 2020 12:56:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=3d8taCgSBrdrC95LR71nLBQPkxCIw28hC1Wa7CNQYVw=; b=iBwFUAhh96LTWcQNgUypzNe0D7ooCrAQpYJhdIEdYzHT7zQlXmfVCVhAkSEWteiCia 14OcHkVSubaVRHv/Sfk3xIQGDp006OacQlt0G5JwjFdcdf9BLj5mwGwxLRl42RItgQhe 7E/evSct83dNQ15AhYqzbu7zGgs9tCOXusXxCah4TP9UkRdPAFWe7+JHtJxcOjAza99y 1f45w18Aav3Kf0usMuhueS6wFrq/CNInHd2WiRro+wLCI7j4ivVimxQV8CWGKeK4ujMC qdSj/NB6bIorfRlJHUmgCHq5ZP32Y10Y32X09YtIhYyViWD1R/5Bt9FVdsot6zNMCkVO Sz7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=3d8taCgSBrdrC95LR71nLBQPkxCIw28hC1Wa7CNQYVw=; b=betkFCVGApg9ByJAHlcMMwMafhZdakP68H9YohAwEXQ/33cLMW94ud9/BnoGS6yuQJ GFFL829N9KcBbsvnr+M35hLteI11SyE7ysF6yBKeqjfY7j6lW5JW2bu5REWobSiyk84x fD8FHEIvFTtCz+AVHjwIEL7p0WahTSk+tKO/GdvBtNPUG4d2q6PDBp/zjAxZ8+6H3qEN ewj+dgNu6UMD5f6WQxxjC/DHFj89Z2SI5OjYio0jM4GZYWowdZu3DSMEe1SJgOo/mVrd f6q3V2f7ErQB2fhAtHL8JfiRvhBET/zcQz+cA5NXHuMzlWlSCQRdcINYBCW7kKoWI2e2 9DOA== X-Gm-Message-State: AOAM531FjZFETjqQeTn6dkGeNVciLFzh5KZqnTqYjqh59i+dS9400Y/k ZvQkcWUaWtCSxh72AiUn4IPo7+bkH3cp65P/ X-Google-Smtp-Source: ABdhPJzqjqoIR7+cwNL76ARwBP5lsjRaQ2upNcOx9ffwIL/qdOxmezMf2LfoeTIfFMjtU58Vb0lSnA== X-Received: by 2002:a62:ddd4:0:b029:155:af54:3000 with SMTP id w203-20020a62ddd40000b0290155af543000mr5181629pff.64.1603310185280; Wed, 21 Oct 2020 12:56:25 -0700 (PDT) Original-Received: from raman-glaptop.localdomain (c-24-4-174-65.hsd1.ca.comcast.net. [24.4.174.65]) by smtp.gmail.com with ESMTPSA id s186sm3468062pfc.171.2020.10.21.12.56.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Oct 2020 12:56:23 -0700 (PDT) Original-Received: by raman-glaptop.localdomain (Postfix, from userid 13930) id A0F60C21355; Wed, 21 Oct 2020 12:56:22 -0700 (PDT) In-Reply-To: (T. V. Raman's message of "Wed, 21 Oct 2020 08:10:13 -0700") Received-SPF: pass client-ip=2607:f8b0:4864:20::52d; envelope-from=raman@google.com; helo=mail-pg1-x52d.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -175 X-Spam_score: -17.6 X-Spam_bar: ----------------- X-Spam_report: (-17.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:258251 Archived-At: 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:
sis is a test.
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? --=20 Thanks, --Raman =817=A94 Id: kg:/m/0285kf1 =950=DC8