comparison lisp/progmodes/idlwave.el @ 47261:863b1f0c98f8

(idlwave-support-inheritance, idlwave-routine-entry-compare): Fix spacing.
author Juanma Barranquero <lekktu@gmail.com>
date Fri, 06 Sep 2002 07:16:01 +0000
parents 8eeb03f91048
children 0e5a022947e9
comparison
equal deleted inserted replaced
47260:b0b872e61fc5 47261:863b1f0c98f8
3 3
4 ;; Author: Carsten Dominik <dominik@astro.uva.nl> 4 ;; Author: Carsten Dominik <dominik@astro.uva.nl>
5 ;; Chris Chase <chase@att.com> 5 ;; Chris Chase <chase@att.com>
6 ;; Maintainer: J.D. Smith <jdsmith@as.arizona.edu> 6 ;; Maintainer: J.D. Smith <jdsmith@as.arizona.edu>
7 ;; Version: 4.14 7 ;; Version: 4.14
8 ;; Date: $Date: 2002/07/18 18:58:07 $ 8 ;; Date: $Date: 2002/08/30 11:02:31 $
9 ;; Keywords: languages 9 ;; Keywords: languages
10 10
11 ;; This file is part of GNU Emacs. 11 ;; This file is part of GNU Emacs.
12 12
13 ;; GNU Emacs is free software; you can redistribute it and/or modify 13 ;; GNU Emacs is free software; you can redistribute it and/or modify
602 :group 'idlwave-completion 602 :group 'idlwave-completion
603 :type 'boolean) 603 :type 'boolean)
604 604
605 (defcustom idlwave-support-inheritance t 605 (defcustom idlwave-support-inheritance t
606 "Non-nil means, treat inheritance with completion, online help etc. 606 "Non-nil means, treat inheritance with completion, online help etc.
607 When nil, IDLWAVE only knows about the native methods and tags of a class, 607 When nil, IDLWAVE only knows about the native methods and tags of a class,
608 not about inherited ones." 608 not about inherited ones."
609 :group 'idlwave-routine-info 609 :group 'idlwave-routine-info
610 :type 'boolean) 610 :type 'boolean)
611 611
612 (defcustom idlwave-keyword-class-inheritance '("^[gs]etproperty$" "^init$") 612 (defcustom idlwave-keyword-class-inheritance '("^[gs]etproperty$" "^init$")
7662 (not (and ,a ,b)))) 7662 (not (and ,a ,b))))
7663 7663
7664 (defun idlwave-routine-entry-compare (a b) 7664 (defun idlwave-routine-entry-compare (a b)
7665 "Compare two routine info entries for sortiung. This is the general case. 7665 "Compare two routine info entries for sortiung. This is the general case.
7666 It first compates class, names, and type. If it turns out that A and B 7666 It first compates class, names, and type. If it turns out that A and B
7667 are twins (same name, class, and type), calls another routine which 7667 are twins (same name, class, and type), calls another routine which
7668 compares twins on the basis of their file names and path locations." 7668 compares twins on the basis of their file names and path locations."
7669 (let ((name (car a)) (type (nth 1 a)) (class (nth 2 a))) 7669 (let ((name (car a)) (type (nth 1 a)) (class (nth 2 a)))
7670 (cond 7670 (cond
7671 ((not (equal (idlwave-downcase-safe class) 7671 ((not (equal (idlwave-downcase-safe class)
7672 (idlwave-downcase-safe (nth 2 b)))) 7672 (idlwave-downcase-safe (nth 2 b))))