Class: Relisp::Overlay

Inherits:
Proxy show all
Defined in:
lib/relisp/type_conversion/editing_types.rb

Overview

A proxy to an Emacs Overlay

Instance Attribute Summary

Attributes inherited from Proxy

#elisp_variable, #slave

Instance Method Summary collapse

Methods inherited from Proxy

from_elisp, #to_elisp

Constructor Details

#initialize(*args) ⇒ Overlay

args can be any of these forms:

  • (symbol, slave = Relisp.default_slave)

  • (start, end, buffer = nil, front_advance = nil, rear_advance = nil, slave = Relisp.default_slave)

  • (start, end, buffer = nil, slave = Relisp.default_slave)

  • (start, end, slave = Relisp.default_slave)

When a symbol is given it is considered to be the name of a pre-existing overlay in the slave process. Otherwise a new overlay is created (make-overlay).



993
994
995
996
997
# File 'lib/relisp/type_conversion/editing_types.rb', line 993

def initialize(*args)
  super do |args|
    @slave.elisp_exec( "(setq #{@elisp_variable} (make-overlay #{args.join(' ')}))" )
  end
end

Instance Method Details

#after_stringObject



1143
1144
1145
# File 'lib/relisp/type_conversion/editing_types.rb', line 1143

def after_string
  get_property :after_string
end

#after_string=(new_value) ⇒ Object



1147
1148
1149
# File 'lib/relisp/type_conversion/editing_types.rb', line 1147

def after_string=(new_value)
  set_property :after_string, new_value
end

#before_stringObject



1135
1136
1137
# File 'lib/relisp/type_conversion/editing_types.rb', line 1135

def before_string
  get_property :before_string
end

#before_string=(new_value) ⇒ Object



1139
1140
1141
# File 'lib/relisp/type_conversion/editing_types.rb', line 1139

def before_string=(new_value)
  set_property :before_string, new_value
end

#bufferObject



1007
1008
1009
# File 'lib/relisp/type_conversion/editing_types.rb', line 1007

def buffer
  call_on_self :overlay_buffer
end

#categoryObject



1055
1056
1057
# File 'lib/relisp/type_conversion/editing_types.rb', line 1055

def category
  get_property :category
end

#category=(new_value) ⇒ Object



1059
1060
1061
# File 'lib/relisp/type_conversion/editing_types.rb', line 1059

def category=(new_value)
  set_property :category, new_value
end

#deleteObject



1011
1012
1013
# File 'lib/relisp/type_conversion/editing_types.rb', line 1011

def delete
  call_on_self :delete_overlay
end

#displayObject



1079
1080
1081
# File 'lib/relisp/type_conversion/editing_types.rb', line 1079

def display
  get_property :display
end

#display=(new_value) ⇒ Object



1083
1084
1085
# File 'lib/relisp/type_conversion/editing_types.rb', line 1083

def display=(new_value)
  set_property :display, new_value
end

#endObject



1003
1004
1005
# File 'lib/relisp/type_conversion/editing_types.rb', line 1003

def end
  call_on_self :overlay_end
end

#end=(new_end) ⇒ Object



1023
1024
1025
# File 'lib/relisp/type_conversion/editing_types.rb', line 1023

def end=(new_end)
  call_on_self :move_overlay, self.start, new_end
end

#evaporateObject



1151
1152
1153
# File 'lib/relisp/type_conversion/editing_types.rb', line 1151

def evaporate
  get_property :evaporate
end

#evaporate=(new_value) ⇒ Object



1155
1156
1157
# File 'lib/relisp/type_conversion/editing_types.rb', line 1155

def evaporate=(new_value)
  set_property :evaporate, new_value
end

#faceObject



1063
1064
1065
# File 'lib/relisp/type_conversion/editing_types.rb', line 1063

def face
  get_property :face
end

#face=(new_value) ⇒ Object



1067
1068
1069
# File 'lib/relisp/type_conversion/editing_types.rb', line 1067

def face=(new_value)
  set_property :face, new_value
end

#help_echoObject



1087
1088
1089
# File 'lib/relisp/type_conversion/editing_types.rb', line 1087

def help_echo
  get_property :help_echo
end

#help_echo=(new_value) ⇒ Object



1091
1092
1093
# File 'lib/relisp/type_conversion/editing_types.rb', line 1091

def help_echo=(new_value)
  set_property :help_echo, new_value
end

#insert_behind_hooksObject



