Skip to content

Commit

Permalink
Cosmetic changes to tablist
Browse files Browse the repository at this point in the history
  • Loading branch information
monnier authored and Andreas Politz committed Feb 20, 2017
1 parent f13b8f0 commit c834a84
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
*-autoloads.el
*-pkg.el
*.elc
.dir-locals.el
.cask
11 changes: 6 additions & 5 deletions tablist-filter.el
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
;;; tablist-filter.el --- Filter expressions for tablists.
;;; tablist-filter.el --- Filter expressions for tablists. -*- lexical-binding:t -*-

;; Copyright (C) 2013, 2014 Andreas Politz

Expand All @@ -22,7 +22,8 @@

;;

(let (python-mode-hook)
(defvar python-mode-hook)
(let (python-mode-hook) ;FIXME: Why?
(require 'semantic/wisent/comp)
(require 'semantic/wisent/wisent))

Expand Down Expand Up @@ -268,12 +269,12 @@
(car item)
item)))

(defun tablist-filter-op-equal (id entry op1 op2)
(defun tablist-filter-op-equal (_id entry op1 op2)
"COLUMN == STRING : Matches if COLUMN's entry is equal to STRING."
(let ((item (tablist-filter-get-item-by-name entry op1)))
(string= item op2)))

(defun tablist-filter-op-regexp (id entry op1 op2)
(defun tablist-filter-op-regexp (_id entry op1 op2)
"COLUMN =~ REGEXP : Matches if COLUMN's entry matches REGEXP."
(let ((item (tablist-filter-get-item-by-name entry op1)))
(string-match op2 item)))
Expand All @@ -298,7 +299,7 @@
"COLUMN = NUMBER : Matches if COLUMN's entry as a number is equal to NUMBER."
(tablist-filter-op-numeric '= id entry op1 op2))

(defun tablist-filter-op-numeric (op id entry op1 op2)
(defun tablist-filter-op-numeric (op _id entry op1 op2)
(let ((item (tablist-filter-get-item-by-name entry op1)))
(funcall op (string-to-number item)
(string-to-number op2))))
Expand Down
4 changes: 3 additions & 1 deletion tablist.el
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
;; using tablist-minor-mode inside a tabulated-list-mode buffer.
;;

;;; Code:

(require 'cl-lib)
(require 'ring)
(require 'tabulated-list)
Expand Down Expand Up @@ -537,7 +539,7 @@ OLD and NEW are both characters used to mark files."
(pcase new
(?D
(tablist-flag-forward 1))
(t
(_
(let ((tablist-marker-char new)
(tablist-marked-face
(and default-mark-p
Expand Down

0 comments on commit c834a84

Please sign in to comment.