From unknown Wed Aug 20 04:11:46 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#6219 <6219@debbugs.gnu.org> To: bug#6219 <6219@debbugs.gnu.org> Subject: Status: Lauching nroff command from nroff-mode Reply-To: bug#6219 <6219@debbugs.gnu.org> Date: Wed, 20 Aug 2025 11:11:46 +0000 retitle 6219 Lauching nroff command from nroff-mode reassign 6219 emacs submitter 6219 Masatake YAMATO severity 6219 wishlist tag 6219 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Wed May 19 09:13:30 2010 Received: (at submit) by debbugs.gnu.org; 19 May 2010 13:13:31 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OEj5V-0002cN-JH for submit@debbugs.gnu.org; Wed, 19 May 2010 09:13:30 -0400 Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OEi7o-0002Bk-T0 for submit@debbugs.gnu.org; Wed, 19 May 2010 08:11:50 -0400 Received: from lists.gnu.org ([199.232.76.165]:56478) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OEi6D-00063g-V0 for submit@debbugs.gnu.org; Wed, 19 May 2010 08:10:10 -0400 Received: from [140.186.70.92] (port=59799 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OEgbY-0008FC-A8 for bug-gnu-emacs@gnu.org; Wed, 19 May 2010 06:34:25 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OEgbW-0007wF-C0 for bug-gnu-emacs@gnu.org; Wed, 19 May 2010 06:34:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:63055) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OEgbV-0007w0-WF for bug-gnu-emacs@gnu.org; Wed, 19 May 2010 06:34:22 -0400 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o4JAYKuv015437 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 19 May 2010 06:34:20 -0400 Received: from localhost (beach.nrt.redhat.com [10.64.200.71]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o4JAYI5N011714 for ; Wed, 19 May 2010 06:34:19 -0400 Date: Wed, 19 May 2010 19:32:47 +0900 (JST) Message-Id: <20100519.193247.174666647357430990.yamato@redhat.com> To: bug-gnu-emacs@gnu.org Subject: Lauching nroff command from nroff-mode From: Masatake YAMATO Organization: Red Hat Japan, Inc. Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.67 on 10.5.11.18 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -3.3 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 19 May 2010 09:13:27 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.3 (-----) This is not a bug report. This a request to review a patch to include the official emacs source tree. This patch provides the way to nroff-mode user to preview one's document quickly. 2010-04-04 Masatake YAMATO * textmodes/nroff-mode.el (nroff-preview-as-man-page): Add new function. (nroff-mode-map): Put `nroff-preview-as-man-page' to the key map and menu map. === modified file 'lisp/textmodes/nroff-mode.el' --- lisp/textmodes/nroff-mode.el 2010-01-13 08:35:10 +0000 +++ lisp/textmodes/nroff-mode.el 2010-04-04 21:14:58 +0000 @@ -55,6 +55,7 @@ (define-key map "\n" 'nroff-electric-newline) (define-key map "\en" 'nroff-forward-text-line) (define-key map "\ep" 'nroff-backward-text-line) + (define-key map "\C-c\C-c" 'nroff-preview-as-man-page) (define-key map [menu-bar nroff-mode] (cons "Nroff" menu-map)) (define-key menu-map [nn] '(menu-item "Newline" nroff-electric-newline @@ -73,6 +74,9 @@ nroff-electric-mode :help "Auto insert closing requests if necessary" :button (:toggle . nroff-electric-mode))) + (define-key menu-map [npm] + '(menu-item "Preview as man page" nroff-preview-as-man-page + :help "Run man on this file.")) map) "Major mode keymap for `nroff-mode'.") @@ -301,6 +305,15 @@ :lighter " Electric" (or (derived-mode-p 'nroff-mode) (error "Must be in nroff mode"))) +(defun nroff-preview-as-man-page () + "Run man on this file." + (interactive) + (require 'man) + (let* ((file (buffer-file-name))) + (if file + (Man-getpage-in-background file) + (error "No associated file for the current buffer")))) + ;; Old names that were not namespace clean. (define-obsolete-function-alias 'count-text-lines 'nroff-count-text-lines "22.1") (define-obsolete-function-alias 'forward-text-line 'nroff-forward-text-line "22.1") From debbugs-submit-bounces@debbugs.gnu.org Thu May 20 11:06:02 2010 Received: (at 6219) by debbugs.gnu.org; 20 May 2010 15:06:02 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OF7Jy-0005su-OA for submit@debbugs.gnu.org; Thu, 20 May 2010 11:06:02 -0400 Received: from pantheon-po38.its.yale.edu ([130.132.50.97]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OF7Jx-0005sY-6i for 6219@debbugs.gnu.org; Thu, 20 May 2010 11:06:01 -0400 Received: from furry (dhcp128036014213.central.yale.edu [128.36.14.213]) (authenticated bits=0) by pantheon-po38.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o4KF5u9A005911 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 20 May 2010 11:05:56 -0400 Received: by furry (Postfix, from userid 1000) id 50772C057; Thu, 20 May 2010 11:05:56 -0400 (EDT) From: Chong Yidong To: Masatake YAMATO Subject: Re: bug#6219: Lauching nroff command from nroff-mode References: <20100519.193247.174666647357430990.yamato@redhat.com> Date: Thu, 20 May 2010 11:05:56 -0400 In-Reply-To: <20100519.193247.174666647357430990.yamato@redhat.com> (Masatake YAMATO's message of "Wed, 19 May 2010 19:32:47 +0900 (JST)") Message-ID: <87632imx4b.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 6219 Cc: 6219@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) Masatake YAMATO writes: > This patch provides the way to nroff-mode user to preview one's > document quickly. Thanks, it seems to work well. I suggest making the keybinding C-c C-v instead of C-c C-c, and renaming the command `nroff-view'. This would make it more similar to Tex mode's `tex-view' command. What do you think? From debbugs-submit-bounces@debbugs.gnu.org Thu May 20 23:58:21 2010 Received: (at 6219) by debbugs.gnu.org; 21 May 2010 03:58:23 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFJNN-0003jA-Cm for submit@debbugs.gnu.org; Thu, 20 May 2010 23:58:21 -0400 Received: from mx1.redhat.com ([209.132.183.28]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFIt6-0003X1-2i for 6219@debbugs.gnu.org; Thu, 20 May 2010 23:27:05 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o4L3QwW4005056 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 20 May 2010 23:26:59 -0400 Received: from localhost (beach.nrt.redhat.com [10.64.200.71]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o4L3Qvlv022071; Thu, 20 May 2010 23:26:57 -0400 Date: Fri, 21 May 2010 12:25:13 +0900 (JST) Message-Id: <20100521.122513.117368523978025855.yamato@redhat.com> To: cyd@stupidchicken.com Subject: Re: bug#6219: Lauching nroff command from nroff-mode From: Masatake YAMATO In-Reply-To: <87632imx4b.fsf@stupidchicken.com> References: <20100519.193247.174666647357430990.yamato@redhat.com> <87632imx4b.fsf@stupidchicken.com> Organization: Red Hat Japan, Inc. Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-Spam-Score: -8.5 (--------) X-Debbugs-Envelope-To: 6219 X-Mailman-Approved-At: Thu, 20 May 2010 23:58:18 -0400 Cc: 6219@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -9.1 (---------) > Masatake YAMATO writes: > >> This patch provides the way to nroff-mode user to preview one's >> document quickly. > > Thanks, it seems to work well. > > I suggest making the keybinding C-c C-v instead of C-c C-c, and renaming > the command `nroff-view'. This would make it more similar to Tex mode's > `tex-view' command. What do you think? Thank you for reviewing my patch. About the key binding I agree with you. I use nroff only for reading man page included in source codes. So I'm not sure whether renaming the command to `nroff-view' is good or not, but I think we should choose the name `nroff-view' now. If someone complains about the command is man specific, we can make it customizable. From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 31 14:03:26 2010 Received: (at 6219) by debbugs.gnu.org; 31 Aug 2010 18:03:26 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OqVB7-0000sW-Nc for submit@debbugs.gnu.org; Tue, 31 Aug 2010 14:03:26 -0400 Received: from pantheon-po15.its.yale.edu ([130.132.50.71]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OqVB5-0000sQ-Ex for 6219@debbugs.gnu.org; Tue, 31 Aug 2010 14:03:24 -0400 Received: from furry (dhcp128036014154.central.yale.edu [128.36.14.154]) (authenticated bits=0) by pantheon-po15.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o7VI51H9018083 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 31 Aug 2010 14:05:01 -0400 Received: by furry (Postfix, from userid 1000) id D1EBF16D402; Tue, 31 Aug 2010 14:05:01 -0400 (EDT) From: Chong Yidong To: Masatake YAMATO Subject: Re: bug#6219: Lauching nroff command from nroff-mode References: <20100519.193247.174666647357430990.yamato@redhat.com> Date: Tue, 31 Aug 2010 14:05:01 -0400 In-Reply-To: <20100519.193247.174666647357430990.yamato@redhat.com> (Masatake YAMATO's message of "Wed, 19 May 2010 19:32:47 +0900 (JST)") Message-ID: <87y6bmu08i.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 6219 Cc: 6219@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) Masatake YAMATO writes: > 2010-04-04 Masatake YAMATO > > * textmodes/nroff-mode.el (nroff-preview-as-man-page): Add new function. > (nroff-mode-map): Put `nroff-preview-as-man-page' to the key map and > menu map. I've checked your patch into the repository. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 31 14:04:05 2010 Received: (at control) by debbugs.gnu.org; 31 Aug 2010 18:04:05 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OqVBl-0000t5-3U for submit@debbugs.gnu.org; Tue, 31 Aug 2010 14:04:05 -0400 Received: from pantheon-po44.its.yale.edu ([130.132.50.78]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OqVBk-0000sf-4a for control@debbugs.gnu.org; Tue, 31 Aug 2010 14:04:04 -0400 Received: from furry (dhcp128036014154.central.yale.edu [128.36.14.154]) (authenticated bits=0) by pantheon-po44.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o7VI5gTo001191 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 31 Aug 2010 14:05:42 -0400 Received: by furry (Postfix, from userid 1000) id E242016D402; Tue, 31 Aug 2010 14:05:42 -0400 (EDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 6219 Date: Tue, 31 Aug 2010 14:05:42 -0400 Message-ID: <87pqwyodxl.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) close 6219 thanks From unknown Wed Aug 20 04:11:46 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 29 Sep 2010 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator