all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Masatake YAMATO <jet@gyve.org>
Cc: drew.adams@oracle.com, emacs-devel@gnu.org
Subject: Re: highlight current line when Emacs is idle
Date: Wed, 06 Sep 2006 18:44:41 +0900 (JST)	[thread overview]
Message-ID: <20060906.184441.122942224.jet@gyve.org> (raw)
In-Reply-To: <E1GKt6s-0005SQ-Rv@fencepost.gnu.org>

> 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. 

  reply	other threads:[~2006-09-06  9:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-04 18:04 highlight current line when Emacs is idle Drew Adams
2006-09-05  6:47 ` Drew Adams
2006-09-05  7:15   ` Masatake YAMATO
2006-09-05 14:14     ` Drew Adams
2006-09-06  8:50     ` Richard Stallman
2006-09-06  9:44       ` Masatake YAMATO [this message]
2006-09-06 13:39       ` Drew Adams
2007-07-13 14:16 ` Drew Adams
2007-07-13 15:13   ` Stefan Monnier
2007-07-13 21:22     ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060906.184441.122942224.jet@gyve.org \
    --to=jet@gyve.org \
    --cc=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.