]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
set default-directory in dwarf-browse
authorTom Tromey <tom@tromey.com>
Mon, 22 Aug 2016 03:47:14 +0000 (21:47 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 4 Nov 2016 20:43:15 +0000 (14:43 -0600)
I've been using dwarf-mode.el again recently and I found it mildly
annoying that the mode doesn't set default-directory.  Setting it
means that operations in the dwarf-browsing buffer default to the
directory holding the object file being investigated.

This bumps the version number as well so that updating it via the
package manager works properly.

2016-11-04  Tom Tromey  <tom@tromey.com>

* dwarf-mode.el (dwarf-browse): Set default-directory.  Bump
version number.

binutils/ChangeLog
binutils/dwarf-mode.el

index 767a6337c8233cd2fbf0d5497a96a8556d7f675f..f1e1f9bd3f20931d35ccb4027c716b17322ae639 100644 (file)
@@ -1,3 +1,8 @@
+2016-11-04  Tom Tromey  <tom@tromey.com>
+
+       * dwarf-mode.el (dwarf-browse): Set default-directory.  Bump
+       version number.
+
 2016-11-04  Palmer Dabbelt <palmer@dabbelt.com>
 
        * MAINTAINERS: Add myself and Andrew Waterman as maintainers for
index 407c49b8e29f04588ecc5f92ded089e804d202d3..cec56ec162975354ef3bdc7ae1cfe600f410be67 100644 (file)
@@ -1,6 +1,6 @@
 ;;; dwarf-mode.el --- Browser for DWARF information.
 
-;; Version: 1.2
+;; Version: 1.3
 
 ;; Copyright (C) 2012-2016 Free Software Foundation, Inc.
 
@@ -162,6 +162,7 @@ This is the main interface to `dwarf-mode'."
         (buffer (generate-new-buffer (concat "*DWARF for " base-name "*"))))
     (pop-to-buffer buffer)
     (dwarf-mode)
+    (setq default-directory (file-name-directory file))
     (set (make-local-variable 'dwarf-file) file)
     (dwarf-do-refresh)))