aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Fogel2010-01-02 13:13:28 -0500
committerKarl Fogel2010-01-02 13:13:28 -0500
commit3a69db535c8346f3444b942de45fbed3d5be6b62 (patch)
tree6cc18557dc9344d2fc93f4cb052271434d7f8639
parentaf414f10d8a0cb08603da190612fe176e7a9f93c (diff)
downloademacs-3a69db535c8346f3444b942de45fbed3d5be6b62.tar.gz
emacs-3a69db535c8346f3444b942de45fbed3d5be6b62.zip
* lisp/bookmark.el (bookmark-bmenu-select, bookmark-bmenu-1-window,
(bookmark-bmenu-2-window, bookmark-bmenu-this-window) (bookmark-bmenu-other-window, bookmark-bmenu-switch-other-window) (bookmark-bmenu-show-annotation, bookmark-bmenu-edit-annotation) (bookmark-bmenu-rename, bookmark-bmenu-locate) (bookmark-bmenu-relocate, bookmark-bmenu-goto-bookmark): Remove unnecessary calls to `bookmark-bmenu-ensure-position'.
-rw-r--r--lisp/ChangeLog10
-rw-r--r--lisp/bookmark.el16
2 files changed, 12 insertions, 14 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index ef4ead16b85..a180291abfc 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,13 @@
12010-01-02 Karl Fogel <kfogel@red-bean.com>
2
3 * bookmark.el (bookmark-bmenu-select, bookmark-bmenu-1-window,
4 (bookmark-bmenu-2-window, bookmark-bmenu-this-window)
5 (bookmark-bmenu-other-window, bookmark-bmenu-switch-other-window)
6 (bookmark-bmenu-show-annotation, bookmark-bmenu-edit-annotation)
7 (bookmark-bmenu-rename, bookmark-bmenu-locate)
8 (bookmark-bmenu-relocate, bookmark-bmenu-goto-bookmark): Remove
9 unnecessary calls to `bookmark-bmenu-ensure-position'.
10
12010-01-02 Eli Zaretskii <eliz@gnu.org> 112010-01-02 Eli Zaretskii <eliz@gnu.org>
2 12
3 * emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Make 13 * emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Make
diff --git a/lisp/bookmark.el b/lisp/bookmark.el
index e837313df37..98e700ae97f 100644
--- a/lisp/bookmark.el
+++ b/lisp/bookmark.el
@@ -1763,7 +1763,6 @@ if an annotation exists."
1763 "Select this line's bookmark; also display bookmarks marked with `>'. 1763 "Select this line's bookmark; also display bookmarks marked with `>'.
1764You can mark bookmarks with the \\<bookmark-bmenu-mode-map>\\[bookmark-bmenu-mark] command." 1764You can mark bookmarks with the \\<bookmark-bmenu-mode-map>\\[bookmark-bmenu-mark] command."
1765 (interactive) 1765 (interactive)
1766 (bookmark-bmenu-ensure-position)
1767 (let ((bmrk (bookmark-bmenu-bookmark)) 1766 (let ((bmrk (bookmark-bmenu-bookmark))
1768 (menu (current-buffer)) 1767 (menu (current-buffer))
1769 (others ()) 1768 (others ())
@@ -1840,7 +1839,6 @@ With a prefix arg, prompts for a file to save them in."
1840(defun bookmark-bmenu-1-window () 1839(defun bookmark-bmenu-1-window ()
1841 "Select this line's bookmark, alone, in full frame." 1840 "Select this line's bookmark, alone, in full frame."
1842 (interactive) 1841 (interactive)
1843 (bookmark-bmenu-ensure-position)
1844 (bookmark-jump (bookmark-bmenu-bookmark)) 1842 (bookmark-jump (bookmark-bmenu-bookmark))
1845 (bury-buffer (other-buffer)) 1843 (bury-buffer (other-buffer))
1846 (delete-other-windows)) 1844 (delete-other-windows))
@@ -1849,7 +1847,6 @@ With a prefix arg, prompts for a file to save them in."
1849(defun bookmark-bmenu-2-window () 1847(defun bookmark-bmenu-2-window ()
1850 "Select this line's bookmark, with previous buffer in second window." 1848 "Select this line's bookmark, with previous buffer in second window."
1851 (interactive) 1849 (interactive)
1852 (bookmark-bmenu-ensure-position)
1853 (let ((bmrk (bookmark-bmenu-bookmark)) 1850 (let ((bmrk (bookmark-bmenu-bookmark))
1854 (menu (current-buffer)) 1851 (menu (current-buffer))
1855 (pop-up-windows t)) 1852 (pop-up-windows t))
@@ -1863,7 +1860,6 @@ With a prefix arg, prompts for a file to save them in."
1863(defun bookmark-bmenu-this-window () 1860(defun bookmark-bmenu-this-window ()
1864 "Select this line's bookmark in this window." 1861 "Select this line's bookmark in this window."
1865 (interactive) 1862 (interactive)
1866 (bookmark-bmenu-ensure-position)
1867 (bookmark-jump (bookmark-bmenu-bookmark))) 1863 (bookmark-jump (bookmark-bmenu-bookmark)))
1868 1864
1869 1865
@@ -1871,7 +1867,6 @@ With a prefix arg, prompts for a file to save them in."
1871 "Select this line's bookmark in other window, leaving bookmark menu visible." 1867 "Select this line's bookmark in other window, leaving bookmark menu visible."
1872 (interactive) 1868 (interactive)
1873 (let ((bookmark (bookmark-bmenu-bookmark))) 1869 (let ((bookmark (bookmark-bmenu-bookmark)))
1874 (bookmark-bmenu-ensure-position)
1875 (let ((bookmark-automatically-show-annotations t)) ;FIXME: needed? 1870 (let ((bookmark-automatically-show-annotations t)) ;FIXME: needed?
1876 (bookmark--jump-via bookmark 'switch-to-buffer-other-window)))) 1871 (bookmark--jump-via bookmark 'switch-to-buffer-other-window))))
1877 1872
@@ -1884,7 +1879,6 @@ The current window remains selected."
1884 (pop-up-windows t) 1879 (pop-up-windows t)
1885 same-window-buffer-names 1880 same-window-buffer-names
1886 same-window-regexps) 1881 same-window-regexps)
1887 (bookmark-bmenu-ensure-position)
1888 (let ((bookmark-automatically-show-annotations t)) ;FIXME: needed? 1882 (let ((bookmark-automatically-show-annotations t)) ;FIXME: needed?
1889 (bookmark--jump-via bookmark 'display-buffer)))) 1883 (bookmark--jump-via bookmark 'display-buffer))))
1890 1884
@@ -1901,7 +1895,6 @@ The current window remains selected."
1901 "Show the annotation for the current bookmark in another window." 1895 "Show the annotation for the current bookmark in another window."
1902 (interactive) 1896 (interactive)
1903 (let ((bookmark (bookmark-bmenu-bookmark))) 1897 (let ((bookmark (bookmark-bmenu-bookmark)))
1904 (bookmark-bmenu-ensure-position)
1905 (bookmark-show-annotation bookmark))) 1898 (bookmark-show-annotation bookmark)))
1906 1899
1907 1900
@@ -1915,7 +1908,6 @@ The current window remains selected."
1915 "Edit the annotation for the current bookmark in another window." 1908 "Edit the annotation for the current bookmark in another window."
1916 (interactive) 1909 (interactive)
1917 (let ((bookmark (bookmark-bmenu-bookmark))) 1910 (let ((bookmark (bookmark-bmenu-bookmark)))
1918 (bookmark-bmenu-ensure-position)
1919 (bookmark-edit-annotation bookmark))) 1911 (bookmark-edit-annotation bookmark)))
1920 1912
1921 1913
@@ -2001,7 +1993,6 @@ To carry out the deletions that you've marked, use \\<bookmark-bmenu-mode-map>\\
2001(defun bookmark-bmenu-rename () 1993(defun bookmark-bmenu-rename ()
2002 "Rename bookmark on current line. Prompts for a new name." 1994 "Rename bookmark on current line. Prompts for a new name."
2003 (interactive) 1995 (interactive)
2004 (bookmark-bmenu-ensure-position)
2005 (let ((bmrk (bookmark-bmenu-bookmark)) 1996 (let ((bmrk (bookmark-bmenu-bookmark))
2006 (thispoint (point))) 1997 (thispoint (point)))
2007 (bookmark-rename bmrk) 1998 (bookmark-rename bmrk)
@@ -2011,15 +2002,13 @@ To carry out the deletions that you've marked, use \\<bookmark-bmenu-mode-map>\\
2011(defun bookmark-bmenu-locate () 2002(defun bookmark-bmenu-locate ()
2012 "Display location of this bookmark. Displays in the minibuffer." 2003 "Display location of this bookmark. Displays in the minibuffer."
2013 (interactive) 2004 (interactive)
2014 (bookmark-bmenu-ensure-position) 2005 (let ((bmrk (bookmark-bmenu-bookmark)))
2015 (let ((bmrk (bookmark-bmenu-bookmark))) 2006 (message "%s" (bookmark-location bmrk))))
2016 (message "%s" (bookmark-location bmrk))))
2017 2007
2018(defun bookmark-bmenu-relocate () 2008(defun bookmark-bmenu-relocate ()
2019 "Change the file path of the bookmark on the current line, 2009 "Change the file path of the bookmark on the current line,
2020 prompting with completion for the new path." 2010 prompting with completion for the new path."
2021 (interactive) 2011 (interactive)
2022 (bookmark-bmenu-ensure-position)
2023 (let ((bmrk (bookmark-bmenu-bookmark)) 2012 (let ((bmrk (bookmark-bmenu-bookmark))
2024 (thispoint (point))) 2013 (thispoint (point)))
2025 (bookmark-relocate bmrk) 2014 (bookmark-relocate bmrk)
@@ -2084,7 +2073,6 @@ To carry out the deletions that you've marked, use \\<bookmark-bmenu-mode-map>\\
2084(defun bookmark-bmenu-goto-bookmark (name) 2073(defun bookmark-bmenu-goto-bookmark (name)
2085 "Move point to bookmark with name NAME." 2074 "Move point to bookmark with name NAME."
2086 (goto-char (point-min)) 2075 (goto-char (point-min))
2087 (bookmark-bmenu-ensure-position)
2088 (while (not (equal name (bookmark-bmenu-bookmark))) 2076 (while (not (equal name (bookmark-bmenu-bookmark)))
2089 (forward-line 1)) 2077 (forward-line 1))
2090 (forward-line 0)) 2078 (forward-line 0))