|Subject:||New function: what-file-line, used when writing gdb script|
|Date:||Sun, 23 Nov 2008 01:03:52 +0800|
When I write gdb script, I need to set many breakpoints. such as:
With following comamnd, I can do it more easy
(defcustom what-file-line-separator ":"
"Define the separator between file name and line number"
(defcustom what-file-line-yankp nil
"Toggle on/off Yank to kill ring"
;; Maybe this variable is useless, user can copy what they want in mini-buffer
(defcustom what-file-line-fullpath t
"Toggle on/off file name fullpath"
(defun what-file-line ()
"Print the current buffer's file name and line nubmer"
(let ((n (line-number-at-pos))
(setq result (concat file what-file-line-separator (number-to-string n)))
(message "%s" result)
1. I don't know in which group the customized variables should be put?
2. The 3rd customized variable needn't, agree?
3. If this functionality is usefull, I want to implement a GUI version(as same as gdb-mouse-set-clear-breakpoint). So when user click the left margin when non-gdb-mode, user can get the filename-line pair)
What's your comment?
|[Prev in Thread]||Current Thread||[Next in Thread]|