[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:
----------------------------------------V------------------------
#define GTK_TYPE_WINDOW (gtk_window_get_type ())
#define GTK_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),
GTK_TYPE_WINDOW, GtkWindow))
#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),
GTK_TYPE_WINDOW))
#define GTK_IS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),
GTK_TYPE_WINDOW))
#define GTK_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),
GTK_TYPE_WINDOW, GtkWindowClass))
----------------------------------------^------------------------
--------------------------------------V------------------------
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.