From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 1cJbCpOxi2CWGQEAgWs5BA (envelope-from ) for ; Fri, 30 Apr 2021 09:28:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id iLgFBZOxi2BAQQAAbx9fmQ (envelope-from ) for ; Fri, 30 Apr 2021 07:28:19 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1890D1D1FA for ; Fri, 30 Apr 2021 09:28:18 +0200 (CEST) Received: from localhost ([::1]:42506 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcNZR-0008D0-5m for larch@yhetil.org; Fri, 30 Apr 2021 03:28:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54686) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcNWf-0005PW-OA for emacs-orgmode@gnu.org; Fri, 30 Apr 2021 03:25:25 -0400 Received: from mail-oln040092253080.outbound.protection.outlook.com ([40.92.253.80]:35475 helo=APC01-SG2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcNWb-0007dY-ON for emacs-orgmode@gnu.org; Fri, 30 Apr 2021 03:25:24 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=b9Y1Fjqrh2diQREqknphbha3T4tf7vCMgUkhXWNX4VzAegspv+xcOskkMCaQeqA7nLmvzKfiNfbX08Q98Zl1BjE4hdYI9GPEt5NTk9HG79cl5zSn0Ba3mFDQymEzAo/YwjgPMtW0uwnFcaGdghS2xAaN676EmaCWqjodL4izFmSVM31U5Wq9VEBeudDLk9PAIrRZFJjmSXDOuWFDaH+Ng8fD8hHmGmvFmOOoGZeb/swZ05VNr5jpEl6jEat6qCYT1YJsPiYmIl9jL5dXFEVF6Ben3hj5IL8x3JHJMendJscQAnRiDCmyE3w7eh6Hgt667tZ8xhanHTd28z5E0jv5uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ONCo69rWnjtr+/sQ8qMJPz6Fs0RNzDfzkPDeVx7T4p0=; b=ct8BotdpXcW0JM99sy4KPVu2pocvYkAHRSBG+6OTth8RTW+n4f2ZwdToMCFOTGc7TuxwKxRI1H9TtYeq5agraFYsZLbRhRWtc1d6JChItsuowtmow/Z3k2kb3HyHe7Kbo21Q8BemB+C+b1C005G7ftY2kW0NaG0cUEx60tcVpwsA/9m5Hv6OvHaGbVyk+YypzcDajRPQ37r55RiHsvhNiTVIRgMxx56Ehj/xdhc+RS2l37MsHFA7vmAOdrQ2I7h/BVSZ+Ok3iwS6n305TAPjo5InX8pVuUMGnmw+RJSyFRjHpopr7sUALZXQSHVymaobbqhXlXkNnRUPz+8075pPmg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ONCo69rWnjtr+/sQ8qMJPz6Fs0RNzDfzkPDeVx7T4p0=; b=kgqElcCTAprgpQX97x9xPNyl9aSXwoEpcN9UPtefCpqNwQqCdo/cKjPD7v38yklpFHPzqvTroODea3zWfmFbw+btP8cOX7Lg2MOpNTyN9NZqO4k4xsIxPfw/hl//seKWx874xSPE75CEQBqVSDilroZSyULjxl7+RW9hU3Ddk+ufedPJ3dzebuhXIRf3+owQgwO+M1WI/Kfk8bqBq2rIDISTKup2EIC0IiEgVlUQF5mrCdwxiALT6Z3fgBV++DAjt3iJr0q/t9Z/oCFqv7VzFOH/wucRGMUg5iDlQ1jlNIFFzkQMRiMsEW7l7TkNYLtyC3JpVq9n8YDSzO+Q4JNKVA== Received: from TY2PR0101MB3693.apcprd01.prod.exchangelabs.com (2603:1096:404:800f::16) by TY2PR0101MB2224.apcprd01.prod.exchangelabs.com (2603:1096:404:5c::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.21; Fri, 30 Apr 2021 07:25:16 +0000 Received: from TY2PR0101MB3693.apcprd01.prod.exchangelabs.com ([fe80::4980:4d7f:474b:de2c]) by TY2PR0101MB3693.apcprd01.prod.exchangelabs.com ([fe80::4980:4d7f:474b:de2c%3]) with mapi id 15.20.4065.030; Fri, 30 Apr 2021 07:25:16 +0000 To: "emacs-orgmode@gnu.org" From: Ramesh Nedunchezian Subject: Additional indices in TexInfo exporter: FR or may be just a note ... Message-ID: Date: Fri, 30 Apr 2021 12:55:11 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TMN: [VmOevm6I0jwCf+t2zRur+MTcHcL5qNbEphRjOipPwpNlErF7HDGBPsekYnRvbjYf] X-ClientProxiedBy: MA1PR0101CA0035.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:22::21) To TY2PR0101MB3693.apcprd01.prod.exchangelabs.com (2603:1096:404:800f::16) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [IPv6:2401:4900:2723:28b8:4a50:c38:27e4:18e2] (2401:4900:2723:28b8:4a50:c38:27e4:18e2) by MA1PR0101CA0035.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:22::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4087.27 via Frontend Transport; Fri, 30 Apr 2021 07:25:15 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 24005052-8307-4e8d-7812-08d90ba919a9 X-MS-TrafficTypeDiagnostic: TY2PR0101MB2224: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 30NUIO4Yw9lXoalAfnlWM56KsUD2Xx+UPl0u2sMIcVOVet5rDvakdBcJ/5ukMqLD0t5lnhsn5X+o1reWqfHnssSYeqY9rgZOEI5MwZ6J7OnW/vGKQdjDt+MAw507a+Itur2domVz4+rjr9F3enZFrWwX1lzffFrSOh6gpoxXePEWXJ8lhhfHS2IBEnY+BX4PtWlz79fI0db396omBKEfwG6VOB+O63hor+TxCvi1TOOYa8Q9PGKBhyktI9HL2mXh1lKqh7961H7jeT53NxBNyNcVnbq7b3tass0wbhKCn0WtkYTegm4VZF5yreYXp9bLa8AhQkJ6stXippOHcP3hDI1YKghMhwSKTJ2hBsG9rtEsN3G/BTAv90bgvutHEMhXSPWRGg5x6sboyzjO5MuV966O7lPKzja9zdGYGwFByJE= X-MS-Exchange-AntiSpam-MessageData: zcs4oTQDU+GXeWWozRTj4c2JvEsckflwmoT42uv/b1+JoPnBsDzyCvowILSN0Ccf6hx86gcLl/nfwE8RGQpian6CZhtFrtWTvuB5I+Zo/+Jan2dpo2HKwL1bcKbWvu+U8K+AXwFp6uRv1W3KncClRdON2yCT5jmmPwQJbdN4+qd/Q0UWRLYSi52MMpEgpnDZviKHTM9oP1xK9dXmaf/xlw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 24005052-8307-4e8d-7812-08d90ba919a9 X-MS-Exchange-CrossTenant-AuthSource: TY2PR0101MB3693.apcprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Apr 2021 07:25:16.2310 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY2PR0101MB2224 Received-SPF: pass client-ip=40.92.253.80; envelope-from=rameshnedunchezian@outlook.com; helo=APC01-SG2-obe.outbound.protection.outlook.com X-Spam_score_int: 21 X-Spam_score: 2.1 X-Spam_bar: ++ X-Spam_report: (2.1 / 5.0 requ) BAYES_40=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619767698; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ONCo69rWnjtr+/sQ8qMJPz6Fs0RNzDfzkPDeVx7T4p0=; b=DOwF9WqOX0LaJKJSRn8y5vr649laL/auBAkrI5yZllju5LhY7BemsqoTmwEFUygxB4an31 hiaPhYogRhnx+p6cZU4lGd1WUgOnO0jSIDLRA2VkcQpU4k+kByFxag5ak4dAwk3Nc2J9H9 c99cZSNHK8wKGLYeXGWjRknhxHL75f3kktl4QbZVKHQiXxYZT+z8kF8w5dkrpRhpHbx1LN EP5QLajOYrKMKRwXqNhxd2oIU3s8cmYXdRl93oRtrKnvJ/aB5q1eNUUGZ9FA0dxjQ5S0P+ XS0hUnB95piUgoQKhZtZj6DlSakLBU9eE3teTkiI/+2K8LIwsMLg0oJAy/wAoA== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1619767698; a=rsa-sha256; cv=pass; b=Z4Uy0Smqww/Y9u8RyV60K8pRrdyzIsQ2ebsS9K0wT+3WG3JrMc0w/0AkYhKdhThQjbFiEn G43eQ2bk/XR3OIMnpaLy4v/072FRltew+dyfokLUjirhitfKh1iydJHSzjtzzKiU+9oqbe SwmsNwJhgeC5LQor/zkEFxZ6gk/LOUi15ERssCLmbtl7+F6ez7QsUCgYxP3y6VxufGCpDV 3oFm8MXpLz4mc/8U0Yl1Izq1Lyiqyd7XNcx2l/Uu3onasCC0YPM6GdM3bPmoK8Eufvj/EH Bl2xpXCm2vrK8ZDPr3+hWDqP5guG9FgTyc3CONr/6b2uu9mgrw+Oe/Irwz5MvA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=outlook.com header.s=selector1 header.b=kgqElcCT; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.66 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=outlook.com header.s=selector1 header.b=kgqElcCT; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=outlook.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 1890D1D1FA X-Spam-Score: -2.66 X-Migadu-Scanner: scn0.migadu.com X-TUID: rhNXxU6WFfw5 TLDR: 1. (May be) support for additional indices in TexInfo exporter. 2. Use `info' function--as opposed to `info' binary--to open an exported INFO file. IOW, don't use `org-open-file', but use `info' function directly. (2) would be nice to have. ---------------- I had a need to create an index of EIEIO classes in =helm= package. See (info "(texinfo) New Indices") I had to customize the default TexInfo exporter to achieve this end. You can see the end result here: https://rnchzn.github.io/helm/doc/helm-classes.html#Class-Index This is what I did to create the additional index. (defun org-texinfo-keyword+ (keyword contents info) (let* ((v (org-element-property :value keyword)) (k (org-element-property :key keyword)) (c (org-texinfo-keyword keyword contents info))) (if c c (when (string-match "\\(?:\\`\\(?1:.+\\)INDEX\\'\\)" k) (format "@%sindex %s" (downcase (match-string 1 k)) v))))) (defun org-texinfo-export-to-texinfo+ () (interactive) (let ((outfile (org-export-output-file-name ".texi")) (org-export-coding-system org-texinfo-coding-system)) (org-export-to-file 'my-texinfo outfile))) (org-export-define-derived-backend 'my-texinfo 'texinfo :translate-alist '((keyword . org-texinfo-keyword+))) Since I had to do multiple edit, compile, preview passes, I also created the following "make-shift" command to make the process more easier. (global-set-key (kbd "") (defun make-shift () (interactive) (let* ((info-buf-name (format "*info: %s*" (file-name-sans-extension (file-name-nondirectory (buffer-file-name)))))) (when-let ((info-buf (get-buffer info-buf-name))) (kill-buffer info-buf)) (info (org-texinfo-compile (org-texinfo-export-to-texinfo+)) info-buf-name))))