From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Leo Butler Newsgroups: gmane.emacs.help Subject: Re: Screenshots, frame shots straight from Emacs Date: Tue, 20 Jul 2021 12:42:31 -0500 Message-ID: <87pmvcdgqg.fsf@t14.reltub.ca> References: <87sg1dgbbk.fsf@omarpolo.com> <87pmwhg843.fsf@omarpolo.com> <8735t96mxj.fsf@omarpolo.com> <87pmw961ox.fsf@zoho.eu> <874kcpxln9.fsf@logand.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7837"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Tomas Hlavaty Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 20 19:49:43 2021 Return-path: Envelope-to: geh-help-gnu-emacs@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 1m5tsE-0001sQ-J9 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 20 Jul 2021 19:49:42 +0200 Original-Received: from localhost ([::1]:59112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m5tsD-0000FR-Jy for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 20 Jul 2021 13:49:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5tqH-0006uO-HL for help-gnu-emacs@gnu.org; Tue, 20 Jul 2021 13:47:42 -0400 Original-Received: from mail-to1can01on072e.outbound.protection.outlook.com ([2a01:111:f400:fe5d::72e]:64880 helo=CAN01-TO1-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 1m5tqE-0006Jv-LW for help-gnu-emacs@gnu.org; Tue, 20 Jul 2021 13:47:40 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Tt4gDdMbSCOP9NMOYYp4nypoYew1EIh7f+/PLiUxQpCUrG42HYKHSP0nHXoNnGtpgb+ozSH9eOimbcHDseZ1LqIDsiDdLz1q0qeS5DbUGYfZXNkeslI940pcWttz6kx45LFnqZpjOg1KXjXyNs8JbWZjk4q3YPqLMs4aZYest4Jp40Gwuk8xmXHotiR0tVNXpEpF1NLq/xVp+vJ1zbGIH3K5edFwilcZ6/pwjT+oaLH/YNDruWMcUSd3ftDwfkRXtJYZ4YUgpjQfZqECcoPS8w3x3P8SvMsSPzHPFZQMY/h8wEaL6BtttBVpP/Wq8z0T5zF3Y+uOGY+GZD+SPWhlxg== 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=afPRS1W7VOK+1uaZYN8U86MhKJsuGfRd9ctZYnZWp3o=; b=VFo1d5MHfMXAVC0mDAuI4pZpb+7RDjJ0jgH/q69Qp1GMYf+JYibdVhu+RMMCiOL/+yQHa43P1J/I9BQ+FQpgdc4CKUCryXg9QhrVR6v6z064V7E41wBI96K4YqoQ0i7cBRVTXpIEeqX5Sgu8Ht+SGH8Pe6TFYp+xzOzPFgH7HiwMcv9oSDJXi/4cFEPmgdMxF/4DOyqnfqEC0vgWL6SU+hsVr1P3DpCXfc6Mf1D1iaSBjjIagjPAk2/9Td3rWaMK8N91pv6wBR7jmLBPUh9+1YygMGnKfn+JvjeQFSYoEKYmYyYDp/hmcnvHDdkKEAVH+PpUTh6Hdnu8zMsWZgqJ/w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=umanitoba.ca; dmarc=pass action=none header.from=umanitoba.ca; dkim=pass header.d=umanitoba.ca; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umanitoba.onmicrosoft.com; s=selector2-umanitoba-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=afPRS1W7VOK+1uaZYN8U86MhKJsuGfRd9ctZYnZWp3o=; b=IDtscxzGSh9fkQ+bZHgLDwGSA5ieeptHX/uZBGRg03FU7W2KvIvYAbnRHomeP3o851sLJQp/D/A/juewL30dKi650mk9hksKi8C0ciFPCvW8H0J3vKHw/fUu8712FwV5TT59CRFE/znpSNQdtlZI/WtM/euoEI1Zajy2oFypiDk= Authentication-Results: gnu.org; dkim=none (message not signed) header.d=none;gnu.org; dmarc=none action=none header.from=umanitoba.ca; Original-Received: from YTBPR01MB3053.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:21::31) by YT1PR01MB2825.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:9::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.23; Tue, 20 Jul 2021 17:42:34 +0000 Original-Received: from YTBPR01MB3053.CANPRD01.PROD.OUTLOOK.COM ([fe80::b926:b079:6737:7770]) by YTBPR01MB3053.CANPRD01.PROD.OUTLOOK.COM ([fe80::b926:b079:6737:7770%5]) with mapi id 15.20.4331.034; Tue, 20 Jul 2021 17:42:34 +0000 In-Reply-To: <874kcpxln9.fsf@logand.com> (Tomas Hlavaty's message of "Tue, 20 Jul 2021 13:36:10 +0200") X-ClientProxiedBy: MWHPR21CA0063.namprd21.prod.outlook.com (2603:10b6:300:db::25) To YTBPR01MB3053.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:21::31) X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from t14 (130.179.244.45) by MWHPR21CA0063.namprd21.prod.outlook.com (2603:10b6:300:db::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.0 via Frontend Transport; Tue, 20 Jul 2021 17:42:33 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5f81366e-5393-4fc3-9bb2-08d94ba5c1ed X-MS-TrafficTypeDiagnostic: YT1PR01MB2825: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:962; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: K/SQjw0pYOJIFFW/L01+LqXVhaism2uyvWpbR+ToaMJAc7uUjn9QB4WAwH2xWabOI9pfKILF3vw8qUOUUJG6CXWu/zbDobJV7Hy5AiA1rFtTkQaUR2fHwg6ET4hgkO2mNE93+NGE2QB7AjNcBA0vdOt2nZ4Qzjmf03Gng3SRmUc7LmORPfL5jjQguO9zA+aquFNLw8heY9RQ0xCVMzqF4Q/TNVH7g9mC1WWRJeoKlcCUvqBXeIZ5ncOd4lLqPcLicsXI+zN3cJZhdLpN6A5tEQ/t6GmdTgprN7owHOM7ljnfCklb4ePOdsnFFc1C/S5+ZBF+frLLq0VDMulVOaY8bv7pAMOMmV/GXIy9780xPZaBhTfQQah4iS+mhPEAyc0ASAvAd2K+W10hMUDQASNq5PpR1yx/6zs44DdNtXd/7qMyflnPCG0jt08Bl6NUgSts5Jxh4RZY7t+PjIuBroggO4nPbLmqGs84B+qGKEZlhK7/+d4EJZXbq8nKDjbwQkjwsiJHI3y/dPAe9yE4zk5BnO9BM5L8bQAZMIoPEdTLjEoDFFcj6Hzbs2haIKCym+wmCiw17aW0PF0UR/IRDVwj7BZlEL/uph7JmuvZyEzTlTYT0GweZHOedIWQonkTGTpy4watSJJHCxaD2V+Rhdps62v0i8HgVJcB/+mwm2vEbWEtI3d1wKW64PoSRFQlrnbR X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:YTBPR01MB3053.CANPRD01.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(376002)(39860400002)(136003)(396003)(346002)(366004)(66946007)(956004)(478600001)(6496006)(9686003)(66616009)(5660300002)(66476007)(4326008)(66556008)(2906002)(52116002)(86362001)(786003)(316002)(8936002)(186003)(38350700002)(38100700002)(26005)(44832011)(6916009)(6486002)(966005)(8676002)(235185007)(83380400001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?ayry22w4V8rv+wsZTiXm+f6Jn3YQKOqjT4P9+Y/xpAY6aINLWFhqxMzrM0cn?= =?us-ascii?Q?3bbUyIVHwLASpUTgtAiPa7Qj7foVMpgZUfogMKbW3U6kdKsJGIsPfylxbWM/?= =?us-ascii?Q?9jNoop37ylkk92DhkMj98glvHVae3aoweabiL1Eq4l/+JMErkiIPWOltzi6r?= =?us-ascii?Q?8pLrUQUt0Q8ej2Wk/e7FM4awgeeyHbfczwV3QdWuaq0gRodbzbJung+tEJ/f?= =?us-ascii?Q?J6r9H/9uvJ9pA/TjMvJhWct/u5Z9j7dJ4/qwddoQxeKx0PHD3mjY7a1AFjrW?= =?us-ascii?Q?CXgEBWXQZpmL173LgMrK/3Jkn44cr/GY2vKFeF/E3hsGpo8nbFLSKLTlcN+j?= =?us-ascii?Q?dl+0rYOvR0A/xQsDKqvSqcRgtAW5H2XYAQLaVWwCF3vPTjLkipWMGb08Z43K?= =?us-ascii?Q?2rWZ/8uGusk5qZzcRZnaXLzVOKm1t8lQf5PlH3zWThwIScZ5BeQPObIYhrUz?= =?us-ascii?Q?1+dqbYty5XwbkgVN6OzXG6OjTxN45XNVKt23KquT9yXNh99riF4gAOHVZNaw?= =?us-ascii?Q?QMIuXIkQoZ6qIWB2xqSSOovgL/XTkZcYyyCo8Nh7aRS1JQ1CFjVqCHBMltpa?= =?us-ascii?Q?Z9M9gO/nP3DoV/C9WjErZM/iIxuPznut7t4Rmo8w+WprQq/yftNjeHs3lWNu?= =?us-ascii?Q?eo X-OriginatorOrg: umanitoba.ca X-MS-Exchange-CrossTenant-Network-Message-Id: 5f81366e-5393-4fc3-9bb2-08d94ba5c1ed X-MS-Exchange-CrossTenant-AuthSource: YTBPR01MB3053.CANPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2021 17:42:34.6666 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4f80dd0b-338c-4e4c-8a14-90446962f7b8 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: FCnQ2bHmVHWoOi7yHimBPJiztiBctCm3DPwtwS/cAgLkRWnb4zSedDTtWBdUHC7BT5WK1jSZLkaW7j/WG9Me6Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: YT1PR01MB2825 Received-SPF: pass client-ip=2a01:111:f400:fe5d::72e; envelope-from=Leo.Butler@umanitoba.ca; helo=CAN01-TO1-obe.outbound.protection.outlook.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, MSGID_FROM_MTA_HEADER=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:131892 Archived-At: --=-=-= Content-Type: text/plain Tomas Hlavaty writes: > this one works with plain console emacs: > https://logand.com/sw/emacs-framebuffer/file/emacs-framebuffer.el.html#l755 Nice. I have not tried it yet, but I do notice that https://logand.com/sw/emacs-framebuffer/file/emacs-framebuffer.el.html#l28 requires cl. Also, when byte-compiling the file, I ran into 3 warnings which are easy to correct (see attached). I still haven't got it working, but I think that is due to user error. Leo --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=patch diff --git a/emacs-framebuffer.el b/emacs-framebuffer.el index ce9334e..e339a4f 100644 --- a/emacs-framebuffer.el +++ b/emacs-framebuffer.el @@ -25,7 +25,7 @@ ;;; (require 'emacs-framebuffer) ;;; (framebuffer-install) -(require 'cl) +(require 'cl-lib) (defcustom framebuffer-w3mimgdisplay-program nil "Specify the path to w3mimgdisplay program." @@ -201,6 +201,9 @@ (framebuffer-file-exists-p "/usr/lib/w3m/w3mimgdisplay") ;; debian10 "w3mimgdisplay")) +(make-variable-buffer-local + (defvar framebuffer-image-mode-current-page)) + (defun framebuffer-draw (x y w h sx sy sw sh file) (setq file (framebuffer-cache-remote file)) (let ((format (framebuffer-file-format file))) @@ -465,8 +468,6 @@ (defvar framebuffer-image-mode-image-size)) (make-variable-buffer-local (defvar framebuffer-image-mode-npages)) -(make-variable-buffer-local - (defvar framebuffer-image-mode-current-page)) (make-variable-buffer-local (defvar framebuffer-image-mode-scale)) (make-variable-buffer-local @@ -663,7 +664,7 @@ (integer (let* ((m (mod sec 3600)) (s (mod m 60))) - (format "%d:%02d:%02d" (floor position 3600) (floor (- m s) 60) s))))) + (format "%d:%02d:%02d" (floor sec 3600) (floor (- m s) 60) s))))) (defun framebuffer-fbmpv (filename &optional position) (suspend-emacs --=-=-=--