From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.devel Subject: Is this possible/how do I? Date: Tue, 01 Dec 2020 16:47:57 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36516"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 01 16:48:52 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 1kk7tc-0009OT-Mu for ged-emacs-devel@m.gmane-mx.org; Tue, 01 Dec 2020 16:48:52 +0100 Original-Received: from localhost ([::1]:38308 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kk7tb-0006Xa-Ok for ged-emacs-devel@m.gmane-mx.org; Tue, 01 Dec 2020 10:48:51 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39562) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kk7sp-00065m-1Z for emacs-devel@gnu.org; Tue, 01 Dec 2020 10:48:03 -0500 Original-Received: from mail-oln040092066086.outbound.protection.outlook.com ([40.92.66.86]:19110 helo=EUR01-VE1-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 1kk7sn-0004NU-2X for emacs-devel@gnu.org; Tue, 01 Dec 2020 10:48:02 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Nw71un+o4XuHG3L4jEPtO0arGzCSuH/nVgFXQqnu/IEn11sjTOG7weX9unN4MeHkIk+WHABPoDnAJON5x1iynzMvVAJkNgiGlSGOaiCJ2O6jrdHwnW5EeObftCUX0I2FtuZs9nhfU4jxagZzaJEU9FlVQL7gNeJmZ8jn4OtQDFnWn2Xwi7lNEtSo8ZT0EZlZr+kIIG6zw7Z94opuOexhrjpSKfrkcVl1leJGu6CBeFqibybAqB/nCWok0nIbhnNzeljeKCu1G2w2pyk0uNGLeBwxwvCaWZBLf+EfqDlwe7ZuJPDjg/Exv8OQzTPR0ZT7v1JXcaVks46qZla2lZafkg== 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=UJFwdSY+sql7hJ6nvSeZl+6z9ThJMfgii9aMcVfvCQU=; b=cncGDztXbSQJg2S5Y2VldJTOvQGJ0WgiiMmQ/w3OsiFaO7StlIMGzE3Yt3C3H6/CoN+yZE39rF0BMCOiVH3dE3TbqeKwIz1ikSWvwbG73oKeKqbddGuPlZ/Kn/pmL+zLtOlloVjYnBnNUz/rnjJdVy59/DhdRMSkO2h6PeOCrSPyR5tTZYVQyTnvP9Tnft235hTnXJgviU3mUiIULUp230FHtaDvtJ7qJg3kBUzFi9E/T5uIFBOJVZbLe4kD0IFerwODGrt46geiP/wn4jQINcUFQSc8UbsJ2MYGkd/uG6PRkOIc5aMQSbTDgP0r7x1F/PFEHK2LbqvP4N5Ku0DzRw== 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=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UJFwdSY+sql7hJ6nvSeZl+6z9ThJMfgii9aMcVfvCQU=; b=FJel4etWObYymI2g4bK/x6h9j1ENFrhKP4Y0vnyeXgsJI/6y+HeTdhliD8dqU3pz43PIDUB1+JJhd0mKJYFxNiX/vG5zjAgFcbS4lz04g466o5uDvrD/Prq3q3U60aPj5+bx88XeY7UERqUjAys5j4q2cqkYdayrMZmjAXMRo0FR/vY1pKeHeKLa2X4YvbRq48jMPTzX0Jpov/O6V+cl8KvmUBEpOOdJieXd+HSUgjvOrNwiTbQfkmUnadhpHMaEZ6f5m88pwFfQTh02593TY+YMxHPcVDJp5iJz9ICKdX56ORvFvrmu/HPwdKqdbohzvM1sc5oFyOFumHjIXfgNXg== Original-Received: from VE1EUR01FT062.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e19::4e) by VE1EUR01HT118.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e19::380) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3611.23; Tue, 1 Dec 2020 15:47:58 +0000 Original-Received: from AM0PR06MB6577.eurprd06.prod.outlook.com (2a01:111:e400:7e19::4e) by VE1EUR01FT062.mail.protection.outlook.com (2a01:111:e400:7e19::324) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3611.23 via Frontend Transport; Tue, 1 Dec 2020 15:47:58 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:B987608A3AEB0AC10B29331352128C1BACD043EB7C7A2C9FD033F58DDE086D9D; UpperCasedChecksum:0CD27365AABAD2E18DD50B2E432575F15F8F888401E32113C057E8FA201AA426; SizeAsReceived:7163; Count:43 Original-Received: from AM0PR06MB6577.eurprd06.prod.outlook.com ([fe80::9487:8c7d:da00:4993]) by AM0PR06MB6577.eurprd06.prod.outlook.com ([fe80::9487:8c7d:da00:4993%7]) with mapi id 15.20.3611.031; Tue, 1 Dec 2020 15:47:58 +0000 X-TMN: [aYfq97ItDF2444Mu1i8SD6+AT/652YNo] X-ClientProxiedBy: AM6PR08CA0031.eurprd08.prod.outlook.com (2603:10a6:20b:c0::19) To AM0PR06MB6577.eurprd06.prod.outlook.com (2603:10a6:208:19a::23) X-Microsoft-Original-Message-ID: <87zh2x5xzm.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (90.230.29.56) by AM6PR08CA0031.eurprd08.prod.outlook.com (2603:10a6:20b:c0::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.17 via Frontend Transport; Tue, 1 Dec 2020 15:47:57 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 43 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: e125d557-a265-4de3-7f2d-08d8961079c9 X-MS-TrafficTypeDiagnostic: VE1EUR01HT118: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aZBPiGfPIrXCQnwc95/Bfi9OLyoHyl7luTTuuFBM//cPlkCOStD4u7pFjBK4ZdkwgbYxzwDqRL3NS+HW+rbDjS0tqbMU2shveIshCF34b5iqED5rtXR5PjUz5WiSe3YoLfRj9n2phRCmkZDtqIaSf5Ty6cBOosmcuNAzd9x/he2DkHPPCVyw4Wbsz5lSIWJf4m3Nsahp6xTNRiKkUrSYSA== X-MS-Exchange-AntiSpam-MessageData: AQdOl4LxdmfI3SyDBIhUUS1fwBjZijDGIN2kxaG1LmbatG8TwEQf+7jhdDzVQeHKjDdfICVR6R0GgUd5zDJ/z4iSswRhwne06tWimGacfaID6T0Y/llqtKNlehb4SuDs3uJKUP1gSCnumz21gO96ow== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: e125d557-a265-4de3-7f2d-08d8961079c9 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Dec 2020 15:47:58.3012 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: VE1EUR01FT062.eop-EUR01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1EUR01HT118 Received-SPF: pass client-ip=40.92.66.86; envelope-from=arthur.miller@live.com; helo=EUR01-VE1-obe.outbound.protection.outlook.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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:260127 Archived-At: I am trying to font-lock a buffer and append the buffer content to another buffer in different major mode (an org-buffer -> dired buffer). My strategy was to open buffer in temp-buffer; insert content, activate major mode, make it do it's own magic and then just copy text with properties. Yeah, right; no free-lunch seems lilke. The buffer does not seem to be font-locked despite major mode (org-mode) enabled in that buffer. Is font-lock run only when text is displayed i.e. when I switch-to-buffer? 1. Is there any way to get it to font-lock when not displayed? Once both buffered are font-locked; if I turn off font-locking than those text properties are not shown; seems like font-lock has it's own set of text properties? 2. Do I have to copy those, or is there any other way to get those two buffers to be displayed as font-lock, without a particual major mode font-locking active? I am sorry if this is too noob question, it is just lots to read; I have been experimenting, but I am not really into the details of font locking and text properties yet.