[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/idlwave c706a55e6a 063/360: Fixed TPOOL keyword linking
From: |
ELPA Syncer |
Subject: |
[elpa] externals/idlwave c706a55e6a 063/360: Fixed TPOOL keyword linking. |
Date: |
Sun, 28 Apr 2024 00:59:09 -0400 (EDT) |
branch: externals/idlwave
commit c706a55e6af8df2ee9e94d0b7ad0e18bb252fa01
Author: jdsmith <jdsmith>
Commit: jdsmith <jdsmith>
Fixed TPOOL keyword linking.
Removed dependence on helpcode, instead writing a file
idlw-help-topics.el which will be integrated into idlw-help.el at
make install-help time.
---
get_rinfo | 102 +++++++++++++++++++++-----------------------------------------
1 file changed, 35 insertions(+), 67 deletions(-)
diff --git a/get_rinfo b/get_rinfo
index fcdc7ebede..f2d8bebc04 100755
--- a/get_rinfo
+++ b/get_rinfo
@@ -1,5 +1,5 @@
#!/usr/bin/perl
-
+#
# Program to extract the information from the IDL manuals and IDL to
# support IDLWAVE.
# (c) 1999, 2000 Carsten Dominik <dominik@astro.uva.nl>
@@ -14,7 +14,7 @@
#
# Call this program from the command line like this:
#
-# get_rinfo --path path/to/pdffiles/ --idl /path/to/idl/executable
+# get_rinfo -path path/to/pdffiles/ --idl /path/to/idl/executable
#
# This will convert the PDF files to ASCII, extract routine information,
# talk to IDL and write the following files which are needed by IDLWAVE:
@@ -125,7 +125,7 @@
# 5. UPDATE: Multi-Threading routines
# --------------------------------
# Routines that should have links to the MULTI-THREADING keywords,
-# as described in teh documentation for routine CPU, because of
+# as described in the documentation for routine CPU, because of
# their keywords are described there. As of IDL v5.5, these
# keywords were not covered in the main documentation, and instead
# were added using a fixup file. Future version of IDL should
@@ -168,14 +168,15 @@ require 5.004;
# These are the files which contain "Syntax" descriptions.
@rifiles = ("refguide.pdf","sdf.pdf","datamine.pdf","edg.pdf","obsolete.pdf",
"whatsnew55.pdf");
+#@rifiles= ("refguide.pdf");
-# Set the list of files which will be used for fast online help.
-# More or less the same files as above, but you can leave out
-# long files which have only one or two Syntax entries, like
-# edg.pdf or insight.pdf. Leaving them out makes the help file smaller.
+# Set the list of files which will be used to create fast online help.
+# More or less the same files as above, but you can leave out long
+# files which have only one or two Syntax entries, like edg.pdf or
+# insight.pdf. Leaving them out makes the help file smaller.
@olhfiles = ("refguide.pdf","sdf.pdf","datamine.pdf","obsolete.pdf",
"whatsnew55.pdf");
-
+#@olhfiles=("refguide.pdf");
# Parse command line options and make file names
use Getopt::Long;
GetOptions("-debug" => \$debug,
@@ -216,7 +217,7 @@ $idl = $idl || "idl";
# Establish default output file names
$rinfofile = "idlw-rinfo.el";
$helpfile = "idlw-help.txt";
-$topicsfile = "idlw-help.el";
+$topicsfile = "idlw-help-topics.el";
# Establish default for the wrap width
$wrapwidth = 65;
@@ -575,7 +576,7 @@ foreach $file (@files) {
# FIXME: When the threaded-routines are finally documented,
# the following will be unnecessary.
push @{$e{$class}{$type}{$name}{kwds}},
- qw(TPOOL_MAX_ELTS TPOOL_MIN_ELTS TPOOL_NTHREADS);
+ qw(TPOOL_MAX_ELTS TPOOL_MIN_ELTS TPOOL_NOTHREAD);
}
}
} continue { # Always write the help text, even if skipped.
@@ -874,7 +875,8 @@ sub check_special_keywords {
my ($class,$name) = @_;
my $fullname = uc(make_full_name($class,$name));
foreach $special (keys %routines_with_special_keywords) {
- if ( scalar(grep(/^$name$/,@{$routines_with_special_keywords{$special}}))
+ if ( scalar(grep(/^$fullname$/,
+ @{$routines_with_special_keywords{$special}}))
&& !$has_special_keywords{$special}) {
$has_special_keywords{$special} = 1;
complain($parts{call},$file,
@@ -1461,6 +1463,17 @@ BEGIN {
1;
} else {0}
},
+
+ sname("THREAD POOL KEYWORDS") =>
+ sub {
+ if ($syntax =~ /Graphics +Keywords *:/i) {
+ $act = 1;
+ $has_special_keywords{Graphics} = 1;
+ 1;
+ } else {0}
+ },
+
+
# ------------------------------------------------------------------
# Typos ------------------------------------------------------------
# ------------------------------------------------------------------
@@ -1566,7 +1579,6 @@ BEGIN {
} else {0}
}
);
-
# UPDATE: Graphics Keywords Routines
# ----------------------------------
# Routines that should have links to the GRAPHICS KEYWORDS section.
@@ -1576,10 +1588,10 @@ BEGIN {
# have this magic cookie will get theirs links set.
%routines_with_special_keywords =
(Graphics=>
- qw(AXIS CONTOUR CURSOR DRAW_ROI ERASE MAP_SET OPLOT PLOT PLOTS
- PLOT_3DBOX POLYFILL SHADE_SURF SURFACE TV TVCRS TVRD TVSCL XYOUTS),
-
- # UPDATE: Threading Keywords Routines
+ [qw(AXIS CONTOUR DRAW_ROI ERASE MAP_SET MAP_GRID MAP_CONTINENTS
+ OPLOT PLOT PLOTS PLOT_3DBOX POLYFILL SHADE_SURF SURFACE TV TVCRS
+ TVRD TVSCL XYOUTS)],
+ # UPDATE: Threading Keywords Routines
# ----------------------------------
# Routines that should have links to the THREADING KEYWORDS section.
# As of v5.5, it's unclear how these keywords will be indicated in
@@ -1587,15 +1599,13 @@ BEGIN {
# New in IDL 5.5" document. Presumably, a %specials section which
# checks and adds an extra_keyword_topics, and sets
# $has_threading_keywords is called for.
- @routines_with_threading_keywords =
-
MultiThreading=>
- qw(ABS ACOS ALOG ALOG10 ASIN ATAN BINDGEN BYTE BYTEORDER BYTSCL CEIL
+ [qw(ABS ACOS ALOG ALOG10 ASIN ATAN BINDGEN BYTE BYTEORDER BYTSCL CEIL
CINDGEN COMPLEX CONJ CONVOL COS DCINDGEN DCOMPLEX DINDGEN DOUBLE
ERRORF EXP EXPINT FFT FINDGEN FINITE FIX FLOAT FLOOR GAMMA GAUSSINIT
IMAGINARY INDGEN INTERPOLATE ISHFT L64INDGEN LINDGEN LNGAMMA LONG64
MAX MIN POLY_2D REPLICATE ROUND SIN SINH SQRT TAN TANH TOTAL TVSCL
- UINDGEN UINT UL64INDGEN ULINDGEN ULONG64 UNLONG VOIGT WHERE));
+ UINDGEN UINT UL64INDGEN ULINDGEN ULONG64 UNLONG VOIGT WHERE)]);
# UPDATE: Special help topics
# ---------------------------
@@ -1965,9 +1975,7 @@ sub write_help {
}
sub open_help_file {
- # Open the files for fast online help
- die "Cannot find required \"helpcode\" file from the IDLWAVE distribution\n"
- unless -e "helpcode";
+ # Open the file for fast online help
open HELP, ">$helpfile" or die "Cannot write to $helpfile\n";
write_help_header();
}
@@ -2023,7 +2031,6 @@ sub write_topics_file {
open HELP, "$helpfile" or die "Cannot read $helpfile\n";
open TOPICS, ">$topicsfile" or die "Cannot write to $topicsfile\n";
write_topics_header();
- write_topics_code();
print TOPICS "(setq idlwave-help-topics\n '(\n";
my $sysvar_region = 0;
my $cnt = -1;
@@ -2115,65 +2122,23 @@ EOF
EOF
printf TOPICS "(setq idlwave-help-frame-width %d)\n",
$nowrap ? 102 : $wrapwidth+2;
- write_topics_footer();
close TOPICS;
printf STDERR "Wrote file $topicsfile (%4d kBytes)\n",
(-s $topicsfile)/1000.;
}
-
+
sub write_topics_header {
- my ($part_of) = $lisp_not_part_of_gnu_emacs;
$date = localtime;
chomp $date;
($progname = $0) =~ s|.*/||;
chomp $progname;
$n_files_scanned = @files;
print TOPICS <<EOF;
-;;; $topicsfile --- Help code and topics for IDLWAVE
-;; Copyright (c) 2000 Carsten Dominik
-;; Copyright (c) 2001, 2002 J.D.Smith
-;;
-;; Author: Carsten Dominik <dominik\@astro.uva.nl>
-;; Maintainer: J.D. Smith <jdsmith\@as.arizona.edu>
-;; Version: VERSIONTAG
-$part_of
-;;; Commentary:
-
-;; The constants which contain the topics information for IDLWAVE's
-;; online help feature. This information is extracted automatically from
-;; the IDL documentation.
-;;
;; Created by $progname on $date
;; IDL version: $idlversion
-;;
-;; New versions of IDLWAVE, documentation, and more information
-;; available from:
-;; http://idlwave.org
-;;
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
-;;; Code:
-
EOF
-}
-
-sub write_topics_code {
- # Write the Emacs Lisp code section
- open HELPCODE,"helpcode" or die "Cannot open file helpcode";
- while ($_=<HELPCODE>) {
- next if /^;;;;;;00/;
- print TOPICS;
- }
}
-sub write_topics_footer {
- print TOPICS <<EOF
-
-;;; $topicsfile ends here
-EOF
-} #'
-
-
sub talk_to_idl {
# Run IDL and get some important information
my $code;
@@ -2508,3 +2473,6 @@ Carsten Dominik <dominik@astro.uva.nl>
J.D. Smith <jdsmith@astro.cornell.edu>
=cut
+
+
+
- [elpa] externals/idlwave 0f6c08f6c3 245/360: Streamline logical statements, etc., (continued)
- [elpa] externals/idlwave 0f6c08f6c3 245/360: Streamline logical statements, etc., ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 6cae5a09b1 232/360: Shutdown the help viewer when closing., ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 25748e3cd2 209/360: Deal with multiple locations for idl_catalog.xml file (post v7), ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 91be96e694 229/360: When no state is found during a scan, clear the highlight line., ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 7035d9b6e8 252/360: Only turn off edebug if debug buffer list set., ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 13e28eb817 201/360: Take more care during examine, not relying on the prompts absolutely., ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 89b6911110 277/360: Don't attempt to "escape main" on retall., ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 3ead12e7b4 352/360: idlw-shell: use make-local-variable, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 45cb917caf 111/360: - Skip empty dirs, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 5f67438d6c 025/360: /home2 -> /home, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave c706a55e6a 063/360: Fixed TPOOL keyword linking.,
ELPA Syncer <=
- [elpa] externals/idlwave cff2da49cf 076/360: - Initial import, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave d7ec262ad3 082/360: - Updated with savannah doc-fixes., ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 5da01c9c80 263/360: Correctly find structure definition name, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 03dc4369ae 046/360: Fix version in help files also., ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave acc9b5c85e 052/360: Added .PHONY tags where appropriate, and prevented get_rinfo updates, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave dd5bb7ebee 067/360: comment., ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave b7c6a4a5ee 110/360: - Scan for executive commands., ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 231e1e3dca 103/360: - Lots of updates to support the completely different HTML formatting, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave fcb9149ccb 141/360: - Updated copyright dates., ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave bba75c7901 148/360: - Added new XML routines to parse XML into idl_xml_rinfo.el., ELPA Syncer, 2024/04/28