Check for words which are not classes but have a $class-description element anyway
							parent
							
								
									712711e869
								
							
						
					
					
						commit
						b3f09a9aed
					
				| 
						 | 
					@ -132,6 +132,11 @@ SYMBOL: vocabs-quot
 | 
				
			||||||
        [ check-descriptions ]
 | 
					        [ check-descriptions ]
 | 
				
			||||||
    } cleave ;
 | 
					    } cleave ;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					: check-class-description ( word element -- )
 | 
				
			||||||
 | 
					    [ class? not ]
 | 
				
			||||||
 | 
					    [ { $class-description } swap elements empty? not ] bi* and
 | 
				
			||||||
 | 
					    [ "A word that is not a class has a $class-description" throw ] when ;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
: all-word-help ( words -- seq )
 | 
					: all-word-help ( words -- seq )
 | 
				
			||||||
    [ word-help ] filter ;
 | 
					    [ word-help ] filter ;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -153,7 +158,8 @@ M: help-error error.
 | 
				
			||||||
        dup '[
 | 
					        dup '[
 | 
				
			||||||
            _ dup word-help
 | 
					            _ dup word-help
 | 
				
			||||||
            [ check-values ]
 | 
					            [ check-values ]
 | 
				
			||||||
            [ nip [ check-nulls ] [ check-see-also ] [ check-markup ] tri ] 2bi
 | 
					            [ check-class-description ]
 | 
				
			||||||
 | 
					            [ nip [ check-nulls ] [ check-see-also ] [ check-markup ] tri ] 2tri
 | 
				
			||||||
        ] check-something
 | 
					        ] check-something
 | 
				
			||||||
    ] [ drop ] if ;
 | 
					    ] [ drop ] if ;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue