unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Show/Hide: Line and column numbers in the mode-line?
@ 2002-02-07  6:50 Pavel Janík
  2002-02-07 10:01 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Pavel Janík @ 2002-02-07  6:50 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 1066 bytes --]

What about this? Yes, people keep to ask how to display column number in
the mode-line, and we also have in the FAQ. Hmm, still Google tells me at
http://groups.google.com/groups?q=%2Bemacs+%2Bcolumn+%2Bnumber&hl=en&sa=N&tab=wg

Results 1 - 10 of about 9,760.

--- menu-bar.el.~1.194.~	Sun Feb  3 11:06:42 2002
+++ menu-bar.el	Wed Feb  6 22:22:34 2002
@@ -572,6 +572,19 @@
 
 (defvar menu-bar-showhide-menu (make-sparse-keymap "Show/Hide"))
 
+(define-key menu-bar-showhide-menu [column-number-mode]
+  (menu-bar-make-toggle column-number-mode column-number-mode
+			"Show Column Number" "Column number mode %s"
+			"Show the current column number in the mode-line"))
+
+(define-key menu-bar-showhide-menu [line-number-mode]
+  (menu-bar-make-toggle line-number-mode line-number-mode
+			"Show Line Number" "Line number mode %s"
+			"Show the current line number in the mode-line"))
+
+(define-key menu-bar-showhide-menu [linecolumn-separator]
+  '("--"))
+
 (defun showhide-date-time ()
   "Toggle whether to show date and time in the mode-line."
   (interactive)


[-- Attachment #2: snapshot.png --]
[-- Type: image/png, Size: 15253 bytes --]

[-- Attachment #3: Type: text/plain, Size: 219 bytes --]


-- 
Pavel Janík

"when" is not a word I find useful about most bios bugs. Try "if" or
"less likely that being hit on the head by an asteroid"
                  -- Alan Cox in LKML about possibility of fixing BIOS bugs

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Show/Hide: Line and column numbers in the mode-line?
  2002-02-07  6:50 Show/Hide: Line and column numbers in the mode-line? Pavel Janík
@ 2002-02-07 10:01 ` Eli Zaretskii
  2002-02-07 21:39   ` Pavel Janík
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2002-02-07 10:01 UTC (permalink / raw)
  Cc: emacs-devel


On Thu, 7 Feb 2002, Pavel =?iso-8859-2?q?Jan=EDk?= wrote:

> What about this? Yes, people keep to ask how to display column number in
> the mode-line, and we also have in the FAQ. Hmm, still Google tells me at
> http://groups.google.com/groups?q=%2Bemacs+%2Bcolumn+%2Bnumber&hl=en&sa=N&tab=wg

My vote is to include this.  Thanks.

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Show/Hide: Line and column numbers in the mode-line?
  2002-02-07 10:01 ` Eli Zaretskii
@ 2002-02-07 21:39   ` Pavel Janík
  0 siblings, 0 replies; 3+ messages in thread
From: Pavel Janík @ 2002-02-07 21:39 UTC (permalink / raw)
  Cc: emacs-devel

   From: Eli Zaretskii <eliz@is.elta.co.il>
   Date: Thu, 7 Feb 2002 12:01:20 +0200 (IST)

   > > What about this? Yes, people keep to ask how to display column number in
   > > the mode-line, and we also have in the FAQ. Hmm, still Google tells me at
   > > http://groups.google.com/groups?q=%2Bemacs+%2Bcolumn+%2Bnumber&hl=en&sa=N&tab=wg
   > 
   > My vote is to include this.  Thanks.

I will commit it after we fix the problem with saving custom-file. I do not
want to convert it from latin-2 to utf-8 right now :-) I'd like to test it
properly before committing.

Thank you (and Kim) for your feedback.
-- 
Pavel Janík

No matter how hard you try, you can't make a baby in much less than
9 months. Trying to speed this up *might* make it slower, but it won't make
it happen any quicker.
                  -- RFC1925: The Twelve Networking Truths

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-02-07 21:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-07  6:50 Show/Hide: Line and column numbers in the mode-line? Pavel Janík
2002-02-07 10:01 ` Eli Zaretskii
2002-02-07 21:39   ` Pavel Janík

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).