From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: [FYI] New emacs-w3m feature: edit html-textareas in Org-mode Date: Tue, 08 Oct 2013 14:52:59 +0200 Message-ID: <87mwmjj55g.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42751) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTWms-0007rv-QU for emacs-orgmode@gnu.org; Tue, 08 Oct 2013 08:53:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VTWmm-0007Ba-5l for emacs-orgmode@gnu.org; Tue, 08 Oct 2013 08:53:18 -0400 Received: from plane.gmane.org ([80.91.229.3]:49222) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTWml-0007BA-Vb for emacs-orgmode@gnu.org; Tue, 08 Oct 2013 08:53:12 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VTWmk-0004K9-SF for emacs-orgmode@gnu.org; Tue, 08 Oct 2013 14:53:10 +0200 Received: from g231104168.adsl.alicedsl.de ([92.231.104.168]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Oct 2013 14:53:10 +0200 Received: from tjolitz by g231104168.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Oct 2013 14:53:10 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi List, if you get the newest CVS version of emacs-w3m #+begin_src sh % cvs -d :pserver:anonymous@cvs.namazu.org:/storage/cvsroot login CVS password: # No password is set. Just hit Enter/Return key. % cvs -d :pserver:anonymous@cvs.namazu.org:/storage/cvsroot co emacs-w3m #+end_src you can now toggle the major-mode of textarea edit-buffers between text-mode and org-mode with 'M-x w3m-form-textarea-toggle-major-mode'. When you activate the use of Org-mode, a full-size Org-mode edit-buffer in the same (sensibly-splitted) Emacs window (with the text of the clicked html textarea) will be offered in 'show-all' state for editing - instead of a minimal edit-buffer in text-mode. In that buffer, minor-mode `w3m-form-input-textarea-mode' will be activated (with a special minor-mode keymap that avoids clashes with Org-mode's keybindings) offering the following commands: ,----------------------------------------------------------- | W3m-Form-Input-Textarea minor mode (no indicator): | | Minor mode to edit form textareas of w3m. | | C-c C-c Set the value and exit from this textarea. | C-c C-k Exit from this textarea without setting the value. | C-x C-s Save editing data in this textarea. `----------------------------------------------------------- The default keybindings above (text-mode) are replaced with ,-------------------------------------------------------------------- | M-# c Set the value and exit from this textarea. | M-# k (or M-# q) Exit from this textarea without setting the value. | M-# s Save editing data in this textarea. `-------------------------------------------------------------------- when the textarea edit-buffer is in org-mode. Other attempts to make emacs-w3m and Org-mode work together are cited in the [[http://www.emacswiki.org/emacs/emacs-w3m][Emacs Wiki]]. PS Here is the ChangeLog entry for the new emacs-w3m feature described above: ,------------------------------------------------------------------------- | 2013-10-07 Thorsten Jolitz | * w3m-form.el (w3m-form-input-textarea-mode-setup): New option for | setting up the textarea input buffer in org-mode instead of text-mode. | | (w3m-form-input-textarea-org-mode-map) New minor-mode-map. | (w3m-form-textarea-use-org-mode-p) New variable. | (w3m-form-textarea-toggle-major-mode) New function. | (w3m-form-input-textarea-mode-setup) Setup textarea edit buffer with | major-mode 'org-mode if `w3m-form-textarea-use-org-mode-p' is non-nil. | (w3m-form-input-textarea) Split window sensibly if | `w3m-form-textarea-use-org-mode-p' is non-nil. | (w3m-form-input-textarea-mode) Override default minor-mode map with | new minor-mode-map in case major-mode is 'org-mode. `------------------------------------------------------------------------- -- cheers, Thorsten