From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: mar@i.am (Marco Munari 16447.64651) Newsgroups: gmane.emacs.devel Subject: Re: More enhancements to fringe bitmaps. Date: Thu, 11 Mar 2004 01:22:47 +0100 Organization: let me think Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1079237098 8519 80.91.224.253 (14 Mar 2004 04:04:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 14 Mar 2004 04:04:58 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Mar 14 05:04:52 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B2Mrs-0001tp-00 for ; Sun, 14 Mar 2004 05:04:52 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1B2Mrr-0002Pe-00 for ; Sun, 14 Mar 2004 05:04:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B2Mlc-0003kZ-1l for emacs-devel@quimby.gnus.org; Sat, 13 Mar 2004 22:58:24 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B2LM2-0007SL-Ab for emacs-devel@gnu.org; Sat, 13 Mar 2004 21:27:54 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B1Dy6-0004Hp-5j for emacs-devel@gnu.org; Wed, 10 Mar 2004 19:23:05 -0500 Original-Received: from [193.70.193.55] (helo=mail1a.webmessenger.it) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B1Dy5-0004HM-GD for emacs-devel@gnu.org; Wed, 10 Mar 2004 19:22:33 -0500 Original-Received: from fast (151.42.100.82) by mail1a.webmessenger.it (7.0.020) (authenticated as mar@allerta.it) id 404F0D9700013F53 for emacs-devel@gnu.org; Thu, 11 Mar 2004 01:22:28 +0100 Original-To: emacs-devel@gnu.org User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:20430 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:20430 dear developers, i use emacs and sometime i touch the code to improve it by my ideas, i like best use of topological visual meaning, so i'm introducing new fringe *active* basic face, (FRINGE_ACTIVE_FACE_ID as new and complement of FRINGE_FACE_ID) to permit more hilighting of current selected window, because mod_line_inactive_face_id and mode_line_face_id highlight the selected emacs window only in the bottom (of the void space) below the buffer. modification described above involves following changes: faces.el: added face fringe-active dispextern.h: added basic face FRINGE_ACTIVE_FACE_ID added macro CURRENT_FRINGE_FACE_ID(W): returns the FRINGE*_FACE_ID depending on window (selected/unselected) window.c: other-window call Fselect_window only if selected_window is effectively a new one it works, but must be done in a better way: xfaces.c: added lisp object Qfringe_active surprise because new call to realize_named_face with Qfringe_active parameter returns error (so call is introduced and commented) fringe.c: [confusion] left|right (_user)*1 _fringe_face_id uniformed to use CURRENT_FRINGE_FACE_ID(w) (depending on selected_window), was really needed the distinction(?) actually the hilight of fringe bars works as expected after window split and every recenter (c-l) (because ``recenter'' do a full frame redraw); i'd like to redraw the fringe face of selected and unselected windows only in the right time: i tkink ``other-window'' function -in my limited emacs knowledge p.o.view-, should have this effect: - reddaw selected_window fringe bars (i think seting ?...->redraw_fringe_bitmaps_p=1 is needed, related to selected_window) - after ``other-window`` determine the new window, prepare to redraw also it. and no need to redraw others (unchanged) windows. i think similar redraw heppen when mouse select a different window (area), are there other possible cases? the included patch contains even, for personal preference, the following changes: (i like tiny use of visual space) - fringe.c: i change some symbol to -my opinion- more appropriate (smaller and intuitive) bitmaps, and better relatively positioned. Notice: I create and use this bitmaps since fringe functionality was introduced in xdisp.c, in that time, it was not extensible. - xfns.c: modified for tiny scroll bar. - size reduction of emacs fringe (custom 'fringe-mode half) [my preference] - etc/TODO: "fringe bitmaps user configurable" DONE by Kim, (no need to be in TODO,.. or someone plan even more configurable?) - ibuffer.el desc long lines implies big column values, not "long columns"! Saluti, Marco Munari mar.i.am -- x(t),y(t) = th(3t-34.5)*e^[-(3t-34.5)^2]/2-4.3+e^(-1.8/t^2)/(.8*atg(t- 3)+2)(t-1.8)-.3th(5t-42.5),(1.4e^[-(3t-34.5)^2]+1-sgn[|t-8.5|-.5]*1.5* |sin(pi*t)|^[2e^(-(t-11.5)^2)+.5+e^(-(.6t-3.3)^2)])/(.5+t)+1 ; 0 <#/part> <#part type="text/x-patch" filename="/usr/self/cvs/emacs/mar_emacs_cvs.patch" disposition=attachment description="cvs/emacs$ patch -p1 mar_emacs_cvs.patch"> <#/part>