1111
1112
1113
# File 'lib/relisp/type_conversion/editing_types.rb', line 1111

def insert_behind_hooks
  get_property :insert_behind_hooks
end

#insert_behind_hooks=(new_value) ⇒ Object



1115
1116
1117
# File 'lib/relisp/type_conversion/editing_types.rb', line 1115

def insert_behind_hooks=(new_value)
  set_property :insert_behind_hooks, new_value
end

#insert_in_front_hooksObject



1103
1104
1105
# File 'lib/relisp/type_conversion/editing_types.rb', line 1103

def insert_in_front_hooks
  get_property :insert_in_front_hooks
end

#insert_in_front_hooks=(new_value) ⇒ Object



1107
1108
1109
# File 'lib/relisp/type_conversion/editing_types.rb', line 1107

def insert_in_front_hooks=(new_value)
  set_property :insert_in_front_hooks, new_value
end

#intangibleObject



1127
1128
1129
# File 'lib/relisp/type_conversion/editing_types.rb', line 1127

def intangible
  get_property :intangible
end

#intangible=(new_value) ⇒ Object



1131
1132
1133
# File 'lib/relisp/type_conversion/editing_types.rb', line 1131

def intangible=(new_value)
  set_property :intangible, new_value
end

#invisibleObject



1119
1120
1121
# File 'lib/relisp/type_conversion/editing_types.rb', line 1119

def invisible
  get_property :invisible
end

#invisible=(new_value) ⇒ Object



1123
1124
1125
# File 'lib/relisp/type_conversion/editing_types.rb', line 1123

def invisible=(new_value)
  set_property :invisible, new_value
end

#keymapObject



1167
1168
1169
# File 'lib/relisp/type_conversion/editing_types.rb', line 1167

def keymap
  get_property :keymap
end

#keymap=(new_value) ⇒ Object



1171
1172
1173
# File 'lib/relisp/type_conversion/editing_types.rb', line 1171

def keymap=(new_value)
  set_property :keymap, new_value
end

#local_mapObject



1159
1160
1161
# File 'lib/relisp/type_conversion/editing_types.rb', line 1159

def local_map
  get_property :local_map
end

#local_map=(new_value) ⇒ Object



1163
1164
1165
# File 'lib/relisp/type_conversion/editing_types.rb', line 1163

def local_map=(new_value)
  set_property :local_map, new_value
end

#modification_hooksObject



1095
1096
1097
# File 'lib/relisp/type_conversion/editing_types.rb', line 1095

def modification_hooks
  get_property :help_echo
end

#modification_hooks=(new_value) ⇒ Object



1099
1100
1101
# File 'lib/relisp/type_conversion/editing_types.rb', line 1099

def modification_hooks=(new_value)
  set_property :help_echo, new_value
end

#mouse_faceObject



1071
1072
1073
# File 'lib/relisp/type_conversion/editing_types.rb', line 1071

def mouse_face
  get_property :mouse_face
end

#mouse_face=(new_value) ⇒ Object



1075
1076
1077
# File 'lib/relisp/type_conversion/editing_types.rb', line 1075

def mouse_face=(new_value)
  set_property :mouse_face, new_value
end

#move(new_start, new_end, new_buffer = nil) ⇒ Object



1015
1016
1017
# File 'lib/relisp/type_conversion/editing_types.rb', line 1015

def move(new_start, new_end, new_buffer = nil)
  call_on_self :move_overlay, new_start, new_end, new_buffer
end

#priorityObject



1039
1040
1041
# File 'lib/relisp/type_conversion/editing_types.rb', line 1039

def priority
  get_property :priority
end

#priority=(new_value) ⇒ Object



1043
1044
1045
# File 'lib/relisp/type_conversion/editing_types.rb', line 1043

def priority=(new_value)
  set_property :priority, new_value
end

#startObject



999
1000
1001
# File 'lib/relisp/type_conversion/editing_types.rb', line 999

def start
  call_on_self :overlay_start
end

#start=(new_start) ⇒ Object



1019
1020
1021
# File 'lib/relisp/type_conversion/editing_types.rb', line 1019

def start=(new_start)
  call_on_self :move_overlay, new_start, self.end
end

#windowObject



1047
1048
1049
# File 'lib/relisp/type_conversion/editing_types.rb', line 1047

def window
  get_property :window
end

#window=(new_value) ⇒ Object



1051
1052
1053
# File 'lib/relisp/type_conversion/editing_types.rb', line 1051

def window=(new_value)
  set_property :window, new_value
end