[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: highlight current line when Emacs is idle

From: Masatake YAMATO
Subject: Re: highlight current line when Emacs is idle
Date: Wed, 06 Sep 2006 18:44:41 +0900 (JST)

> What's the purpose of hl-column?
> Once the current line is highlighted, it should be easy enough
> to find the cursor within that line, since you have just one line
> to search thru -- right?

Yes. hl-column is too much for finding the curusor.

Here after off topic.

hl-column is useful to check the column alignment of source code.

For example gtk+ project uses the column aligned coding style like:
#define GTK_TYPE_WINDOW                 (gtk_window_get_type ())
#define GTK_WINDOW(obj)                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), 
#define GTK_WINDOW_CLASS(klass)         (G_TYPE_CHECK_CLASS_CAST ((klass), 
GTK_TYPE_WINDOW, GtkWindowClass))
#define GTK_IS_WINDOW(obj)              (G_TYPE_CHECK_INSTANCE_TYPE ((obj), 
#define GTK_IS_WINDOW_CLASS(klass)      (G_TYPE_CHECK_CLASS_TYPE ((klass), 
GTK_TYPE_WINDOW, GtkWindowClass))

typedef struct _GtkWindow             GtkWindow;
typedef struct _GtkWindowClass        GtkWindowClass;
typedef struct _GtkWindowGeometryInfo GtkWindowGeometryInfo;
typedef struct _GtkWindowGroup        GtkWindowGroup;
typedef struct _GtkWindowGroupClass   GtkWindowGroupClass;

When you want to send a patch to gtk+ project, you may want to check
column alignment of your new code before sending. hl-column may be useful
such situation. 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]