1. 23 Feb, 2019 1 commit
    • Paul Eggert's avatar
      Avoid some double-rounding of Lisp timestamps · 476066e8
      Paul Eggert authored
      Also, simplify some time-related Lisp timestamp code
      while we’re in the neighborhood.
      * lisp/battery.el (battery-linux-proc-acpi)
      (battery-linux-sysfs, battery-upower, battery-bsd-apm):
      * lisp/calendar/timeclock.el (timeclock-seconds-to-string)
      (timeclock-log, timeclock-last-period)
      (timeclock-entry-length, timeclock-entry-list-span)
      (timeclock-find-discrep, timeclock-generate-report):
      * lisp/cedet/ede/detect.el (ede-detect-qtest):
      * lisp/completion.el (cmpl-hours-since-origin):
      * lisp/ecomplete.el (ecomplete-decay-1):
      * lisp/emacs-lisp/ert.el (ert--results-update-stats-display)
      (ert--results-update-stats-display-maybe):
      * lisp/emacs-lisp/timer-list.el (list-timers):
      * lisp/emacs-lisp/timer.el (timer-until)
      (timer-event-handler):
      * lisp/erc/erc-backend.el (erc-server-send-ping)
      (erc-server-send-queue, erc-handle-parsed-server-response)
      (erc-handle-unknown-server-response):
      * lisp/erc/erc-track.el (erc-buffer-visible):
      * lisp/erc/erc.el (erc-lurker-cleanup, erc-lurker-p)
      (erc-cmd-PING, erc-send-current-line):
      * lisp/eshell/em-pred.el (eshell-pred-file-time):
      * lisp/eshell/em-unix.el (eshell-show-elapsed-time):
      * lisp/gnus/gnus-icalendar.el (gnus-icalendar-event:org-timestamp):
      * lisp/gnus/gnus-int.el (gnus-backend-trace):
      * lisp/gnus/gnus-sum.el (gnus-user-date):
      * lisp/gnus/mail-source.el (mail-source-delete-crash-box):
      * lisp/gnus/nnmaildir.el (nnmaildir--scan):
      * lisp/ibuf-ext.el (ibuffer-mark-old-buffers):
      * lisp/gnus/nnmaildir.el (nnmaildir--scan):
      * lisp/mouse.el (mouse--down-1-maybe-follows-link)
      (mouse--click-1-maybe-follows-link):
      * lisp/mpc.el (mpc--faster-toggle):
      * lisp/net/rcirc.el (rcirc-handler-ctcp-KEEPALIVE)
      (rcirc-sentinel):
      * lisp/net/tramp-cache.el (tramp-get-file-property):
      * lisp/net/tramp-sh.el (tramp-sh-handle-file-newer-than-file-p)
      (tramp-maybe-open-connection):
      * lisp/net/tramp-smb.el (tramp-smb-maybe-open-connection):
      * lisp/org/org-clock.el (org-clock-resolve):
      (org-resolve-clocks, org-clock-in, org-clock-out, org-clock-sum):
      * lisp/org/org-timer.el (org-timer-start)
      (org-timer-pause-or-continue, org-timer-seconds):
      * lisp/org/org.el (org-evaluate-time-range):
      * lisp/org/ox-publish.el (org-publish-cache-ctime-of-src):
      * lisp/pixel-scroll.el (pixel-scroll-in-rush-p):
      * lisp/play/hanoi.el (hanoi-move-ring):
      * lisp/proced.el (proced-format-time):
      * lisp/progmodes/cpp.el (cpp-progress-message):
      * lisp/progmodes/flymake.el (flymake--handle-report):
      * lisp/progmodes/js.el (js--wait-for-matching-output):
      * lisp/subr.el (progress-reporter-do-update):
      * lisp/term/xterm.el (xterm--read-event-for-query):
      * lisp/time.el (display-time-update, emacs-uptime):
      * lisp/tooltip.el (tooltip-delay):
      * lisp/url/url-cookie.el (url-cookie-parse-file-netscape):
      * lisp/url/url-queue.el (url-queue-prune-old-entries):
      * lisp/url/url.el (url-retrieve-synchronously):
      * lisp/xt-mouse.el (xterm-mouse-event):
      Avoid double-rounding of time-related values.  Simplify.
      * lisp/calendar/icalendar.el (icalendar--decode-isodatetime):
      When hoping for the best (unlikely), use a better decoded time.
      (icalendar--convert-sexp-to-ical): Avoid unnecessary encode-time.
      * lisp/calendar/timeclock.el (timeclock-when-to-leave):
      * lisp/cedet/ede/detect.el (ede-detect-qtest):
      * lisp/desktop.el (desktop-create-buffer):
      * lisp/emacs-lisp/benchmark.el (benchmark-elapse):
      * lisp/gnus/gnus-art.el (article-lapsed-string):
      * lisp/gnus/gnus-group.el (gnus-group-timestamp-delta):
      * lisp/gnus/nnmail.el (nnmail-expired-article-p):
      * lisp/gnus/nnmaildir.el (nnmaildir-request-expire-articles):
      * lisp/nxml/rng-maint.el (rng-time-function):
      * lisp/org/org-clock.el (org-clock-get-clocked-time)
      (org-clock-resolve, org-resolve-clocks, org-resolve-clocks-if-idle):
      * lisp/org/org-habit.el (org-habit-insert-consistency-graphs):
      * lisp/progmodes/vhdl-mode.el (vhdl-update-progress-info)
      (vhdl-fix-case-region-1):
      Use time-since instead of open-coding most of it.
      * lisp/erc/erc-dcc.el (erc-dcc-get-sentinel):
      * lisp/erc/erc.el (erc-string-to-emacs-time, erc-time-gt):
      Now obsolete.  All uses changed.
      (erc-time-diff): Accept all Lisp time values.
      All uses changed.
      * lisp/gnus/gnus-demon.el (gnus-demon-idle-since):
      * lisp/gnus/gnus-score.el (gnus-score-headers):
      * lisp/gnus/nneething.el (nneething-make-head):
      * lisp/gnus/nnheader.el (nnheader-message-maybe):
      * lisp/gnus/nnimap.el (nnimap-keepalive):
      * lisp/image.el (image-animate-timeout):
      * lisp/mail/feedmail.el (feedmail-rfc822-date):
      * lisp/net/imap.el (imap-wait-for-tag):
      * lisp/net/newst-backend.el (newsticker--image-get):
      * lisp/net/rcirc.el (rcirc-handler-317, rcirc-handler-333):
      * lisp/obsolete/xesam.el (xesam-refresh-entry):
      * lisp/org/org-agenda.el (org-agenda-show-clocking-issues)
      (org-agenda-check-clock-gap, org-agenda-to-appt):
      * lisp/org/org-capture.el (org-capture-set-target-location):
      * lisp/org/org-clock.el (org-clock-resolve-clock)
      (org-clocktable-steps):
      * lisp/org/org-colview.el (org-columns-edit-value)
      (org-columns, org-agenda-columns):
      * lisp/org/org-duration.el (org-duration-from-minutes):
      * lisp/org/org-element.el (org-element-cache-sync-duration)
      (org-element-cache-sync-break)
      (org-element--cache-interrupt-p, org-element--cache-sync):
      * lisp/org/org-habit.el (org-habit-get-faces)
      * lisp/org/org-indent.el (org-indent-add-properties):
      * lisp/org/org-table.el (org-table-sum):
      * lisp/org/org-timer.el (org-timer-show-remaining-time)
      (org-timer-set-timer):
      * lisp/org/org.el (org-babel-load-file, org-today)
      (org-auto-repeat-maybe, org-2ft, org-time-stamp)
      (org-read-date-analyze, org-time-stamp-to-now)
      (org-small-year-to-year, org-goto-calendar):
      * lisp/org/ox.el (org-export-insert-default-template):
      * lisp/ses.el (ses--time-check):
      * lisp/type-break.el (type-break-time-warning)
      (type-break-statistics, type-break-demo-boring):
      * lisp/url/url-cache.el (url-cache-expired)
      (url-cache-prune-cache):
      * lisp/vc/vc-git.el (vc-git-stash-snapshot):
      * lisp/erc/erc-match.el (erc-log-matches-come-back):
      Simplify.
      476066e8
  2. 01 Jan, 2019 1 commit
  3. 25 Nov, 2018 1 commit
    • Michael Heerdegen's avatar
      Replace insignificant backquotes · 1808d254
      Michael Heerdegen authored
      Replace most insignificant occurrences of '`' with a straight quote,
      sharp quote or nothing.  This includes backquotes in 'pcase' patterns.
      
      * admin/admin.el:
      * lisp/apropos.el:
      * lisp/arc-mode.el:
      * lisp/auth-source.el:
      * lisp/avoid.el:
      * lisp/bindings.el:
      * lisp/bs.el:
      * lisp/calculator.el:
      * lisp/calendar/todo-mode.el:
      * lisp/cedet/semantic.el:
      * lisp/cedet/semantic/analyze/debug.el:
      * lisp/cedet/semantic/bovine.el:
      * lisp/cedet/semantic/dep.el:
      * lisp/cedet/semantic/grammar.el:
      * lisp/cedet/semantic/wisent/comp.el:
      * lisp/cedet/semantic/wisent/grammar.el:
      * lisp/cedet/srecode/mode.el:
      * lisp/cus-edit.el:
      * lisp/doc-view.el:
      * lisp/elec-pair.el:
      * lisp/electric.el:
      * lisp/emacs-lisp/autoload.el:
      * lisp/emacs-lisp/benchmark.el:
      * lisp/emacs-lisp/byte-opt.el:
      * lisp/emacs-lisp/bytecomp.el:
      * lisp/emacs-lisp/cconv.el:
      * lisp/emacs-lisp/cl-extra.el:
      * lisp/emacs-lisp/cl-generic.el:
      * lisp/emacs-lisp/cl-macs.el:
      * lisp/emacs-lisp/copyright.el:
      * lisp/emacs-lisp/debug.el:
      * lisp/emacs-lisp/eieio-compat.el:
      * lisp/emacs-lisp/ert.el:
      * lisp/emacs-lisp/generator.el:
      * lisp/emacs-lisp/inline.el:
      * lisp/emacs-lisp/macroexp.el:
      * lisp/emacs-lisp/map.el:
      * lisp/emacs-lisp/package-x.el:
      * lisp/emacs-lisp/package.el:
      * lisp/emacs-lisp/radix-tree.el:
      * lisp/emacs-lisp/smie.el:
      * lisp/epa.el:
      * lisp/erc/erc-dcc.el:
      * lisp/erc/erc-track.el:
      * lisp/erc/erc.el:
      * lisp/eshell/em-ls.el:
      * lisp/eshell/esh-cmd.el:
      * lisp/files.el:
      * lisp/filesets.el:
      * lisp/font-lock.el:
      * lisp/frameset.el:
      * lisp/gnus/gnus-agent.el:
      * lisp/gnus/gnus-art.el:
      * lisp/gnus/gnus-cite.el:
      * lisp/gnus/gnus-group.el:
      * lisp/gnus/gnus-msg.el:
      * lisp/gnus/gnus-salt.el:
      * lisp/gnus/gnus-srvr.el:
      * lisp/gnus/gnus-sum.el:
      * lisp/gnus/gnus-topic.el:
      * lisp/gnus/gnus-util.el:
      * lisp/gnus/gnus.el:
      * lisp/gnus/message.el:
      * lisp/gnus/mm-util.el:
      * lisp/gnus/mml.el:
      * lisp/gnus/nnheader.el:
      * lisp/gnus/nnimap.el:
      * lisp/gnus/nnmairix.el:
      * lisp/gnus/spam.el:
      * lisp/hexl.el:
      * lisp/hi-lock.el:
      * lisp/ibuf-ext.el:
      * lisp/ibuffer.el:
      * lisp/ido.el:
      * lisp/info.el:
      * lisp/international/mule-cmds.el:
      * lisp/international/mule-util.el:
      * lisp/json.el:
      * lisp/jsonrpc.el:
      * lisp/language/cyrillic.el:
      * lisp/language/european.el:
      * lisp/language/georgian.el:
      * lisp/language/tibetan.el:
      * lisp/language/utf-8-lang.el:
      * lisp/language/vietnamese.el:
      * lisp/ldefs-boot.el:
      * lisp/mail/mail-extr.el:
      * lisp/man.el:
      * lisp/menu-bar.el:
      * lisp/mh-e/mh-acros.el:
      * lisp/mh-e/mh-folder.el:
      * lisp/mh-e/mh-mime.el:
      * lisp/mh-e/mh-show.el:
      * lisp/mh-e/mh-speed.el:
      * lisp/minibuffer.el:
      * lisp/mpc.el:
      * lisp/net/ange-ftp.el:
      * lisp/net/hmac-def.el:
      * lisp/net/newst-backend.el:
      * lisp/net/quickurl.el:
      * lisp/net/tramp-archive.el:
      * lisp/net/tramp-compat.el:
      * lisp/notifications.el:
      * lisp/obsolete/pgg-parse.el:
      * lisp/obsolete/vc-arch.el:
      * lisp/obsolete/xesam.el:
      * lisp/org/ob-C.el:
      * lisp/org/ob-core.el:
      * lisp/org/ob-exp.el:
      * lisp/org/ob-groovy.el:
      * lisp/org/ob-haskell.el:
      * lisp/org/ob-io.el:
      * lisp/org/ob-lisp.el:
      * lisp/org/ob-lob.el:
      * lisp/org/ob-lua.el:
      * lisp/org/ob-octave.el:
      * lisp/org/ob-perl.el:
      * lisp/org/ob-python.el:
      * lisp/org/ob-ref.el:
      * lisp/org/ob-ruby.el:
      * lisp/org/ob-sql.el:
      * lisp/org/org-agenda.el:
      * lisp/org/org-capture.el:
      * lisp/org/org-clock.el:
      * lisp/org/org-colview.el:
      * lisp/org/org-duration.el:
      * lisp/org/org-element.el:
      * lisp/org/org-entities.el:
      * lisp/org/org-gnus.el:
      * lisp/org/org-indent.el:
      * lisp/org/org-info.el:
      * lisp/org/org-inlinetask.el:
      * lisp/org/org-lint.el:
      * lisp/org/org-list.el:
      * lisp/org/org-mouse.el:
      * lisp/org/org-plot.el:
      * lisp/org/org-src.el:
      * lisp/org/org-table.el:
      * lisp/org/org.el:
      * lisp/org/ox-ascii.el:
      * lisp/org/ox-html.el:
      * lisp/org/ox-latex.el:
      * lisp/org/ox-man.el:
      * lisp/org/ox-md.el:
      * lisp/org/ox-org.el:
      * lisp/org/ox-publish.el:
      * lisp/org/ox-texinfo.el:
      * lisp/org/ox.el:
      * lisp/play/bubbles.el:
      * lisp/play/gamegrid.el:
      * lisp/progmodes/autoconf.el:
      * lisp/progmodes/cc-defs.el:
      * lisp/progmodes/cc-engine.el:
      * lisp/progmodes/cc-fonts.el:
      * lisp/progmodes/cc-langs.el:
      * lisp/progmodes/cperl-mode.el:
      * lisp/progmodes/ebrowse.el:
      * lisp/progmodes/elisp-mode.el:
      * lisp/progmodes/flymake-cc.el:
      * lisp/progmodes/flymake.el:
      * lisp/progmodes/fortran.el:
      * lisp/progmodes/grep.el:
      * lisp/progmodes/gud.el:
      * lisp/progmodes/idlwave.el:
      * lisp/progmodes/js.el:
      * lisp/progmodes/m4-mode.el:
      * lisp/progmodes/make-mode.el:
      * lisp/progmodes/mixal-mode.el:
      * lisp/progmodes/modula2.el:
      * lisp/progmodes/octave.el:
      * lisp/progmodes/opascal.el:
      * lisp/progmodes/prolog.el:
      * lisp/progmodes/ps-mode.el:
      * lisp/progmodes/python.el:
      * lisp/progmodes/ruby-mode.el:
      * lisp/progmodes/sh-script.el:
      * lisp/progmodes/sql.el:
      * lisp/progmodes/verilog-mode.el:
      * lisp/ps-mule.el:
      * lisp/rtree.el:
      * lisp/ruler-mode.el:
      * lisp/ses.el:
      * lisp/simple.el:
      * lisp/startup.el:
      * lisp/subr.el:
      * lisp/term/ns-win.el:
      * lisp/textmodes/bibtex.el:
      * lisp/textmodes/conf-mode.el:
      * lisp/textmodes/css-mode.el:
      * lisp/textmodes/refill.el:
      * lisp/textmodes/sgml-mode.el:
      * lisp/textmodes/tex-mode.el:
      * lisp/tutorial.el:
      * lisp/url/url-dav.el:
      * lisp/url/url-gw.el:
      * lisp/url/url-http.el:
      * lisp/url/url-methods.el:
      * lisp/url/url-privacy.el:
      * lisp/vc/cvs-status.el:
      * lisp/vc/diff-mode.el:
      * lisp/vc/ediff-init.el:
      * lisp/vc/ediff-ptch.el:
      * lisp/vc/log-edit.el:
      * lisp/vc/log-view.el:
      * lisp/vc/pcvs-info.el:
      * lisp/vc/pcvs.el:
      * lisp/vc/smerge-mode.el:
      * lisp/vc/vc-git.el:
      * lisp/vc/vc-hg.el:
      * lisp/vc/vc-mtn.el:
      * lisp/vc/vc-rcs.el:
      * lisp/whitespace.el:
      * lisp/window.el:
      * test/lisp/electric-tests.el:
      * test/lisp/emacs-lisp/cl-lib-tests.el:
      * test/lisp/emacs-lisp/ert-tests.el:
      * test/lisp/epg-tests.el:
      * test/lisp/jsonrpc-tests.el:
      * test/src/data-tests.el:
      * test/src/json-tests.el: Replace most insignificant backquotes.
      1808d254
  4. 29 Sep, 2018 1 commit
    • Tino Calancha's avatar
      Ibuffer filter by modes: Accept several mode names · 2296bf18
      Tino Calancha authored
      Extend all mode filters so that they handle >1 mode.
      For instance, if the users want to filter all buffers in
      C or C++ mode, then they can call the filter interactively
      with input: 'c-mode,c++-mode' (Bug#32731).
      
      * lisp/ibuf-macs.el(define-ibuffer-filter): Add key :accept-list.
      If the value of this key is non-nil, then the filter accepts
      either a single qualifier or a list of them; in the latter case,
      the resultant filter is the `or' composition of the individual ones.
      
      * lisp/ibuf-ext.el (ibuffer-filter-by-used-mode)
      (ibuffer-filter-by-mode, ibuffer-filter-by-derived-mode)
      Set :accept-list value non-nil.
      Interactively, accept a comma separated list of mode names.
      
      * etc/NEWS(Ibuffer): Announce this change.
      Co-authored-by: default avatarNoam Postavsky <npostavs@gmail.com>
      2296bf18
  5. 02 Jul, 2018 1 commit
    • John Shahid's avatar
      Optionally add argument description in minor mode DOC (bug#10754) · ee3e4323
      John Shahid authored
      Add a paragraph to minor mode's docstring documenting the mode's ARG
      usage if the supplied docstring doesn't already contain the word "ARG".
      
      * easy-mmode.el (easy-mmode--arg-docstring): New const.
      (easy-mmode--arg-docstring): New function.
      (define-minor-mode): Use them.
      
      Remove argument documentation from all minor modes.
      ee3e4323
  6. 21 Mar, 2018 1 commit
  7. 01 Jan, 2018 1 commit
  8. 20 Oct, 2017 2 commits
    • Tino Calancha's avatar
      ibuffer: new filter to list buffers running a process · f546c7fa
      Tino Calancha authored
      * lisp/ibuf-ext.el (ibuffer-filter-by-process): Add new filter (Bug#28825).
      * lisp/ibuffer.el (ibuffer-mode-map): Bound it to '/E'.
      ; * etc/NEWS (Changes in Specialized Modes and Packages in Emacs 27.1):
      ; Announce this change.
      f546c7fa
    • Tino Calancha's avatar
      Make ibuffer filters idempotent · ee6fe837
      Tino Calancha authored
      * lisp/ibuf-ext.el (ibuffer-push-filter): Check if the
      filter is already in effect (Bug#28826).
      * lisp/ibuf-macs.el (define-ibuffer-filter):
      Report to user if the filter was already enabled.
      ee6fe837
  9. 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
  10. 12 Sep, 2017 1 commit
    • Mark Oteiza's avatar
      Update uses of if-let and when-let · 370d0e7a
      Mark Oteiza authored
      * lisp/dom.el (dom-previous-sibling):
      * lisp/emacs-lisp/package.el (package--with-work-buffer):
      (package--sort-deps-in-alist, package--sort-by-dependence):
      (package-install-from-archive, package-install):
      (package-menu-execute, package-menu--populate-new-package-list):
      * lisp/filenotify.el (file-notify--rm-descriptor):
      (file-notify--event-watched-file, file-notify--event-file-name):
      (file-notify--event-file1-name, file-notify-rm-watch):
      (file-notify-valid-p):
      * lisp/gnus/message.el (message-toggle-image-thumbnails):
      * lisp/gnus/nnimap.el (nnimap-request-move-article):
      * lisp/ibuf-ext.el (ibuffer-repair-saved-filters):
      * lisp/mpc.el (mpc-format):
      * lisp/net/eww.el (eww-tag-meta, eww-process-text-input):
      (eww-save-history):
      * lisp/net/shr.el (shr-tag-base, shr-tag-object, shr-make-table-1):
      * lisp/progmodes/prog-mode.el (prettify-symbols--post-command-hook):
      * lisp/svg.el (svg-remove):
      * lisp/textmodes/css-mode.el (css--named-color):
      (css--colon-inside-funcall):
      * lisp/textmodes/sgml-mode.el (html-current-buffer-classes):
      (html-current-buffer-ids): Use if-let* and when-let* instead.
      370d0e7a
  11. 09 Feb, 2017 2 commits
    • Tino Calancha's avatar
      Ibuffer: Erase output buffer before shell commands · d9fd1d32
      Tino Calancha authored
      * lisp/ibuf-macs.el (define-ibuffer-op): Add keyword arguments
      BEFORE and AFTER; they are forms to run before/after the operation.
      * lisp/ibuf-ext.el (ibuffer--maybe-erase-shell-cmd-output):
      New defun; if shell-command-dont-erase-buffer is nil, then
      erase shell command output buffer.
      (ibuffer-do-shell-command-pipe, ibuffer-do-shell-command-file): Use it.
      d9fd1d32
    • Tino Calancha's avatar
      Ibuffer: Don't truncate shell command output · 1e23bf5c
      Tino Calancha authored
      * lisp/ibuf-ext.el (ibuffer-do-shell-command-pipe)
      (ibuffer-do-shell-command-pipe-replace)
      Use 'call-shell-region' (Bug#22679).
      (ibuffer-do-shell-command-file): Use call-process-shell-command.
      If FILE, the file that the buffer object is visiting,
      exists and the buffer is up-to-date, then use
      FILE instead of creating a temporary file (Bug#22679).
      1e23bf5c
  12. 01 Jan, 2017 1 commit
  13. 20 Dec, 2016 1 commit
    • Christopher Genovese's avatar
      ibuffer: New filters and commands · 35aaa6b6
      Christopher Genovese authored
      Add several new filters and improve documentation.
      See discussion on:
      https://lists.gnu.org/archive/html/emacs-devel/2016-11/msg00399.html
      * lisp/ibuf-ext.el: Add paragraph to file commentary.
      (ibuffer-saved-filters, ibuffer-filtering-qualifiers)
      (ibuffer-filter-groups): Update doc string.
      (ibuffer-unary-operand): Add new function that transparently
      handles 'not' formats for compound filters.
      (ibuffer-included-in-filter-p): Handle 'not' fully; update doc string.
      (ibuffer-included-in-filter-p-1): Handle 'and' compound filters.
      (ibuffer-decompose-filter): Handle 'and' as well,
      and handle 'not' consistently with other uses.
      (ibuffer-and-filter): New defun analogous to 'ibuffer-or-filter'.
      (ibuffer--or-and-filter): New defun.
      (ibuffer-or-filter, ibuffer-and-filter): Use it.
      (ibuffer-format-qualifier): Handle 'and' filters as well.
      (ibuffer-filter-by-basename, ibuffer-filter-by-file-extension)
      (ibuffer-filter-by-directory, ibuffer-filter-by-starred-name)
      (ibuffer-filter-by-modified, ibuffer-filter-by-visiting-file):
      Add new pre-defined filters.
      (ibuffer-filter-chosen-by-completion): Add new interactive command
      for easily choosing a filter from the descriptions.
      * lisp/ibuffer.el (ibuffer-mode-map):
      Bind ibuffer-filter-by-basename, ibuffer-filter-by-file-extension,
      ibuffer-filter-by-starred-name, ibuffer-filter-by-modified,
      ibuffer-filter-by-visiting-file to '/b', '/.', '/*', '/i', '/v'
      respectively; bind 'ibuffer-or-filter', 'ibuffer-and-filter',
      'ibuffer-pop-filter' ,'ibuffer-pop-filter-group' and
      'ibuffer-filter-disable' to '/|', '/&', '/<up>', '/S-<up>'
      and '/ DEL' respectively.
      * test/lisp/ibuffer-tests.el (ibuffer-autoload): Add appropriate
      skip specification.
      Add menu entries for the new filters.
      (ibuffer-filter-inclusion-1, ibuffer-filter-inclusion-2
      ibuffer-filter-inclusion-3, ibuffer-filter-inclusion-4
      ibuffer-filter-inclusion-5, ibuffer-filter-inclusion-6
      ibuffer-filter-inclusion-7, ibuffer-filter-inclusion-8
      ibuffer-decompose-filter, ibuffer-and-filter
      ibuffer-or-filter): Add new tests; they are skipped unless
      ibuf-ext is loaded.
      ; * etc/NEWS: Add entries for new user-facing features.
      35aaa6b6
  14. 07 Dec, 2016 4 commits
    • Tino Calancha's avatar
      Fix regression introduced by commit 7b1e97f0 · 55c1937e
      Tino Calancha authored
      * lisp/ibuf-ext.el (ibuffer-decompose-filter): Use cdr instead
      of cadr; required after commit 20f5a5b3.
      55c1937e
    • Tino Calancha's avatar
      ibuffer-decompose-filter-group avoid unwanted side effects · 53fefb55
      Tino Calancha authored
      * lisp/ibuf-ext.el (ibuffer-delete-alist): Remove it.
      (ibuffer-remove-alist): New defun; it supersedes 'ibuffer-delete-alist'.
      All callers changed (Bug#25058).
      * test/lisp/ibuffer-tests.el (ibuffer-test-Bug25058): Add test.
      53fefb55
    • Tino Calancha's avatar
      ibuffer-decompose-filter: Avoid side effects on error · 7b1e97f0
      Tino Calancha authored
      * lisp/ibuf-ext.el (ibuffer-decompose-filter):
      Update 'ibuffer-filtering-qualifiers' only if there is no error (Bug#24997).
      * test/lisp/ibuffer-tests.el (ibuffer-test-Bug24997):
      Update test result as pass.
      7b1e97f0
    • Christopher Genovese's avatar
      ibuffer-saved-filters: Remove extra nesting level · 20f5a5b3
      Christopher Genovese authored
      Fix Bug#25049.
      * lisp/ibuf-ext.el (ibuffer-saved-filters): Remove extra
      nesting level; add transparent setter to adjust old-format values;
      update doc string.
      (ibuffer-save-filters): Remove extra level of nesting
      in ibuffer-saved-filters values when saving new filters.
      (ibuffer-old-saved-filters-warning): New variable with
      clickable message with repair options to be displayed
      as a warning if 'ibuffer-repair-saved-filters' detects
      a format mismatch.
      (ibuffer-repair-saved-filters): Add new command to check and
      repair saved filters format.
      (ibuffer-included-in-filter-p, ibuffer-decompose-filter):
      Change access of saved filter data (cadr->cdr) to account
      for reduced nesting.
      * test/lisp/ibuffer-tests.el (ibuffer-save-filters):
      New test; check that filters are saved in the proper format.
      20f5a5b3
  15. 19 Nov, 2016 1 commit
  16. 16 Nov, 2016 1 commit
    • Tino Calancha's avatar
      Update parameter :version to 26.1 in several defcustom · 5ffdbe0a
      Tino Calancha authored
      Following defcustom where added or modified for 25.2 release.
      In fact all these changes belong to 26.1 release.
      * lisp/battery.el (battery-linux-sysfs-regexp)
      * lisp/comint.el (comint-password-prompt-regexp)
      * lisp/dired.el (dired-always-read-filesystem)
      * lisp/image.el (image-scaling-factor)
      * lisp/ibuf-ext.el (ibuffer-never-search-content-name)
      (ibuffer-never-search-content-mode)
      * lisp/mouse.el (mouse-select-region-move-to-beginning)
      * lisp/net/net-utils.el (iwconfig-program, iwconfig-program-options)
      (netstat-program, route-program, route-program-options)
      * lisp/net/sieve-manage.el (sieve-manage-default-stream)
      * lisp/progmodes/grep.el (grep-save-buffers)
      * lisp/vc/add-log.el (change-log-directory-files)
      * lisp/url/url-vars.el (url-user-agent)
      * lisp/vc/vc-hg.el (vc-hg-symbolic-revision-styles)
      (vc-hg-use-file-version-for-mode-line-version)
      (vc-hg-parse-hg-data-structures)
      * lisp/wdired.el (wdired-create-parent-directories)
      * lisp/faces.el (homoglyph, nobreak-hyphen, read-multiple-choice-face)
      * lisp/gnus/gnus-art.el (gnus-article-encrypt-protocol)
      (gnus-button-url-regexp)
      * lisp/window.el (switch-to-buffer-preserve-window-point)
      * lisp/ibuffer.el (ibuffer-formats, ibuffer-locked-char)
      (ibuffer-locked-buffer)
      * lisp/textmodes/flyspell.el (flyspell-sort-corrections-function)
      * lisp/emacs-lisp/edebug.el (edebug-sit-on-break)
      * lisp/gnus/message.el (message-user-fqdn)
      * lisp/simple.el (shell-command-dont-erase-buffer)
      (extended-command-suggest-shorter)
      * lisp/net/shr.el (shr-use-fonts)
      * lisp/files.el (mounted-file-systems, kill-emacs-query-functions)
      5ffdbe0a
  17. 23 Oct, 2016 1 commit
  18. 17 Oct, 2016 1 commit
  19. 03 Oct, 2016 1 commit
    • Tino Calancha's avatar
      Ibuffer: 'w' and 'B' default to buffer at current line · a7e9d1cc
      Tino Calancha authored
      See discussion in:
      https://lists.gnu.org/archive/html/emacs-devel/2016-09/msg00384.html
      * lisp/ibuffer.el (ibuffer--near-buffers): New defun;
      return buffers near current line.
      * lisp/ibuf-ext.el (ibuffer-copy-buffername-as-kill): Use it.
      Add argument ARG; if a non-zero integer, return next ARG buffers.
      Otherwise return the marked buffers.
      If there are not marked buffers, return buffer at current line
      without prompting the user.
      Use ibuffer-get-marked-buffers instead of ibuffer-map-marked-lines.
      Append to kill ring when last command was a kill-region.
      (ibuffer-copy-filename-as-kill): Idem.
      Simplify the code.
      Use ibuffer-buffer-file-name instead of buffer-file-name to
      include buffers in Dired mode.
      a7e9d1cc
  20. 27 Jul, 2016 1 commit
  21. 21 Jul, 2016 1 commit
  22. 11 Jul, 2016 1 commit
  23. 08 Jul, 2016 1 commit
    • Tino Calancha's avatar
      Copy buffer names to kill ring · 56c85512
      Tino Calancha authored
      * ibuf-ext.el (ibuffer-copy-buffername-as-kill): New command.
      * lisp/ibuffer (ibuffer-mode-map): Bound it to 'B'.
      ;* etc/NEWS: Add entry for this new feature.
      56c85512
  24. 07 Jul, 2016 1 commit
    • Tino Calancha's avatar
      Ibuffer: Mark locked buffers · 44517b21
      Tino Calancha authored
      * lisp/ibuf-ext.el (ibuffer-locked-buffer-p): New defun.
      (ibuffer-mark-by-locked): New command.
      (ibuffer-mode-map): Bind it to '% L'; update menus.
      (ibuffer-mode): Update mode doc.
      ;* etc/NEWS: Add NEWS entry for these changes and previous two commits.
      44517b21
  25. 03 Jul, 2016 2 commits
    • Tino Calancha's avatar
      Ibuffer: Mark buffers by content · 08974112
      Tino Calancha authored
      * lisp/ibuf-ext.el (ibuffer-mark-by-content-regexp): New command.
      (ibuffer-never-search-content-name): New option.
      (ibuffer-never-search-content-mode): Idem.
      (ibuffer-mark-by-content-regexp): Use them (Bug#23734).
      
      * lisp/ibuffer.el (ibuffer-mode-map): Bind new command to '% c' and '% g'.
      (ibuffer-mode): Update mode documentation.
      ; * etc/NEWS: Add NEWS entry for these changes.
      08974112
    • Tino Calancha's avatar
      ibuffer-copy-filename-as-kill verbosity increase · 0d06e943
      Tino Calancha authored
      * lisp/ibuf-ext.el (ibuffer-copy-filename-as-kill):
      Use shorter name, result, for a local bound var.
      Show the string result in the echo area.
      0d06e943
  26. 07 Jun, 2016 1 commit
  27. 23 Feb, 2016 2 commits
  28. 01 Jan, 2016 1 commit
  29. 17 Dec, 2015 1 commit
    • Phillip Lord's avatar
      ibuffer generate autoloads to non-versioned file. · a014779f
      Phillip Lord authored
      * lisp/Makefile.in: Add ibuffer-loaddefs to autogenel.
      * lisp/ibuf-ext.el: Update file local.
      * lisp/ibuffer.el: Remove autoloads and add a require.
      * test/lisp/ibuffer-tests.el: Test that autoload is working.
      a014779f
  30. 25 Aug, 2015 1 commit
    • Paul Eggert's avatar
      Prefer directed to neutral quotes · 875a5d0e
      Paul Eggert authored
      Prefer directed to neutral quotes in docstings and diagnostics.
      In docstrings, escape apostrophes that would otherwise be translated
      to curved quotes using the newer, simpler rules.
      * admin/unidata/unidata-gen.el (unidata-gen-table):
      * lisp/align.el (align-region):
      * lisp/allout.el (allout-mode, allout-solicit-alternate-bullet):
      * lisp/bookmark.el (bookmark-default-annotation-text):
      * lisp/calc/calc-aent.el (math-read-if, math-read-factor):
      * lisp/calc/calc-lang.el (math-read-giac-subscr)
      (math-read-math-subscr):
      * lisp/calc/calc-misc.el (report-calc-bug):
      * lisp/calc/calc-prog.el (calc-fix-token-name)
      (calc-read-parse-table-part):
      * lisp/cedet/ede/pmake.el (ede-proj-makefile-insert-dist-rules):
      * lisp/cedet/semantic/complete.el (semantic-displayor-show-request):
      * lisp/dabbrev.el (dabbrev-expand):
      * lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
      * lisp/emacs-lisp/elint.el (elint-get-top-forms):
      * lisp/emacs-lisp/lisp-mnt.el (lm-verify):
      * lisp/emulation/viper-cmd.el (viper-toggle-search-style):
      * lisp/erc/erc-button.el (erc-nick-popup):
      * lisp/erc/erc.el (erc-cmd-LOAD, erc-handle-login):
      * lisp/eshell/em-dirs.el (eshell/cd):
      * lisp/eshell/em-glob.el (eshell-glob-regexp):
      * lisp/eshell/em-pred.el (eshell-parse-modifiers):
      * lisp/eshell/esh-arg.el (eshell-parse-arguments):
      * lisp/eshell/esh-opt.el (eshell-show-usage):
      * lisp/files-x.el (modify-file-local-variable):
      * lisp/filesets.el (filesets-add-buffer, filesets-remove-buffer)
      (filesets-update-pre010505):
      * lisp/find-cmd.el (find-generic, find-to-string):
      * lisp/gnus/auth-source.el (auth-source-netrc-parse-entries):
      * lisp/gnus/gnus-agent.el (gnus-agent-check-overview-buffer)
      (gnus-agent-fetch-headers):
      * lisp/gnus/gnus-int.el (gnus-start-news-server):
      * lisp/gnus/gnus-registry.el:
      (gnus-registry--split-fancy-with-parent-internal):
      * lisp/gnus/gnus-score.el (gnus-summary-increase-score):
      * lisp/gnus/gnus-start.el (gnus-convert-old-newsrc):
      * lisp/gnus/gnus-topic.el (gnus-topic-rename):
      * lisp/gnus/legacy-gnus-agent.el (gnus-agent-unlist-expire-days):
      * lisp/gnus/nnmairix.el (nnmairix-widget-create-query):
      * lisp/gnus/spam.el (spam-check-blackholes):
      * lisp/mail/feedmail.el (feedmail-run-the-queue):
      * lisp/mpc.el (mpc-playlist-rename):
      * lisp/net/ange-ftp.el (ange-ftp-shell-command):
      * lisp/net/mairix.el (mairix-widget-create-query):
      * lisp/net/tramp-cache.el:
      * lisp/obsolete/otodo-mode.el (todo-more-important-p):
      * lisp/obsolete/pgg-gpg.el (pgg-gpg-process-region):
      * lisp/obsolete/pgg-pgp.el (pgg-pgp-process-region):
      * lisp/obsolete/pgg-pgp5.el (pgg-pgp5-process-region):
      * lisp/org/ob-core.el (org-babel-goto-named-src-block)
      (org-babel-goto-named-result):
      * lisp/org/ob-fortran.el (org-babel-fortran-ensure-main-wrap):
      * lisp/org/ob-ref.el (org-babel-ref-resolve):
      * lisp/org/org-agenda.el (org-agenda-prepare):
      * lisp/org/org-bibtex.el (org-bibtex-fields):
      * lisp/org/org-clock.el (org-clock-notify-once-if-expired)
      (org-clock-resolve):
      * lisp/org/org-feed.el (org-feed-parse-atom-entry):
      * lisp/org/org-habit.el (org-habit-parse-todo):
      * lisp/org/org-mouse.el (org-mouse-popup-global-menu)
      (org-mouse-context-menu):
      * lisp/org/org-table.el (org-table-edit-formulas):
      * lisp/org/ox.el (org-export-async-start):
      * lisp/play/dunnet.el (dun-score, dun-help, dun-endgame-question)
      (dun-rooms, dun-endgame-questions):
      * lisp/progmodes/ada-mode.el (ada-goto-matching-start):
      * lisp/progmodes/ada-xref.el (ada-find-executable):
      * lisp/progmodes/antlr-mode.el (antlr-options-alists):
      * lisp/progmodes/flymake.el (flymake-parse-err-lines)
      (flymake-start-syntax-check-process):
      * lisp/progmodes/python.el (python-define-auxiliary-skeleton):
      * lisp/progmodes/sql.el (sql-comint):
      * lisp/progmodes/verilog-mode.el (verilog-load-file-at-point):
      * lisp/server.el (server-get-auth-key):
      * lisp/subr.el (version-to-list):
      * lisp/textmodes/reftex-ref.el (reftex-label):
      * lisp/textmodes/reftex-toc.el (reftex-toc-rename-label):
      * lisp/vc/ediff-diff.el (ediff-same-contents):
      * lisp/vc/vc-cvs.el (vc-cvs-mode-line-string):
      * test/automated/tramp-tests.el (tramp-test33-asynchronous-requests):
      Use directed rather than neutral quotes in diagnostics.
      875a5d0e
  31. 01 Jan, 2015 2 commits
  32. 22 Sep, 2014 1 commit
    • Stefan Monnier's avatar
      Use lexical-bindin in Ibuffer. · 601a0cfe
      Stefan Monnier authored
      * lisp/ibuffer.el (ibuffer-do-toggle-read-only): `arg' is unused.
      (ibuffer-compile-format): Simplify.
      (ibuffer-clear-summary-columns): Simplify.
      * lisp/ibuf-ext.el (ibuffer-generate-filter-groups): Don't use the third
      elem of dotimes when we don't refer to the iteration var from it.
      (ibuffer-toggle-sorting-mode): Avoid add-to-list.
      * lisp/ibuf-macs.el (define-ibuffer-column, define-ibuffer-op):
      Silence byte-compiler.
      601a0cfe