From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Pascal J. Bourguignon" Newsgroups: gmane.emacs.devel Subject: Re: Emacs as word processor / Text Properties Date: Tue, 26 Nov 2013 20:48:36 +0100 Organization: Informatimago Message-ID: <87ob57rlkb.fsf_-_@informatimago.com> References: <87vbzqfgd6.fsf@uwakimon.sk.tsukuba.ac.jp> <83vbzkcx20.fsf@gnu.org> <83d2lrczi7.fsf@gnu.org> <8338mmcsd9.fsf@gnu.org> <83txf1blf2.fsf@gnu.org> <87txf133yd.fsf@zigzag.favinet> <83r4a5bj5x.fsf@gnu.org> <87mwktdy6r.fsf@uwakimon.sk.tsukuba.ac.jp> <83iovhb0ez.fsf@gnu.org> <87k3fxdpmg.fsf@uwakimon.sk.tsukuba.ac.jp> <837gbwbcsx.fsf@gnu.org> <87d2lnevq7.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1385495401 27647 80.91.229.3 (26 Nov 2013 19:50:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Nov 2013 19:50:01 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 26 20:50:07 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VlOe5-0008VU-TV for ged-emacs-devel@m.gmane.org; Tue, 26 Nov 2013 20:50:06 +0100 Original-Received: from localhost ([::1]:60695 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlOe5-0004OF-IL for ged-emacs-devel@m.gmane.org; Tue, 26 Nov 2013 14:50:05 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36166) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlOdw-0004Mn-Rc for emacs-devel@gnu.org; Tue, 26 Nov 2013 14:50:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VlOdr-0006U8-0v for emacs-devel@gnu.org; Tue, 26 Nov 2013 14:49:56 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:58426) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlOdq-0006U4-Pq for emacs-devel@gnu.org; Tue, 26 Nov 2013 14:49:50 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VlOdo-0008N9-HK for emacs-devel@gnu.org; Tue, 26 Nov 2013 20:49:48 +0100 Original-Received: from 90.24.199.117 ([90.24.199.117]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 26 Nov 2013 20:49:48 +0100 Original-Received: from pjb by 90.24.199.117 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 26 Nov 2013 20:49:48 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 34 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 90.24.199.117 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:ZGFjMDhjODZkOTgyYzgyMjRiMDUxYzI3NzEzMDllNTYxNWUwODlhNg== X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:165781 Archived-At: To me, text properties, and faces as text properties, have always felt like a kludge. At best, they may be used to transport information from the modes to the display engine, like the faces, but otherwise (apart for quick & dirty jobs), it seems to me that in general modes sh/would have more pertinent lisp data structures, and use them to set the face in the buffer to represent that data structure. I know that emacs puts a lot of importance on the buffer data structure (a sequence of characters with attributes), which is all right for a text editor, but when you write _applications_ in emacs, it is much too limiting. And a word processor is an application, with more complex data structures than a sequence of characters. So indeed, when copy-pasting text in a word processor, depending on the range of text, ie. depending on the structure that is copied: simple sequence of characters, punctuated sequence of words, paragraphs, sections, chapters or whole document, you may or may not want to bring along the styles. But most often you will want to bring along the structure. eg. probably, if your selection crosses element boundaries, for the characters that have only one "tag", you won't want to bring the style and faces, but for characters that are inside elements copied in whole, you will want to apply the style for those elements in the target place. In both cases, the faces as copied text properties are useless. -- __Pascal Bourguignon__ http://www.informatimago.com/