1. 12 Jan, 2019 1 commit
    • Devon Sean McCullough's avatar
      Fix UI of Buffer-menu · d223727a
      Devon Sean McCullough authored
      * lisp/buff-menu.el (Buffer-menu-execute): Don't remove
      entries of buffers whose killing the user didn't confirm.
      (Bug#33669)
      d223727a
  2. 01 Jan, 2019 1 commit
  3. 01 Jan, 2018 1 commit
  4. 13 Sep, 2017 1 commit
    • Paul Eggert's avatar
      Prefer HTTPS to FTP and HTTP in documentation · bc511a64
      Paul Eggert authored
      Most of this change is to boilerplate commentary such as license URLs.
      This change was prompted by ftp://ftp.gnu.org's going-away party,
      planned for November.  Change these FTP URLs to https://ftp.gnu.org
      instead.  Make similar changes for URLs to other organizations moving
      away from FTP.  Also, change HTTP to HTTPS for URLs to gnu.org and
      fsf.org when this works, as this will further help defend against
      man-in-the-middle attacks (for this part I omitted the MS-DOS and
      MS-Windows sources and the test tarballs to keep the workload down).
      HTTPS is not fully working to lists.gnu.org so I left those URLs alone
      for now.
      bc511a64
  5. 13 Feb, 2017 1 commit
  6. 02 Feb, 2017 1 commit
    • Mark Oteiza's avatar
      Treat list-buffers-directory as a string · 141b0856
      Mark Oteiza authored
      Another step in the long history of list-buffers-directory.  A thread
      branch discussing the meaning/use of the variable starts here
      https://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00684.html
      Also see (info "(elisp) Buffer File Name").
      * lisp/buff-menu.el: Relocate special case code into info.el.  Nix
      Info-* defvars.
      (Buffer-menu--pretty-file-name): Remove special case.  Use
      bound-and-true-p.
      (Buffer-menu-info-node-description): Remove.
      * lisp/ibuffer.el (ibuffer-buffer-file-name): Treat
      list-buffers-directory as a string.
      * lisp/info.el (Info-node-description): New function.
      (Info-select-node): Use it.
      141b0856
  7. 01 Jan, 2017 1 commit
  8. 08 Dec, 2016 1 commit
    • Tino Calancha's avatar
      Fix Bug#24962 · af968034
      Tino Calancha authored
      * lisp/buff-menu.el (list-buffers--refresh):
      List buffers with name starting with " " if they visit a file.
      * test/lisp/buff-menu-tests.el (buff-menu-24962):
      Update test result as pass.
      af968034
  9. 22 Nov, 2016 2 commits
    • Tino Calancha's avatar
      Buffer-menu-no-header: Detect a fake header · 4940e0f9
      Tino Calancha authored
      * lisp/buff-menu.el (Buffer-menu-no-header): Use
      'tabulated-list-header-overlay-p' (Bug#24855).
      4940e0f9
    • Tino Calancha's avatar
      buff-menu: Add command to unmark all buffers · 27b754cb
      Tino Calancha authored
      Bind 'U' in buff-menu, bs and electric-buff-menu to commands
      to unmark all buffers (Bug#24880).
      * lisp/emacs-lisp/tabulated-list.el (tabulated-list-header-overlay-p):
      New predicate; return non-nil if tabulated-list has a fake header.
      * lisp/buff-menu.el (Buffer-menu-unmark-all-buffers):
      New command; remove all flags that use a particular mark from all the lines.
      Bind it to 'M-DEL'.
      (Buffer-menu-unmark-all):
      New command; remove all flags from all the lines.  Bind it to 'U'.
      (Buffer-menu-marker-char, Buffer-menu-del-char): New variables.
      (Buffer-menu-delete, Buffer-menu-mark): Use them.
      (Buffer-menu-mode-map): Update menus.
      (Buffer-menu-mode): Update mode doc.
      * lisp/bs.el (bs-unmark-all, bs-unmark-previous): New commands.
      (bs-mode-map): Bind them to 'U' and '<backspace>' respectively.
      (bs-mode): Update mode doc.
      * lisp/ebuff-menu.el (electric-buffer-menu-mode-map):
      Bind Buffer-menu-unmark-all to 'U' and Buffer-menu-unmark-all-buffers
      to 'M-DEL'.
      (bs--down, bs-down, bs--up, bs-up, bs-unmark-current, bs-mark-current):
      Use point instead of cursor in doc string.
      (electric-buffer-list): Update mode doc.
      * doc/emacs/buffers.texi (Several Buffers): Mention Buffer-menu-unmark-all
      and Buffer-menu-unmark-all-buffers.
      ; * etc/NEWS: Add an entry per each new feature.
      27b754cb
  10. 01 Jan, 2016 1 commit
  11. 01 Jan, 2015 2 commits
  12. 21 Jul, 2014 1 commit
    • Glenn Morris's avatar
      Small fixes re toggle-read-only, mainly doc · f6c951e5
      Glenn Morris authored
      * progmodes/hideif.el (hide-ifdef-mode-submap): Also substitute read-only-mode.
      
      * bindings.el (mode-line-toggle-read-only):
      * bs.el (bs-toggle-readonly):
      * buff-menu.el (Buffer-menu-toggle-read-only):
      * dired.el (dired-toggle-read-only):
      * files.el (view-read-only, find-file-read-only)
      (find-file-read-only-other-window)
      (find-file-read-only-other-frame):
      * progmodes/hideif.el (hide-ifdef-toggle-outside-read-only):
      Doc fixes re toggle-read-only.
      
      * view.el: Comment updates.
      f6c951e5
  13. 10 Feb, 2014 1 commit
  14. 01 Jan, 2014 1 commit
  15. 30 Oct, 2013 1 commit
  16. 05 Aug, 2013 1 commit
    • Dmitry Antipov's avatar
      Do not call to `selected-window' where it is assumed by default. · 290d5b58
      Dmitry Antipov authored
      Affected functions are `window-minibuffer-p', `window-dedicated-p',
      `window-hscroll', `window-width', `window-height', `window-buffer',
      `window-frame', `window-start', `window-point', `next-window'
      and `window-display-table'.
      * abbrev.el (abbrev--default-expand):
      * bs.el (bs--show-with-configuration):
      * buff-menu.el (Buffer-menu-mouse-select):
      * calc/calc.el (calc):
      * calendar/calendar.el (calendar-generate-window):
      * calendar/diary-lib.el (diary-simple-display, diary-show-all-entries)
      (diary-make-entry):
      * comint.el (send-invisible, comint-dynamic-complete-filename)
      (comint-dynamic-simple-complete, comint-dynamic-list-completions):
      * completion.el (complete):
      * dabbrev.el (dabbrev-expand, dabbrev--make-friend-buffer-list):
      * disp-table.el (describe-current-display-table):
      * doc-view.el (doc-view-insert-image):
      * ebuff-menu.el (Electric-buffer-menu-mouse-select):
      * ehelp.el (with-electric-help):
      * emacs-lisp/easy-mmode.el (easy-mmode-define-navigation):
      * emacs-lisp/edebug.el (edebug-two-window-p, edebug-pop-to-buffer):
      * emacs-lisp/helper.el (Helper-help-scroller):
      * emulation/cua-base.el (cua--post-command-handler-1):
      * eshell/esh-mode.el (eshell-output-filter):
      * ffap.el (ffap-gnus-wrapper):
      * help-macro.el (make-help-screen):
      * hilit-chg.el (highlight-compare-buffers):
      * hippie-exp.el (hippie-expand, try-expand-dabbrev-visible):
      * hl-line.el (global-hl-line-highlight):
      * icomplete.el (icomplete-simple-completing-p):
      * isearch.el (isearch-done):
      * jit-lock.el (jit-lock-stealth-fontify):
      * mail/rmailsum.el (rmail-summary-scroll-msg-up):
      * lisp/mouse-drag.el (mouse-drag-should-do-col-scrolling):
      * mpc.el (mpc-tagbrowser, mpc):
      * net/rcirc.el (rcirc-any-buffer):
      * play/gomoku.el (gomoku-max-width, gomoku-max-height):
      * play/landmark.el (landmark-max-width, landmark-max-height):
      * play/zone.el (zone):
      * progmodes/compile.el (compilation-goto-locus):
      * progmodes/ebrowse.el (ebrowse-view/find-file-and-search-pattern):
      * progmodes/etags.el (find-tag-other-window):
      * progmodes/fortran.el (fortran-column-ruler):
      * progmodes/gdb-mi.el (gdb-mouse-toggle-breakpoint-fringe):
      * progmodes/verilog-mode.el (verilog-point-text):
      * reposition.el (reposition-window):
      * rot13.el (toggle-rot13-mode):
      * server.el (server-switch-buffer):
      * shell.el (shell-dynamic-complete-command)
      (shell-dynamic-complete-environment-variable):
      * simple.el (insert-buffer, set-selective-display)
      (delete-completion-window):
      * speedbar.el (speedbar-timer-fn, speedbar-center-buffer-smartly)
      (speedbar-recenter):
      * startup.el (fancy-splash-head):
      * textmodes/ispell.el (ispell-command-loop):
      * textmodes/makeinfo.el (makeinfo-compilation-sentinel-region):
      * tutorial.el (help-with-tutorial):
      * vc/add-log.el (add-change-log-entry):
      * vc/compare-w.el (compare-windows):
      * vc/ediff-help.el (ediff-indent-help-message):
      * vc/ediff-util.el (ediff-setup-control-buffer, ediff-position-region):
      * vc/ediff-wind.el (ediff-skip-unsuitable-frames)
      (ediff-setup-control-frame):
      * vc/emerge.el (emerge-position-region):
      * vc/pcvs-util.el (cvs-bury-buffer):
      * window.el (walk-windows, mouse-autoselect-window-select):
      * winner.el (winner-set-conf, winner-undo): Related users changed.
      290d5b58
  17. 03 Jul, 2013 2 commits
  18. 01 Jan, 2013 1 commit
  19. 28 Nov, 2012 1 commit
    • Chong Yidong's avatar
      Buffer Menu doc fixes. · a5bf43ba
      Chong Yidong authored
      * buff-menu.el (Buffer-menu-delete-backwards, Buffer-menu-mode)
      (buffer-menu): Doc fix.
      
      Fixes: debbugs:12294
      a5bf43ba
  20. 24 Nov, 2012 1 commit
  21. 25 Sep, 2012 1 commit
  22. 23 Sep, 2012 1 commit
    • Chong Yidong's avatar
      Convert toggle-read-only calls to read-only-mode. · 9a930676
      Chong Yidong authored
      * bindings.el (mode-line-toggle-read-only):
      * bs.el (bs-toggle-readonly):
      * buff-menu.el (Buffer-menu-toggle-read-only):
      * dired.el (dired-toggle-read-only):
      * ibuffer.el (ibuffer-do-toggle-read-only): Use read-only-mode.
      9a930676
  23. 15 Aug, 2012 1 commit
  24. 12 Aug, 2012 1 commit
    • Stefan Monnier's avatar
      * lisp/ibuffer.el (ibuffer-do-toggle-read-only): · ba10c48c
      Stefan Monnier authored
      * lisp/dired.el (dired-toggle-read-only):
      * lisp/buff-menu.el (Buffer-menu-toggle-read-only):
      * lisp/bindings.el (mode-line-toggle-read-only):
      * lisp/bs.el (bs-toggle-readonly): Call toggle-read-only interactively.
      ba10c48c
  25. 31 Jul, 2012 1 commit
  26. 13 Jul, 2012 1 commit
    • Chong Yidong's avatar
      Don't warn on toggle-read-only calls. · b68b3337
      Chong Yidong authored
      Clarify the documentation of toggle-read-only, and audit the code tree
      for uses of toggle-read-only; where appropriate, switch to setting the
      variable buffer-read-only or calling toggle-read-only with a (new)
      second arg.
      
      * lisp/files.el (toggle-read-only): Doc fix and code cleanup.  New arg
      to allow printing the message when called from Lisp.
      
      * lisp/emacs-lisp/bytecomp.el (byte-compile-interactive-only-functions):
      Remove toggle-read-only.
      
      * lisp/bindings.el (mode-line-toggle-read-only):
      * lisp/dired.el (dired-toggle-read-only):
      * lisp/ibuffer.el (ibuffer-do-toggle-read-only): Call toggle-read-only
      with non-nil second arg.
      
      * lisp/bs.el (bs-toggle-readonly):
      * lisp/buff-menu.el (Buffer-menu-toggle-read-only): Remove
      with-no-warnings around toggle-read-only.
      
      * lisp/ffap.el (ffap--toggle-read-only): Accept a list of buffers.
      Remove with-no-warnings around toggle-read-only.
      (ffap-read-only, ffap-read-only-other-window)
      (ffap-read-only-other-frame): Callers changed.
      
      * lisp/help-mode.el: Don't require view package.
      (help-mode-finish): Set buffer-read-only instead of calling
      toggle-read-only.
      
      * lisp/emacs-lisp/eieio-custom.el (eieio-customize-object):
      * lisp/vc/ediff.el (ediff-set-read-only-in-buf-A): Set buffer-read-only
      directly.
      
      * lisp/gnus/smime.el (smime-certificate-info): Set buffer-read-only directly,
      instead of calling toggle-read-only with a (bogus) argument.
      
      * doc/emacs/buffers.texi (Misc Buffer): Document view-read-only.
      
      * doc/lispref/buffers.texi (Read Only Buffers): Document toggle-read-only
      changes.  Reword to account for the fact that read-only is currently not
      supported in overlay properties.
      b68b3337
  27. 27 Jun, 2012 1 commit
    • Stefan Monnier's avatar
      Get rid of all the manual purecopy calls in menu-bar definitions. · 1ec4b7b2
      Stefan Monnier authored
      * lisp/loadup.el (purify-flag): Pre-grow the hash-table to reduce the
      memory use.
      * lisp/bindings.el (bindings--define-key): New function.
      * lisp/vc/vc-hooks.el, lisp/replace.el, lisp/menu-bar.el:
      * lisp/international/mule-cmds.el, lisp/emacs-lisp/lisp-mode.el:
      * lisp/buff-menu.el, lisp/bookmark.el:
      * bindings.el: Use it to purecopy define-key bindings.
      * src/fns.c (maybe_resize_hash_table): Output message when growing the
      purify-hashtable.
      1ec4b7b2
  28. 13 May, 2012 1 commit
    • Stefan Monnier's avatar
      Move define-obsolete-variable-alias before the var's definition. · e5bd0a28
      Stefan Monnier authored
      * lisp/vc/log-edit.el (vc-comment-ring, vc-comment-ring-index):
      * lisp/tooltip.el (tooltip-hook):
      * lisp/textmodes/reftex-toc.el (reftex-toc-map):
      * lisp/textmodes/reftex-sel.el (reftex-select-label-map)
      (reftex-select-bib-map):
      * lisp/textmodes/reftex-index.el (reftex-index-map)
      (reftex-index-phrases-map):
      * lisp/speedbar.el (speedbar-syntax-table, speedbar-key-map):
      * lisp/progmodes/meta-mode.el (meta-mode-map):
      * lisp/novice.el (disabled-command-hook):
      * lisp/loadhist.el (unload-hook-features-list):
      * lisp/frame.el (blink-cursor):
      * lisp/files.el (find-file-not-found-hooks, write-file-hooks)
      (write-contents-hooks):
      * lisp/emulation/tpu-edt.el (GOLD-map):
      * lisp/emacs-lock.el (emacs-lock-from-exiting):
      * lisp/emacs-lisp/generic.el (generic-font-lock-defaults):
      * lisp/emacs-lisp/chart.el (chart-map):
      * lisp/dos-fns.el (register-name-alist):
      * lisp/dired-x.el (dired-omit-files-p):
      * lisp/desktop.el (desktop-enable):
      * lisp/cus-edit.el (custom-mode-hook):
      * lisp/buff-menu.el (buffer-menu-mode-hook):
      * lisp/bookmark.el (bookmark-read-annotation-text-func)
      (bookmark-exit-hooks):
      * lisp/allout.el (allout-mode-deactivate-hook)
      (allout-exposure-change-hook, allout-structure-added-hook)
      (allout-structure-deleted-hook, allout-structure-shifted-hook):
      * lisp/dirtrack.el (dirtrack-toggle, dirtrackp, dirtrack-debug-toggle)
      (dirtrack-debug): Move call to define-obsolete-variable-alias so it
      comes before the corresponding variable's definition.
      e5bd0a28
  29. 12 May, 2012 2 commits
  30. 07 May, 2012 2 commits
    • Stefan Monnier's avatar
      * lisp/buff-menu.el (list-buffers--refresh): Mark `size' as right-align. · f0809a9d
      Stefan Monnier authored
      * lisp/emacs-lisp/tabulated-list.el (tabulated-list-init-header):
      Handle new :right-align column property.
      (tabulated-list-print-col): Idem, plus use `display' text-property to
      try and preserve alignment for variable pitch fonts.
      f0809a9d
    • Chong Yidong's avatar
      Restore Buffer-menu-use-header-line functionality. · 1241b724
      Chong Yidong authored
      * lisp/emacs-lisp/tabulated-list.el: Add no-header-line alternative.
      (tabulated-list-use-header-line): New var.
      (tabulated-list-init-header): Use it.
      (tabulated-list-print-fake-header): New function.
      (tabulated-list-print): Use it.
      (tabulated-list-sort-button-map): Add non-header-line commands.
      (tabulated-list-init-header): Add column name property to basic
      labels as well.
      (tabulated-list-col-sort): Handle non-header-line button case.
      (tabulated-list--sort-by-column-name): Fix a corner case.
      
      * lisp/buff-menu.el (list-buffers--refresh): Handle
      Buffer-menu-use-header-line.
      1241b724
  31. 06 May, 2012 2 commits
    • Chong Yidong's avatar
      * lisp/buff-menu.el: Convert to Tabulated List mode. · e5f9458f
      Chong Yidong authored
      (Buffer-menu-buffer+size-width): Make obsolete.
      (Buffer-menu-name-width, Buffer-menu-size-width): New variables.
      (Buffer-menu-mode-map): Inherit from tabulated-list-mode-map.
      (Buffer-menu-mode): Derive from tabulated-list-mode.  Move command
      documentation into docstring of buffer-menu.
      (Buffer-menu-toggle-files-only): Add an informative message.
      (Buffer-menu-sort): Convert to alias for tabulated-list-sort.
      (Buffer-menu-buffer, Buffer-menu-beginning, Buffer-menu-mark)
      (Buffer-menu-unmark, Buffer-menu-backup-unmark)
      (Buffer-menu-delete, Buffer-menu-save, Buffer-menu-not-modified)
      (Buffer-menu-execute, Buffer-menu-select)
      (Buffer-menu-marked-buffers, Buffer-menu-toggle-read-only)
      (Buffer-menu-bury): Use Tabulated List machinery.
      (Buffer-menu-mouse-select, Buffer-menu-sort-by-column)
      (Buffer-menu-sort-button-map, Buffer-menu-make-sort-button):
      Deleted.
      (list-buffers--refresh): New function.
      (list-buffers-noselect): Use it.
      (tabulated-list-entry-size->, Buffer-menu--pretty-name)
      (Buffer-menu--pretty-file-name): New helper functions.
      
      * lisp/loadup.el: Preload tabulated-list.
      
      * lisp/emacs-lisp/tabulated-list.el (tabulated-list-sort): Rename from
      tabulated-list-sort-column.
      (tabulated-list-init-header): Add the initial aligning space even
      if tabulated-list-padding is zero.
      
      * src/lisp.mk (lisp): Update.
      e5f9458f
    • Chong Yidong's avatar
      Some cleanups for the buffer menu and electric buffer menu. · 3cc99f68
      Chong Yidong authored
      * lisp/buff-menu.el (list-buffers): Move C-x C-b binding from
      buff-menu.el to bindings.el.
      
      * lisp/ebuff-menu.el (Electric-buffer-menu-undefined): Use the
      :advertised-binding feature.
      3cc99f68
  32. 11 Jan, 2012 1 commit
  33. 05 Jan, 2012 1 commit
  34. 18 Sep, 2011 1 commit
    • Juri Linkov's avatar
      Capitalize non-function content words in menu item strings. · 7cc6e154
      Juri Linkov authored
      * lisp/buff-menu.el (Buffer-menu-mode-map):
      * lisp/dired.el (dired-mode-map):
      * lisp/emacs-lisp/lisp-mode.el (emacs-lisp-mode-map)
      (lisp-interaction-mode-map):
      * lisp/emacs-lisp/package.el (package-menu-mode-map):
      * lisp/epa.el (epa-key-list-mode-map):
      * lisp/menu-bar.el (menu-bar-showhide-tool-bar-menu)
      (menu-bar-options-menu):
      * lisp/outline.el (outline-mode-menu-bar-map):
      * lisp/vc/vc-bzr.el (vc-bzr-shelve-menu-map, vc-bzr-extra-menu-map):
      * lisp/vc/vc-dir.el (vc-dir-menu-map):
      * lisp/vc/vc-git.el (vc-git-stash-menu-map, vc-git-extra-menu-map):
      Capitalize non-function content words in menu item strings.
      
      * lisp/dired.el (dired-mode-map): Add menu item for
      `image-dired-dired-toggle-marked-thumbs'.
      7cc6e154